<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 3.2//EN">
<HTML>
<HEAD>
<META HTTP-EQUIV="Content-Type" CONTENT="text/html; charset=US-ASCII">
<META NAME="Generator" CONTENT="MS Exchange Server version 5.5.2653.12">
<TITLE>fyi - printk bug?</TITLE>
</HEAD>
<BODY>
<BR>

<P><FONT SIZE=2>Whenever I try to print a negative number using printk and a %d format</FONT>
<BR><FONT SIZE=2>it would start printing blank spaces forever.</FONT>
</P>

<P><FONT SIZE=2>in the file - c/src/lib/libc/printk.c</FONT>
</P>

<P><FONT SIZE=2>in function - printNum()</FONT>
</P>

<P><FONT SIZE=2>I changed the maxwidth-;</FONT>
</P>

<P><FONT SIZE=2>to if (maxwidth) maxwidth-;</FONT>
</P>

<P><FONT SIZE=2>That seems to fix the problem.</FONT>
<BR><FONT SIZE=2>I am using version 4.5.0 but the problem is also in the latest snapshot.</FONT>
</P>

<P><FONT SIZE=2>Thanks,</FONT>
<BR><FONT SIZE=2>Nick Hennenfent</FONT>
</P>
<BR>
<BR>
<BR>
<BR>
<BR>

</BODY>
</HTML>