vesacon: stub out debugging function
authorH. Peter Anvin <hpa@zytor.com>
Wed, 13 Sep 2006 00:40:57 +0000 (17:40 -0700)
committerH. Peter Anvin <hpa@zytor.com>
Wed, 13 Sep 2006 00:40:57 +0000 (17:40 -0700)
com32/lib/sys/vesa/initvesa.c

index b396b53..53ab4b7 100644 (file)
@@ -53,8 +53,9 @@ uint32_t __vesacon_background[VIDEO_Y_SIZE][VIDEO_X_SIZE];
 
 ssize_t __serial_write(void *fp, const void *buf, size_t count);
 
-static void debug(const char *str, ...)
+static inline void debug(const char *str, ...)
 {
+#if 0
   va_list va;
   char buf[65536];
   size_t len;
@@ -66,7 +67,10 @@ static void debug(const char *str, ...)
   if (len >= sizeof buf)
     len = sizeof buf - 1;
 
-  //__serial_write(NULL, buf, len);
+  __serial_write(NULL, buf, len);
+#else
+  (void)str;
+#endif
 }
 
 static void unpack_font(uint8_t *dst, uint8_t *src, int height)