Powered by Linux
Re: [PATCH] Use sm_debug for a debug message — Semantic Matching Tool

Re: [PATCH] Use sm_debug for a debug message

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

 



On Thu, Dec 19, 2019 at 03:27:51PM +0000, John Levon wrote:

> ---
>  smatch_ranges.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/smatch_ranges.c b/smatch_ranges.c
> index 4da1b334..c06f1803 100644
> --- a/smatch_ranges.c
> +++ b/smatch_ranges.c
> @@ -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



[Index of Archives]     [Linux USB Devel]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]     [Big List of Linux Books]

  Powered by Linux