comparison 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
comparison
equal deleted inserted replaced
17:f3e3e0e9c4bc 18:6129643f5c34
126 while (l && *t) 126 while (l && *t)
127 *b++ = *t++, l--; 127 *b++ = *t++, l--;
128 break; 128 break;
129 129
130 case 'c': /* single character */ 130 case 'c': /* single character */
131 *b++ = 'x'; // TODO: va_arg(pvar, char); 131 *b++ = (char)va_arg(pvar, int);
132 l--; 132 l--;
133 break; 133 break;
134 134
135 case 'S': /* uint32 as a short ... */ 135 case 'S': /* uint32 as a short ... */
136 if (l < 4) { 136 if (l < 4) {