Subversion Repositories shark

Compare Revisions

Regard whitespace Rev 394 → Rev 395

/shark/trunk/kernel/printk.c
36,11 → 36,11
*/
 
/*
* CVS : $Id: printk.c,v 1.6 2004-01-12 17:23:29 giacomo Exp $
* CVS : $Id: printk.c,v 1.7 2004-01-12 18:26:38 giacomo Exp $
*
* File: $File$
* Revision: $Revision: 1.6 $
* Last update: $Date: 2004-01-12 17:23:29 $
* Revision: $Revision: 1.7 $
* Last update: $Date: 2004-01-12 18:26:38 $
*/
 
#include <ll/i386/cons.h>
65,9 → 65,9
"debug "
};
 
static int vprintk(int flag, char *fmt, va_list ap)
int vprintk(int flag, char *fmt, va_list ap)
{
static char buf[2048]; /* DANGER !!!!! */
static char buf[1024]; /* DANGER !!!!! */
int level;
level = NO_LEVEL;
80,12 → 80,12
if (level<=printklevel) return 0;
vsprintf(buf,(char*)fmt,ap);
vksprintf(buf,(char*)fmt,ap);
 
if (level != NO_LEVEL)
cprintf("[%s] %s",levelname[level],buf);
message("[%s] %s",levelname[level],buf);
else
cprintf("%s",buf);
message("%s",buf);
return 0;
}