Re: [PATCH] tracing: Have unsigned int function args displayed as hexadecimal

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

 



On Fri, 1 Aug 2025 07:49:53 -0700
Yonghong Song <yonghong.song@xxxxxxxxx> wrote:

> > @@ -744,7 +752,14 @@ void print_function_args(struct trace_seq *s, unsigned long *args,
> >   			trace_seq_printf(s, "0x%lx", arg);
> >   			break;
> >   		case BTF_KIND_INT:
> > -			trace_seq_printf(s, "%ld", arg);
> > +			/* Get the INT encodoing */
> > +			int_data = btf_type_int(t);
> > +                        encode = BTF_INT_ENCODING(int_data);  
> 
> See different identation between above 'int_data' and 'encode'. The same as below.

Bah, I think I cut and pasted into emacs and it used spaces instead of tabs.

-- Steve


> 
> > +                        /* Print unsigned ints as hex */
> > +                        if (encode & BTF_INT_SIGNED)
> > +				trace_seq_printf(s, "%ld", arg);
> > +                        else
> > +                                trace_seq_printf(s, "0x%lx", arg);
> >   			break;
> >   		case BTF_KIND_ENUM:
> >   			trace_seq_printf(s, "%ld", arg);  





[Index of Archives]     [Linux Samsung SoC]     [Linux Rockchip SoC]     [Linux Actions SoC]     [Linux for Synopsys ARC Processors]     [Linux NFS]     [Linux NILFS]     [Linux USB Devel]     [Video for Linux]     [Linux Audio Users]     [Yosemite News]     [Linux Kernel]     [Linux SCSI]


  Powered by Linux