AW: GSoC Project | Basic Support for Trace Compass
Jan.Sommer at dlr.de
Jan.Sommer at dlr.de
Tue Aug 6 10:11:20 UTC 2019
> -----Ursprüngliche Nachricht-----
> Von: devel [mailto:devel-bounces at rtems.org] Im Auftrag von Ravindra
> Kumar Meena
> Gesendet: Dienstag, 6. August 2019 10:59
> An: Sebastian Huber
> Cc: rtems-devel at rtems.org
> Betreff: Re: GSoC Project | Basic Support for Trace Compass
>
> e.g.
> > Object Index: 30
> > Name: 36697773
> > Name: 71206b73
>
> On a 64-bit target, the data field contains 8 chars. Why do you only
> print 4 chars here?
>
>
> This is what I am getting in Konsole output when I did this:
>
> printf("Name: %lx\n",item->data);
>
> May be full information is not received in client-side.
>
>
Have a look at the documentation of printf (http://www.cplusplus.com/reference/cstdio/printf/).
The format specifier "%lx" refers to unsigned long int which is most likely a 32bit integer on your machine.
So it will only read 4 bytes regardless of how many are stored in memory.
Try using either "%llx" or PRIx64 format specifier for printing 64-bit numbers.
> --
>
> Ravindra Kumar Meena,
> B. Tech. Computer Science and Engineering,
>
> Indian Institute of Technology (Indian School of Mines)
> <https://www.iitism.ac.in/> , Dhanbad
More information about the devel
mailing list