]> Joshua Wise's Git repositories - netwatch.git/blobdiff - aseg-paging/vga-overlay.c
Don't worry about me, I'm kind of a noob
[netwatch.git] / aseg-paging / vga-overlay.c
index 7b33a7bd03f09dfd691516ea61b8fbca3eaa6de5..2fe4dc6ed6663474466a0ae31af0131b8ab7269e 100644 (file)
@@ -88,7 +88,9 @@ void dolog(const char *s)
        strcpy(logents[prodptr], s);
        prodptr = (prodptr + 1) % LOGLEN;
        while (*s)
-               serial_tx(*s);
+               serial_tx(*(s++));
+       serial_tx('\r');
+       serial_tx('\n');
        if (flush_imm)
                outlog();
 }
@@ -96,6 +98,20 @@ void (*output)(const char *s) = dolog;
 
 void dologf(const char *fmt, ...)
 {
+       char *s;
+       va_list va;
+       
+       va_start(va, fmt);
+       vsnprintf(logents[prodptr], 40, fmt, va);
+       s = logents[prodptr];
+       while (*s)
+               serial_tx(*(s++));
+       serial_tx('\r');
+       serial_tx('\n');
+       va_end(va);
+       prodptr = (prodptr + 1) % LOGLEN;
+       if (flush_imm)
+               outlog();
 }
 void (*outputf)(const char *s, ...) = dologf;
 
This page took 0.027043 seconds and 4 git commands to generate.