Path: utzoo!utgpu!news-server.csri.toronto.edu!bonnie.concordia.ca!uunet!zaphod.mps.ohio-state.edu!mips!ultra!marc From: marc@mercutio.ultra.com (Marc Kwiatkowski {Host Software-AIX}) Newsgroups: comp.unix.aix Subject: RE: Debug and error messages in AIXv3 device drivers... Message-ID: <1991May24.072636.331@ultra.com> Date: 24 May 91 07:26:36 GMT Sender: marc@ultra.com (Marc Kwiatkowski {Host Software-AIX}) Distribution: comp Organization: Ultra Network Technologies Lines: 28 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@ultra.com 101 Daggett Drive uucp: ...!ames!ultra!marc San Jose, CA 95134 USA telephone: 408 922 0100 x249