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
Hi again,
I am trying to construct set of scripts with common translator
definitions stored in separate header file (so that all the scripts can
use it):
$ cat xlate.h
#include sys/types.h
inline string state_string[int32_t state] =
state == 0 ? initial :
state == 1 ?
#!/usr/sbin/dtrace -I. -Cs
The kernel only picks up one argument from the #! line. You can use
#pragma incdir instead of the -I option.
Adam
--
Adam Leventhal, Delphix
http://dtrace.org/blogs/ahl
275 Middlefield Road, Suite 50
Menlo Park, CA 94025
http://www.delphix.com