mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2025-12-06 07:33:17 +00:00
2001-10-10 Joel Sherrill <joel@OARcorp.com>
* libc/printk.c (printNum): Properly handle a maxwidth of 0 as reported by Nick Hennenfent <NICK.HENNENFENT@ROCHE.COM>.
This commit is contained in:
@@ -44,7 +44,7 @@ printNum(long unsigned int num, int base, int sign, int maxwidth, int lead)
|
|||||||
if ( (sign == 1) && ((long)num < 0) ) {
|
if ( (sign == 1) && ((long)num < 0) ) {
|
||||||
BSP_output_char('-');
|
BSP_output_char('-');
|
||||||
num = -num;
|
num = -num;
|
||||||
maxwidth--;
|
if (maxwidth) maxwidth--;
|
||||||
}
|
}
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|||||||
@@ -1,3 +1,8 @@
|
|||||||
|
2001-10-10 Joel Sherrill <joel@OARcorp.com>
|
||||||
|
|
||||||
|
* libc/printk.c (printNum): Properly handle a maxwidth of 0
|
||||||
|
as reported by Nick Hennenfent <NICK.HENNENFENT@ROCHE.COM>.
|
||||||
|
|
||||||
2001-09-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
2001-09-28 Ralf Corsepius <corsepiu@faw.uni-ulm.de>
|
||||||
|
|
||||||
* include/zilog/Makefile.am: Use 'PREINSTALL_FILES ='.
|
* include/zilog/Makefile.am: Use 'PREINSTALL_FILES ='.
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ printNum(long unsigned int num, int base, int sign, int maxwidth, int lead)
|
|||||||
if ( (sign == 1) && ((long)num < 0) ) {
|
if ( (sign == 1) && ((long)num < 0) ) {
|
||||||
BSP_output_char('-');
|
BSP_output_char('-');
|
||||||
num = -num;
|
num = -num;
|
||||||
maxwidth--;
|
if (maxwidth) maxwidth--;
|
||||||
}
|
}
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|||||||
@@ -44,7 +44,7 @@ printNum(long unsigned int num, int base, int sign, int maxwidth, int lead)
|
|||||||
if ( (sign == 1) && ((long)num < 0) ) {
|
if ( (sign == 1) && ((long)num < 0) ) {
|
||||||
BSP_output_char('-');
|
BSP_output_char('-');
|
||||||
num = -num;
|
num = -num;
|
||||||
maxwidth--;
|
if (maxwidth) maxwidth--;
|
||||||
}
|
}
|
||||||
|
|
||||||
count = 0;
|
count = 0;
|
||||||
|
|||||||
Reference in New Issue
Block a user