Bugfix: String output without width option.

This commit is contained in:
Thomas Doerfler
2008-05-27 10:32:38 +00:00
parent 3183b04c79
commit e9af8c57c2
+5
View File
@@ -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);