CELL: improve legibility of CELL_DEBUG environment variable output
This commit is contained in:
@@ -306,6 +306,13 @@ debug_get_flags_option(const char *name,
|
|||||||
str = _debug_get_option(name);
|
str = _debug_get_option(name);
|
||||||
if(!str)
|
if(!str)
|
||||||
result = dfault;
|
result = dfault;
|
||||||
|
else if (!util_strcmp(str, "help")) {
|
||||||
|
result = dfault;
|
||||||
|
while (flags->name) {
|
||||||
|
debug_printf("%s: help for %s: %s [0x%lx]\n", __FUNCTION__, name, flags->name, flags->value);
|
||||||
|
flags++;
|
||||||
|
}
|
||||||
|
}
|
||||||
else {
|
else {
|
||||||
result = 0;
|
result = 0;
|
||||||
while( flags->name ) {
|
while( flags->name ) {
|
||||||
@@ -315,7 +322,12 @@ debug_get_flags_option(const char *name,
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (str) {
|
||||||
|
debug_printf("%s: %s = 0x%lx (%s)\n", __FUNCTION__, name, result, str);
|
||||||
|
}
|
||||||
|
else {
|
||||||
debug_printf("%s: %s = 0x%lx\n", __FUNCTION__, name, result);
|
debug_printf("%s: %s = 0x%lx\n", __FUNCTION__, name, result);
|
||||||
|
}
|
||||||
|
|
||||||
return result;
|
return result;
|
||||||
}
|
}
|
||||||
|
Reference in New Issue
Block a user