> Two tips: you'll want to copyin the format string, and then you'll want to
> have an iterative step that > you unroll that handles the cases of the
> various format characters.
I can fetch the format string easily. (arg0)
But how can I print out the next argument if I don't know what type its going
to be? If I try trace() I can get the int's fine, but strings are returning as
numbers.
eg
(In C program)
printf("You are in %s","Ireland");
(In DTRACE results)
trace(arg1);
returns:
15171930
Is this the address of the character string? or some conversion?
If I don't use trace(), there doesn't seem to be any way to tell the type of
the argument and so I can't dtrace printf() it out (since I don't know whether
I'll be handling an int, a char * or whatever)...
--
This message posted from opensolaris.org
_______________________________________________
dtrace-discuss mailing list
[email protected]