Vladimir Kotal
2011-04-13 12:37:25 UTC
Hi all,
Is it somehow possible to use tracemem() (or anything else which is able
to print array of uchar_t's or string) to print stream of bytes in
hexadecimal on single line ?
I'd like to do something like this:
printf("0x");
tracemem(this->oinfo.xxx_id, 32);
printf("A:%-15s ... \n",
this->oinfo.xxx_raddr,
...
where xxx_id and xxx_raddr are of type string.
I'd like the above to produce the output on single line:
0x7FFA403D13DF... A:...
v.
Is it somehow possible to use tracemem() (or anything else which is able
to print array of uchar_t's or string) to print stream of bytes in
hexadecimal on single line ?
I'd like to do something like this:
printf("0x");
tracemem(this->oinfo.xxx_id, 32);
printf("A:%-15s ... \n",
this->oinfo.xxx_raddr,
...
where xxx_id and xxx_raddr are of type string.
I'd like the above to produce the output on single line:
0x7FFA403D13DF... A:...
v.