diff options
author | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2008-05-27 10:32:38 +0000 |
---|---|---|
committer | Thomas Doerfler <Thomas.Doerfler@embedded-brains.de> | 2008-05-27 10:32:38 +0000 |
commit | e9af8c57c2d309c90f2f726fa9f4f82030e0c356 (patch) | |
tree | 27182955007663588eabe5a05782c86534bf36a6 /cpukit/libcsupport | |
parent | New define: CONSOLE_DEVICE_NAME. (diff) | |
download | rtems-e9af8c57c2d309c90f2f726fa9f4f82030e0c356.tar.bz2 |
Bugfix: String output without width option.
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); |