Palacios Public Git Repository

To checkout Palacios execute

  git clone http://v3vee.org/palacios/palacios.web/palacios.git
This will give you the master branch. You probably want the devel branch or one of the release branches. To switch to the devel branch, simply execute
  cd palacios
  git checkout --track -b devel origin/devel
The other branches are similar.


Implemented vprintk() to allow V3VEE debug printfs to be forwarded to the console
Trammell Hudson [Wed, 22 Oct 2008 15:34:45 +0000 (10:34 -0500)]
kitten/kernel/printk.c

index d0e2bf1..b410ec6 100644 (file)
@@ -8,6 +8,19 @@
 int printk(const char *fmt, ...)
 {
        va_list args;
+       va_start(args, fmt);
+       int rc = vprintk( fmt, args );
+       va_end(args);
+       return rc;
+}
+
+
+int
+vprintk(
+       const char *            fmt,
+       va_list                 args
+)
+{
        int len;
        char buf[1024];
        char *p = buf;
@@ -22,9 +35,7 @@ int printk(const char *fmt, ...)
        remain -= len;
 
        /* Construct the string... */
-       va_start(args, fmt);
        len = vscnprintf(p, remain, fmt, args);
-       va_end(args);
 
        /* Pass the string to the console subsystem */
        console_write(buf);