diff options
Diffstat (limited to '')
-rw-r--r-- | cpukit/libcsupport/src/printk.c | 5 |
1 files changed, 5 insertions, 0 deletions
diff --git a/cpukit/libcsupport/src/printk.c b/cpukit/libcsupport/src/printk.c index 97895ab75d..c42beb4720 100644 --- a/cpukit/libcsupport/src/printk.c +++ b/cpukit/libcsupport/src/printk.c @@ -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); |