Debug and error messages in AIXv3 device drivers...
Marc Kwiatkowski {Host Software-AIX}
marc at mercutio.ultra.com
Fri May 24 17:26:36 AEST 1991
To answer my own question, sort of, it seems to me that it might be
possible to get around the absence of vsprintf by calling _doprnt
directly. Disassembling the kernel version of _doprnt leads me
to believe that the parameter list is as follows:
int
_doprnt(fmt, ap, ptr)
char *fmt
va_list *ap
char *ptr;
ptr is not a pointer to a FILE handle, but merely the
buffer in which to place the formatted output, thus
it is merely a rearrangment of the sprintf parameter
list. Can anyone comfirm this?
_doprnt is not exported in the standard /lib/kernex.exp export
file, so it is necessary to add it to a homebrewed kernex.exp.
I believe this will work, but I'll find out for sure soon
enough.
--
Marc P. Kwiatkowski Ultra Network Technologies
Internet: marc at ultra.com 101 Daggett Drive
uucp: ...!ames!ultra!marc San Jose, CA 95134 USA
telephone: 408 922 0100 x249
More information about the Comp.unix.aix
mailing list