[LU-1005] fix spurious libcfs_debug_str2mask() warning Created: 17/Jan/12  Updated: 27/Sep/12  Resolved: 18/Apr/12

Status: Resolved
Project: Lustre
Component/s: None
Affects Version/s: None
Fix Version/s: Lustre 2.2.0

Type: Improvement Priority: Minor
Reporter: Andreas Dilger Assignee: Jian Yu
Resolution: Fixed Votes: 0
Labels: tests

Issue Links:
Related
Story Points: 1
Rank (Obsolete): 10275

 Description   

In many tests I see the warning message:

libcfs_debug_str2mask()) You are trying to use a numerical value for the mask -
this will be deprecated in a future release.

due to the use of numerical PTLDEBUG mask in the test framework cfg/local.sh file.

Since we are trying to deprecate the usage of numerical debug masks in favor of strings, and to remove extraneous garbage from our test results, this warning should be fixed.

The current PTLDEBUG mask is 0x33f0484, which used to be the default debug mask at startup. The default debug mask is now:

unsigned int libcfs_debug = (D_EMERG | D_ERROR | D_WARNING | D_CONSOLE |
                             D_NETERROR | D_HA | D_CONFIG | D_IOCTL);

which breaks down to (0x40000 | 0x20000 | 0x400 | 0x2000000 | 0x100 | 0x80000 | 0x1000000 | 0x80) = 0x30e0580.

I'm not against keeping the 0x33f0484 debug mask for testing, but it should be converted to a string. It looks like the following should work:

PTLDEBUG="super warning dlmtrace error emerg ha rpctrace vfstrace config console"



 Comments   
Comment by Alex Zhuravlev [ 17/Jan/12 ]

can we change this behavior to print the warning once?

Comment by Jian Yu [ 18/Apr/12 ]

This has been fixed in http://review.whamcloud.com/2015. Let's close this ticket.

Generated at Sat Feb 10 01:12:35 UTC 2024 using Jira 9.4.14#940014-sha1:734e6822bbf0d45eff9af51f82432957f73aa32c.