fyi - printk bug?

Hennenfent, Nick {AVL~Roswell} NICK.HENNENFENT at ROCHE.COM
Wed Oct 10 00:19:30 UTC 2001


Whenever I try to print a negative number using printk and a %d format
it would start printing blank spaces forever.

in the file - c/src/lib/libc/printk.c

in function - printNum()

I changed the maxwidth-;

to if (maxwidth) maxwidth-;

That seems to fix the problem.
I am using version 4.5.0 but the problem is also in the latest snapshot.

Thanks,
Nick Hennenfent






-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.rtems.org/pipermail/users/attachments/20011009/a9b44e9c/attachment.html>


More information about the users mailing list