summaryrefslogtreecommitdiffstats
path: root/cpukit/libcsupport/src/printk.c
diff options
context:
space:
mode:
authorThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2008-05-27 10:32:38 +0000
committerThomas Doerfler <Thomas.Doerfler@embedded-brains.de>2008-05-27 10:32:38 +0000
commite9af8c57c2d309c90f2f726fa9f4f82030e0c356 (patch)
tree27182955007663588eabe5a05782c86534bf36a6 /cpukit/libcsupport/src/printk.c
parent3183b04c798ce7bd80659605c7bf1fc83f67fcdc (diff)
downloadrtems-e9af8c57c2d309c90f2f726fa9f4f82030e0c356.tar.bz2
Bugfix: String output without width option.
Diffstat (limited to '')
-rw-r--r--cpukit/libcsupport/src/printk.c5
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);