forked from Imagelibrary/rtems
2005-08-12 Chris Johns <chrisj@rtems.org>
PR 808/rtems_misc * src/printk.c: Fix bug where specifying field width crashed on pc386 BSP.
This commit is contained in:
@@ -1,3 +1,9 @@
|
|||||||
|
2005-08-12 Chris Johns <chrisj@rtems.org>
|
||||||
|
|
||||||
|
PR 808/rtems_misc
|
||||||
|
* src/printk.c: Fix bug where specifying field width crashed on pc386
|
||||||
|
BSP.
|
||||||
|
|
||||||
2005-08-02 Ralf Corsepius <ralf.corsepius@rtems.org>
|
2005-08-02 Ralf Corsepius <ralf.corsepius@rtems.org>
|
||||||
|
|
||||||
PR 817/rtems
|
PR 817/rtems
|
||||||
|
|||||||
@@ -53,10 +53,8 @@ printNum(long unsigned int num, int base, int sign, int maxwidth, int lead)
|
|||||||
}
|
}
|
||||||
toPrint[count++] = num;
|
toPrint[count++] = num;
|
||||||
|
|
||||||
if (maxwidth) {
|
for (n=maxwidth ; n > count; n-- )
|
||||||
for (n=maxwidth-count ; n ; n-- )
|
BSP_output_char(lead);
|
||||||
BSP_output_char(lead);
|
|
||||||
}
|
|
||||||
|
|
||||||
for (n = 0; n < count; n++){
|
for (n = 0; n < count; n++){
|
||||||
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
|
BSP_output_char("0123456789ABCDEF"[(int)(toPrint[count-(n+1)])]);
|
||||||
|
|||||||
Reference in New Issue
Block a user