patch-2.4.23 linux-2.4.23/drivers/ieee1394/ieee1394_types.h
Next file: linux-2.4.23/drivers/ieee1394/nodemgr.c
Previous file: linux-2.4.23/drivers/ieee1394/ieee1394_transactions.h
Back to the patch index
Back to the overall index
- Lines: 33
- Date:
2003-11-28 10:26:20.000000000 -0800
- Orig file:
linux-2.4.22/drivers/ieee1394/ieee1394_types.h
- Orig date:
2003-08-25 04:44:41.000000000 -0700
diff -urN linux-2.4.22/drivers/ieee1394/ieee1394_types.h linux-2.4.23/drivers/ieee1394/ieee1394_types.h
@@ -7,18 +7,11 @@
#include <linux/version.h>
#include <linux/list.h>
#include <linux/init.h>
+#include <linux/spinlock.h>
#include <asm/semaphore.h>
#include <asm/byteorder.h>
-#ifndef MIN
-#define MIN(a,b) ((a) < (b) ? (a) : (b))
-#endif
-
-#ifndef MAX
-#define MAX(a,b) ((a) > (b) ? (a) : (b))
-#endif
-
#ifndef BITS_TO_LONGS /* < 2.4.21-pre6 */
#define BITS_TO_LONGS(bits) \
(((bits)+BITS_PER_LONG-1)/BITS_PER_LONG)
@@ -78,6 +71,12 @@
#define HPSB_WARN(fmt, args...) HPSB_PRINT(KERN_WARNING, fmt , ## args)
#define HPSB_ERR(fmt, args...) HPSB_PRINT(KERN_ERR, fmt , ## args)
+#ifdef CONFIG_IEEE1394_VERBOSEDEBUG
+#define HPSB_VERBOSE(fmt, args...) HPSB_PRINT(KERN_DEBUG, fmt , ## args)
+#else
+#define HPSB_VERBOSE(fmt, args...)
+#endif
+
#define HPSB_PANIC(fmt, args...) panic("ieee1394: " fmt "\n" , ## args)
#define HPSB_TRACE() HPSB_PRINT(KERN_INFO, "TRACE - %s, %s(), line %d", __FILE__, __FUNCTION__, __LINE__)
FUNET's LINUX-ADM group, linux-adm@nic.funet.fi
TCL-scripts by Sam Shen (who was at: slshen@lbl.gov)