Second ChangeSet. Here goes nothing...
# This is a BitKeeper generated patch for the following project:
# Project Name: greg k-h's linux 2.5 USB kernel tree
# This patch format is intended for GNU patch command version 2.5 or higher.
# This patch includes the following deltas:
# ChangeSet 1.562 -> 1.563
# drivers/usb/storage/debug.h 1.1 -> 1.2
#
# The following is the BitKeeper ChangeSet Log
# --------------------------------------------
# 02/05/25 [EMAIL PROTECTED] 1.563
# Fix a compilation error -- ASSERT() isn't defined globally in the
# kernel. Perhaps it should be....
# --------------------------------------------
#
diff -Nru a/drivers/usb/storage/debug.h b/drivers/usb/storage/debug.h
--- a/drivers/usb/storage/debug.h Sat May 25 17:30:46 2002
+++ b/drivers/usb/storage/debug.h Sat May 25 17:30:46 2002
@@ -60,10 +60,18 @@
#define US_DEBUGP(x...) printk( KERN_DEBUG USB_STORAGE x )
#define US_DEBUGPX(x...) printk( x )
#define US_DEBUG(x) x
+
+#define ASSERT(expr) \
+ if(!(expr)) { \
+ printk( KERN_DEBUG USB_STORAGE "Assertion failed! %s,%s,%s,line=%d\n",\
+ #expr,__FILE__,__FUNCTION__,__LINE__); \
+ }
+
#else
#define US_DEBUGP(x...)
#define US_DEBUGPX(x...)
#define US_DEBUG(x)
+#define ASSERT(expr)
#endif
#endif
--
Matthew Dharm Home: [EMAIL PROTECTED]
Maintainer, Linux USB Mass Storage Driver
Stef, you just got beaten by a ball of DIRT.
-- Greg
User Friendly, 12/7/1997
msg06815/pgp00000.pgp
Description: PGP signature
