4 #include "devices/serial.h"
5 #include "devices/vga.h"
6 #include "threads/interrupt.h"
8 static void vprintf_helper (char, void *);
11 vprintf (const char *format, va_list args)
13 enum intr_level old_level;
16 old_level = intr_disable ();
17 __vprintf (format, args, vprintf_helper, &char_cnt);
18 intr_set_level (old_level);
23 /* Helper function for vprintf(). */
25 vprintf_helper (char c, void *char_cnt_)
27 int *char_cnt = char_cnt_;
32 /* Writes C to the console. */