1 #ifndef LIB_SYS_VESA_DEBUG_H
2 #define LIB_SYS_VESA_DEBUG_H
9 ssize_t __serial_write(void *fp, const void *buf, size_t count);
11 static void debug(const char *str, ...)
18 len = vsnprintf(buf, sizeof buf, str, va);
21 if (len >= sizeof buf)
24 __serial_write(NULL, buf, len);
29 static inline void debug(const char *str, ...)
36 #endif /* LIB_SYS_VESA_DEBUG_H */