*/
#include <stdio.h>
-#include <assert.h>
#include "hw.h"
#include "pc.h"
#include "console.h"
//#define DEBUG_BITBLT
#ifdef DEBUG_SM501
-#define SM501_DPRINTF(fmt...) printf(fmt)
+#define SM501_DPRINTF(fmt, ...) printf(fmt, ## __VA_ARGS__)
#else
-#define SM501_DPRINTF(fmt...) do {} while(0)
+#define SM501_DPRINTF(fmt, ...) do {} while(0)
#endif