diff options
author | Roberta Dobrescu | 2014-10-07 12:08:12 +0200 |
---|---|---|
committer | Greg Kroah-Hartman | 2014-10-20 04:29:18 +0200 |
commit | 1f26adc94a9f11440f4756e41b2f572afde61f5e (patch) | |
tree | a5764f64b7e77441ee6f70dad4d4bad5df509b9b /drivers/staging/dgnc/dgnc_driver.h | |
parent | Staging: dgnc: Compress two lines of code into one. (diff) | |
download | kernel-qcow2-linux-1f26adc94a9f11440f4756e41b2f572afde61f5e.tar.gz kernel-qcow2-linux-1f26adc94a9f11440f4756e41b2f572afde61f5e.tar.xz kernel-qcow2-linux-1f26adc94a9f11440f4756e41b2f572afde61f5e.zip |
staging: dgnc: Remove non-standard APR/RAPR printing macros
This patch removes non-standard macros used by dgnc driver for printing error
or debugging messages. These are replaced by dev_err/dev_dbg (when possible)
or pr_err. There were cases where the message is completely removed since is
not adding any useful information.
Signed-off-by: Roberta Dobrescu <roberta.dobrescu@gmail.com>
Reviewed-by: Josh Triplett <josh@joshtriplett.org>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
Diffstat (limited to 'drivers/staging/dgnc/dgnc_driver.h')
-rw-r--r-- | drivers/staging/dgnc/dgnc_driver.h | 15 |
1 files changed, 2 insertions, 13 deletions
diff --git a/drivers/staging/dgnc/dgnc_driver.h b/drivers/staging/dgnc/dgnc_driver.h index f901957c757f..d5de3e2f2945 100644 --- a/drivers/staging/dgnc/dgnc_driver.h +++ b/drivers/staging/dgnc/dgnc_driver.h @@ -42,21 +42,10 @@ * *************************************************************************/ -/* - * Driver identification, error and debugging statments - * - * In theory, you can change all occurrences of "digi" in the next - * three lines, and the driver printk's will all automagically change. - * - * APR((fmt, args, ...)); Always prints message - */ +/* Driver identification, error and debugging statments */ #define PROCSTR "dgnc" /* /proc entries */ #define DEVSTR "/dev/dg/dgnc" /* /dev entries */ -#define DRVSTR "dgnc" /* Driver name string - * displayed by APR */ -#define APR(args) do { printk(DRVSTR": "); printk args; \ - } while (0) -#define RAPR(args) do { printk args; } while (0) +#define DRVSTR "dgnc" /* Driver name string */ #define TRC_TO_CONSOLE 1 |