diff options
author | Ezequiel Garcia <ezequiel.garcia@free-electrons.com> | 2013-06-07 20:47:38 +0400 |
---|---|---|
committer | Jason Cooper <jason@lakedaemon.net> | 2013-06-08 18:10:19 +0400 |
commit | b15d0b5256056a67c5cb14c2d4d46dd12c8bfb99 (patch) | |
tree | 2e0f8526ce1c2e8b6afbe977b0f5183d59defc0c /drivers/bus/mvebu-mbus.c | |
parent | c589f9b4b51317cfc530812fe90a9895bd51430e (diff) | |
download | linux-b15d0b5256056a67c5cb14c2d4d46dd12c8bfb99.tar.xz |
bus: mvebu-mbus: Use pr_fmt
In order to clean message printing, we replace pr_info with pr_fmt.
This is purely cosmetic change, with the sole purpose of making
the code a bit more readable.
Signed-off-by: Ezequiel Garcia <ezequiel.garcia@free-electrons.com>
Acked-by: Thomas Petazzoni <thomas.petazzoni@free-electrons.com>
Signed-off-by: Jason Cooper <jason@lakedaemon.net>
Diffstat (limited to 'drivers/bus/mvebu-mbus.c')
-rw-r--r-- | drivers/bus/mvebu-mbus.c | 8 |
1 files changed, 5 insertions, 3 deletions
diff --git a/drivers/bus/mvebu-mbus.c b/drivers/bus/mvebu-mbus.c index 8740f46b4d0d..33c6947eebec 100644 --- a/drivers/bus/mvebu-mbus.c +++ b/drivers/bus/mvebu-mbus.c @@ -49,6 +49,8 @@ * configuration (file 'devices'). */ +#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt + #include <linux/kernel.h> #include <linux/module.h> #include <linux/init.h> @@ -762,7 +764,7 @@ int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base, break; if (!s->soc->map[i].name) { - pr_err("mvebu-mbus: unknown device '%s'\n", devname); + pr_err("unknown device '%s'\n", devname); return -ENODEV; } @@ -775,7 +777,7 @@ int mvebu_mbus_add_window_remap_flags(const char *devname, phys_addr_t base, attr |= 0x28; if (!mvebu_mbus_window_conflicts(s, base, size, target, attr)) { - pr_err("mvebu-mbus: cannot add window '%s', conflicts with another window\n", + pr_err("cannot add window '%s', conflicts with another window\n", devname); return -EINVAL; } @@ -842,7 +844,7 @@ int __init mvebu_mbus_init(const char *soc, phys_addr_t mbuswins_phys_base, break; if (!of_id->compatible) { - pr_err("mvebu-mbus: could not find a matching SoC family\n"); + pr_err("could not find a matching SoC family\n"); return -ENODEV; } |