diff options
author | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-08-27 08:13:05 -0400 |
---|---|---|
committer | Artem Bityutskiy <artem.bityutskiy@linux.intel.com> | 2012-09-04 02:39:02 -0400 |
commit | e28453bbb76c290d67eb28b3ff6875a6519c3998 (patch) | |
tree | 71ca0633ec0bd8723af61c2e57922dda7394ebe5 /drivers/mtd/ubi/ubi.h | |
parent | 049333cecbde11988c49ad4d7861eefbc3534422 (diff) |
UBI: use pr_ helper instead of printk
Use 'pr_err()' instead of 'printk(KERN_ERR', etc.
Signed-off-by: Artem Bityutskiy <artem.bityutskiy@linux.intel.com>
Diffstat (limited to 'drivers/mtd/ubi/ubi.h')
-rw-r--r-- | drivers/mtd/ubi/ubi.h | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/drivers/mtd/ubi/ubi.h b/drivers/mtd/ubi/ubi.h index 2a2475b9ec54..383ee43d2425 100644 --- a/drivers/mtd/ubi/ubi.h +++ b/drivers/mtd/ubi/ubi.h | |||
@@ -51,12 +51,12 @@ | |||
51 | #define UBI_NAME_STR "ubi" | 51 | #define UBI_NAME_STR "ubi" |
52 | 52 | ||
53 | /* Normal UBI messages */ | 53 | /* Normal UBI messages */ |
54 | #define ubi_msg(fmt, ...) printk(KERN_NOTICE "UBI: " fmt "\n", ##__VA_ARGS__) | 54 | #define ubi_msg(fmt, ...) pr_notice("UBI: " fmt "\n", ##__VA_ARGS__) |
55 | /* UBI warning messages */ | 55 | /* UBI warning messages */ |
56 | #define ubi_warn(fmt, ...) printk(KERN_WARNING "UBI warning: %s: " fmt "\n", \ | 56 | #define ubi_warn(fmt, ...) pr_warn("UBI warning: %s: " fmt "\n", \ |
57 | __func__, ##__VA_ARGS__) | 57 | __func__, ##__VA_ARGS__) |
58 | /* UBI error messages */ | 58 | /* UBI error messages */ |
59 | #define ubi_err(fmt, ...) printk(KERN_ERR "UBI error: %s: " fmt "\n", \ | 59 | #define ubi_err(fmt, ...) pr_err("UBI error: %s: " fmt "\n", \ |
60 | __func__, ##__VA_ARGS__) | 60 | __func__, ##__VA_ARGS__) |
61 | 61 | ||
62 | /* Background thread name pattern */ | 62 | /* Background thread name pattern */ |