diff options
author | Greg Kroah-Hartman <gregkh@suse.de> | 2006-02-24 12:25:08 -0800 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2006-02-24 12:25:08 -0800 |
commit | 61ff02512824f0c9b41b51e52f7f1208a67d5d3a (patch) | |
tree | 5f5923c52722baca09b5e468b0ac3de406bab0a6 /driver | |
parent | 1f2a657df7fd3d0a55c9820bd16a6fe16339bc01 (diff) | |
download | patches-61ff02512824f0c9b41b51e52f7f1208a67d5d3a.tar.gz |
header file patches
Diffstat (limited to 'driver')
-rw-r--r-- | driver/driver-core-add-macros-notice-dev_notice.patch | 34 |
1 files changed, 34 insertions, 0 deletions
diff --git a/driver/driver-core-add-macros-notice-dev_notice.patch b/driver/driver-core-add-macros-notice-dev_notice.patch new file mode 100644 index 0000000000000..52e9859154b6b --- /dev/null +++ b/driver/driver-core-add-macros-notice-dev_notice.patch @@ -0,0 +1,34 @@ +From linux-usb-devel-admin@lists.sourceforge.net Fri Feb 24 02:06:04 2006 +Message-ID: <43FEDA79.3010505@imap.cc> +From: Tilman Schmidt <tilman@imap.cc> +Cc: <hjlipp@web.de> +Subject: Driver core: add macros notice(), dev_notice() +Date: Fri, 24 Feb 2006 11:05:45 +0100 + +Both usb.h and device.h have collections of convenience macros for +printk() with the KERN_ERR, KERN_WARNING, and KERN_NOTICE severity +levels. This patch adds macros for the KERN_NOTICE level which was +so far uncatered for. + +These macros already exist privately in drivers/isdn/gigaset/gigaset.h +(currently in the process of being submitted for the kernel tree) +but they really belong with their brothers and sisters in +include/linux/{device,usb}.h. + +Signed-off-by: Tilman Schmidt <tilman@imap.cc> +Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de> +--- + include/linux/device.h | 2 ++ + 1 file changed, 2 insertions(+) + +--- gregkh-2.6.orig/include/linux/device.h ++++ gregkh-2.6/include/linux/device.h +@@ -424,6 +424,8 @@ extern void firmware_unregister(struct s + dev_printk(KERN_INFO , dev , format , ## arg) + #define dev_warn(dev, format, arg...) \ + dev_printk(KERN_WARNING , dev , format , ## arg) ++#define dev_notice(dev, format, arg...) \ ++ dev_printk(KERN_NOTICE , dev , format , ## arg) + + /* Create alias, so I can be autoloaded. */ + #define MODULE_ALIAS_CHARDEV(major,minor) \ |