/kernel/trunk/test/print/print1/test.c |
---|
37,5 → 37,6 |
printf(" L %L %l \n",0x01234567 ,0x01234567); |
printf(" W %W %w \n",0x0123 ,0x0123); |
printf(" B %B %b \n",0x01 ,0x01); |
printf(" Print to NULL '%s'\n",NULL); |
return; |
} |
/kernel/trunk/generic/src/debug/print.c |
---|
50,6 → 50,13 |
{ |
int i = 0; |
char c; |
char errstr[] = "(NULL)"; |
if (str == NULL) { |
while ((c = errstr[i++])) |
putchar(c); |
return; |
} |
while ((c = str[i++])) |
putchar(c); |