/[hurd]/gnumach/linux/dev/kernel/printk.c
ViewVC logotype

Diff of /gnumach/linux/dev/kernel/printk.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

revision 1.1 by tb, Mon Apr 26 05:49:36 1999 UTC revision 1.1.4.1 by ams, Sun Dec 5 14:29:43 2004 UTC
# Line 26  Line 26 
26  #define MACH_INCLUDE  #define MACH_INCLUDE
27  #include <stdarg.h>  #include <stdarg.h>
28  #include <asm/system.h>  #include <asm/system.h>
29    #include <kern/assert.h>
30    
31  static char buf[2048];  static char buf[2048];
32    
# Line 40  printk (char *fmt, ...) Line 41  printk (char *fmt, ...)
41    va_list args;    va_list args;
42    int n, flags;    int n, flags;
43    extern void cnputc ();    extern void cnputc ();
   extern int linux_vsprintf (char *buf, char *fmt,...);  
44    char *p, *msg, *buf_end;    char *p, *msg, *buf_end;
45    static int msg_level = -1;    static int msg_level = -1;
46        
47    save_flags (flags);    save_flags (flags);
48    cli ();    cli ();
49    va_start (args, fmt);    va_start (args, fmt);
50    n = linux_vsprintf (buf + 3, fmt, args);    n = vsnprintf (buf + 3, sizeof (buf) - 3, fmt, args);
51      assert (n <= sizeof (buf) - 3);
52    buf_end = buf + 3 + n;    buf_end = buf + 3 + n;
53    va_end (args);    va_end (args);
54    for (p = buf + 3; p < buf_end; p++)    for (p = buf + 3; p < buf_end; p++)

Legend:
Removed from v.1.1  
changed lines
  Added in v.1.1.4.1

savannah-hackers-public@gnu.org
ViewVC Help
Powered by ViewVC 1.1.26