Subversion Repositories shark

Compare Revisions

Ignore whitespace Rev 392 → Rev 393

/shark/trunk/kernel/printk.c
36,11 → 36,11
*/
 
/*
* CVS : $Id: printk.c,v 1.5 2004-01-10 13:24:36 giacomo Exp $
* CVS : $Id: printk.c,v 1.6 2004-01-12 17:23:29 giacomo Exp $
*
* File: $File$
* Revision: $Revision: 1.5 $
* Last update: $Date: 2004-01-10 13:24:36 $
* Revision: $Revision: 1.6 $
* Last update: $Date: 2004-01-12 17:23:29 $
*/
 
#include <ll/i386/cons.h>
68,7 → 68,6
static int vprintk(int flag, char *fmt, va_list ap)
{
static char buf[2048]; /* DANGER !!!!! */
SYS_FLAGS f;
int level;
level = NO_LEVEL;
83,12 → 82,10
vsprintf(buf,(char*)fmt,ap);
 
f=kern_fsave();
if (level != NO_LEVEL)
cprintf("[%s] %s",levelname[level],buf);
else
cprintf("%s",buf);
kern_frestore(f);
return 0;
}