Re: [dtrace-discuss] tracemem() output on single line

2011-04-14 Thread Vladimir Kotal
On 04/13/11 06:18 PM, Adam Leventhal wrote: snip There's nothing particularly convenient, but you could just print out your array by hand: %02x%02x... To simplify it a little, you could cast it to a uint64_t *: printf(%16x%16x, ((uint64_t *)this-oinfo.xxx_id)[0], ((uint64_t

[dtrace-discuss] tracemem() output on single line

2011-04-13 Thread Vladimir Kotal
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);

Re: [dtrace-discuss] tracemem() output on single line

2011-04-13 Thread Adam Leventhal
Hey Vladimir, 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);