mirror of
https://gitlab.rtems.org/rtems/rtos/rtems.git
synced 2026-09-21 14:06:00 +08:00
Bugfix: String output without width option.
This commit is contained in:
@@ -129,6 +129,11 @@ void vprintk(
|
||||
for ( i=len ; i<width ; i++ )
|
||||
BSP_output_char(' ');
|
||||
|
||||
/* no width option */
|
||||
if (width == 0) {
|
||||
width = len;
|
||||
}
|
||||
|
||||
/* output the string */
|
||||
for ( i=0 ; i<width && *str ; str++ )
|
||||
BSP_output_char(*str);
|
||||
|
||||
Reference in New Issue
Block a user