Index: /trunk/src/VBox/Devices/Storage/Debug.cpp
===================================================================
--- /trunk/src/VBox/Devices/Storage/Debug.cpp	(revision 61945)
+++ /trunk/src/VBox/Devices/Storage/Debug.cpp	(revision 61946)
@@ -22,4 +22,6 @@
 #include <VBox/scsi.h>
 #include "ide.h"
+
+#ifdef LOG_ENABLED
 
 /**
@@ -899,4 +901,8 @@
 }
 
+#endif /* LOG_ENABLED */
+
+#if defined(LOG_ENABLED) || defined(RT_STRICT)
+
 /**
  * Return the plain text of a SCSI command for debugging purposes.
@@ -1135,2 +1141,3 @@
 }
 
+#endif /* LOG_ENABLED || RT_STRICT */
Index: /trunk/src/VBox/Devices/Storage/ide.h
===================================================================
--- /trunk/src/VBox/Devices/Storage/ide.h	(revision 61945)
+++ /trunk/src/VBox/Devices/Storage/ide.h	(revision 61946)
@@ -204,5 +204,5 @@
 
 
-#if defined(DEBUG) && defined(IN_RING3)
+#if defined(LOG_ENABLED) && defined(IN_RING3)
 const char * ATACmdText(uint8_t uCmd);
 #endif
