no more kprintf - kernel uses libsys printf now, only kputc is special

to the kernel.
This commit is contained in:
Ben Gras
2010-03-03 15:45:01 +00:00
parent 18924ea563
commit e6cb76a2e2
34 changed files with 213 additions and 224 deletions

View File

@@ -1,7 +1,6 @@
/* This file contains a collection of miscellaneous procedures:
* minix_panic: abort MINIX due to a fatal error
* kprintf: (from libsys/kprintf.c)
* kputc: buffered putc used by kernel kprintf
* kputc: buffered putc used by kernel printf
*/
#include "kernel.h"
@@ -35,25 +34,19 @@ if (minix_panicing++) {
}
if (mess != NULL) {
kprintf("kernel panic: %s", mess);
printf("kernel panic: %s", mess);
if(nr != NO_NUM)
kprintf(" %d", nr);
kprintf("\n");
printf(" %d", nr);
printf("\n");
}
kprintf("kernel: ");
printf("kernel: ");
util_stacktrace();
/* Abort MINIX. */
minix_shutdown(NULL);
}
/* Include system printf() implementation named kprintf() */
#define printf kprintf
#include "../lib/libsys/kprintf.c"
/*===========================================================================*
* kputc *
*===========================================================================*/