prasad writes:
> Now with this:
>
> printf("%Y: ", walltimestamp);
> this->text = copyinstr(self->bufp,self->size);
> printf("%s(PID:%d) called %s with fd=%d, size= %d, and
> \nbuf=\"%s\"\n\n", execname, pid, probefunc, self->fd, self->size,
> this->text);
>
> I am getting this:
>
> 2008 Feb 22 14:30:00: dataPump(PID:6658) called aiowrite with fd=8, size=
> 204, and buf=""
>
> why am I getting nothing in the buffers?
At a guess, the first byte in the buffer is zero. A zero (ASCII NUL)
byte is a C string terminator, so "%s" doesn't print anything else.
(Wasn't that also what you were seeing the last time you posted ... ?)
--
James Carlson, Solaris Networking <[EMAIL PROTECTED]>
Sun Microsystems / 35 Network Drive 71.232W Vox +1 781 442 2084
MS UBUR02-212 / Burlington MA 01803-2757 42.496N Fax +1 781 442 1677
_______________________________________________
dtrace-discuss mailing list
[email protected]