altos: let FAT tracing work in ao_fat_test as needed
authorKeith Packard <keithp@keithp.com>
Mon, 1 Apr 2013 09:00:21 +0000 (02:00 -0700)
committerKeith Packard <keithp@keithp.com>
Mon, 1 Apr 2013 09:00:21 +0000 (02:00 -0700)
This allows the FAT DBG hooks to be enabled even if some other module
turned DBG off.

Signed-off-by: Keith Packard <keithp@keithp.com>
src/drivers/ao_fat.c

index ddf560cc0ffb50a37afbe4ce36ff3745de8cb923..6aae1410b8676821fec41d7d5f06bd8e6928c947 100644 (file)
 /* Spew FAT tracing */
 #define FAT_TRACE      0
  
+#ifdef DBG
+#undef DBG
+#endif
+
 #if FAT_TRACE
 #define DBG(...) printf(__VA_ARGS__)
 #else