Skip to contentSkip to conversation

Use sm_debug for a debug message

PATCH John Levon 1 participant 1 message Dec 19, 2019 1 message not in the archive

lore
Share & tools
lore

A message that is not in the archive (sent off-list or not yet received): [email protected]

John Levon

author
#1 lore raw
Quoted 9 lines · John Levon
---
 smatch_ranges.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
smatch_ranges.c +0 -0
index 4da1b334..c06f1803 100644

smatch_ranges.c static void str_to_rl_helper(struct expression *call, struct symbol *type, const · line 570

Quoted 8 lines
smatch_ranges.c +1 -1
@@ -564,7 +564,7 @@ static void str_to_rl_helper(struct expression *call, struct symbol *type, const
 				break;
 		}
 		if (*c != '-') {
-			sm_msg("debug XXX: trouble parsing %s c = %s", str, c);
+			sm_debug("XXX: trouble parsing %s c = %s", str, c);
 			break;
 		}
 		c++;

Here's all the unique parse failures I hit with our tree, by the way:

../common/topo_xml.c:250 xlate_common() debug XXX: trouble parsing -inf-inf c = inf-inf od.c:174 do_double() debug XXX: trouble parsing -1.797693e+308-1.797693e+308 c = .797693e+308-1.797693e+308 od.c:175 do_ldouble() debug XXX: trouble parsing -1.189731e+4932-1.189731e+4932 c = .189731e+4932-1.189731e+4932

regards
joh n