[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

[MiNT] [PATCH] Fix USB XHDI mass storage debug.



Commit message:

Remove debug defines which are already defined in USB global.h header file.
Place DEV_DEBUG before global.h header include. Although DEV_DEBUG is
already defined in STOREDEFS we leave it here so we can turn on debug
for XHDI
independently from the rest of the driver sources.
diff -r b801f40777bd -r 71aa84a0a5e2 sys/usb/src.km/udd/storage/xhdi.c
--- a/sys/usb/src.km/udd/storage/xhdi.c	Thu Oct 30 11:49:20 2014 +0100
+++ b/sys/usb/src.km/udd/storage/xhdi.c	Thu Oct 30 11:53:57 2014 +0100
@@ -23,6 +23,12 @@
  * TODO: Fix XHMiNTInfo
  */
 
+#ifndef TOSONLY
+#if 0
+# define DEV_DEBUG	1
+#endif
+#endif
+
 #include "mint/mint.h"
 #include "../../global.h"
 
@@ -43,36 +49,10 @@
 #endif
 char *DRIVER_COMPANY = "FreeMiNT list";
 
-
-/*--- Debug section ---*/
-
 #ifndef TOSONLY
-
-#if 0
-# define DEV_DEBUG	1
+# define Sversion()	0x4000		/* this is FreeMiNT's GEMDOS version */
 #endif
 
-#ifdef DEV_DEBUG
-
-# define FORCE(x)	
-# define ALERT(x)	KERNEL_ALERT x
-# define DEBUG(x)	KERNEL_DEBUG x
-# define TRACE(x)	KERNEL_TRACE x
-# define ASSERT(x)	assert x
-
-#else
-
-# define FORCE(x)	
-# define ALERT(x)	KERNEL_ALERT x
-# define DEBUG(x)	
-# define TRACE(x)	
-# define ASSERT(x)	assert x
-
-#endif
-
-# define Sversion()	0x4000		/* this is FreeMiNT's GEMDOS version */
-
-#endif
 /*--- External variables ---*/
 
 extern char *drv_version;