diff cos/kernel/snprintf.c @ 18:6129643f5c34

Fixed interrupt issue, ds, es, ss, fs and gs were not initialized to 0
author windel
date Sun, 20 Nov 2011 20:35:51 +0100
parents f3e3e0e9c4bc
children 8012221dd740
line wrap: on
line diff
--- a/cos/kernel/snprintf.c	Sat Nov 19 20:01:28 2011 +0100
+++ b/cos/kernel/snprintf.c	Sun Nov 20 20:35:51 2011 +0100
@@ -128,7 +128,7 @@
          break;
 
           case 'c':		/* single character */
-         *b++ = 'x'; // TODO: va_arg(pvar, char);
+         *b++ = (char)va_arg(pvar, int);
          l--;
          break;