diff options
author | Tilman Schmidt <tilman@imap.cc> | 2008-12-26 04:21:29 -0500 |
---|---|---|
committer | David S. Miller <davem@davemloft.net> | 2008-12-26 04:21:29 -0500 |
commit | c8770dcabd6a615b155c25dc4d57251d3e7f151c (patch) | |
tree | 3f8bbf9d4f17525440b22bfb702f35a9f7bdf033 /drivers/isdn/gigaset/gigaset.h | |
parent | 4d8cd002602987ddc9507b5390800343f820ac92 (diff) |
gigaset: use pr_err() and pr_info()
Switch from private printk wrapper macros to using pr_err() and
pr_info() from linux/kernel.h, at the same time unifying a few
error messages.
Signed-off-by: Tilman Schmidt <tilman@imap.cc>
Signed-off-by: David S. Miller <davem@davemloft.net>
Diffstat (limited to 'drivers/isdn/gigaset/gigaset.h')
-rw-r--r-- | drivers/isdn/gigaset/gigaset.h | 14 |
1 files changed, 3 insertions, 11 deletions
diff --git a/drivers/isdn/gigaset/gigaset.h b/drivers/isdn/gigaset/gigaset.h index 901ff437e700..747178f03d2c 100644 --- a/drivers/isdn/gigaset/gigaset.h +++ b/drivers/isdn/gigaset/gigaset.h | |||
@@ -16,6 +16,9 @@ | |||
16 | #ifndef GIGASET_H | 16 | #ifndef GIGASET_H |
17 | #define GIGASET_H | 17 | #define GIGASET_H |
18 | 18 | ||
19 | /* define global prefix for pr_ macros in linux/kernel.h */ | ||
20 | #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt | ||
21 | |||
19 | #include <linux/kernel.h> | 22 | #include <linux/kernel.h> |
20 | #include <linux/compiler.h> | 23 | #include <linux/compiler.h> |
21 | #include <linux/types.h> | 24 | #include <linux/types.h> |
@@ -97,17 +100,6 @@ enum debuglevel { | |||
97 | activated */ | 100 | activated */ |
98 | }; | 101 | }; |
99 | 102 | ||
100 | /* Kernel message macros for situations where dev_printk and friends cannot be | ||
101 | * used for lack of reliable access to a device structure. | ||
102 | * linux/usb.h already contains these but in an obsolete form which clutters | ||
103 | * the log needlessly, and according to the USB maintainer those should be | ||
104 | * removed rather than fixed anyway. | ||
105 | */ | ||
106 | #undef err | ||
107 | |||
108 | #define err(format, arg...) printk(KERN_ERR KBUILD_MODNAME ": " \ | ||
109 | format "\n" , ## arg) | ||
110 | |||
111 | #ifdef CONFIG_GIGASET_DEBUG | 103 | #ifdef CONFIG_GIGASET_DEBUG |
112 | 104 | ||
113 | #define gig_dbg(level, format, arg...) \ | 105 | #define gig_dbg(level, format, arg...) \ |