diff options
author | Rafał Miłecki <zajec5@gmail.com> | 2012-07-05 16:07:32 -0400 |
---|---|---|
committer | John W. Linville <linville@tuxdriver.com> | 2012-07-09 16:36:36 -0400 |
commit | 3d9d8af330a891f141db420115238f01e4c6ece7 (patch) | |
tree | e184e7da8625c3de578e48a308f634eb68de0865 /drivers/bcma/bcma_private.h | |
parent | cddec90254c3c3d20752bf9053c496035cdfef6a (diff) |
bcma: use custom printing functions
Having bus number printed makes it much easier to anaylze logs on
systems with more buses. For example Netgear WNDR4500 has 3 AMBA buses
in total, which makes standard log really messy.
Signed-off-by: Rafał Miłecki <zajec5@gmail.com>
Signed-off-by: John W. Linville <linville@tuxdriver.com>
Diffstat (limited to 'drivers/bcma/bcma_private.h')
-rw-r--r-- | drivers/bcma/bcma_private.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/drivers/bcma/bcma_private.h b/drivers/bcma/bcma_private.h index b81755bb4798..f6589eb7c45f 100644 --- a/drivers/bcma/bcma_private.h +++ b/drivers/bcma/bcma_private.h | |||
@@ -10,6 +10,15 @@ | |||
10 | 10 | ||
11 | #define BCMA_CORE_SIZE 0x1000 | 11 | #define BCMA_CORE_SIZE 0x1000 |
12 | 12 | ||
13 | #define bcma_err(bus, fmt, ...) \ | ||
14 | pr_err("bus%d: " fmt, (bus)->num, ##__VA_ARGS__) | ||
15 | #define bcma_warn(bus, fmt, ...) \ | ||
16 | pr_warn("bus%d: " fmt, (bus)->num, ##__VA_ARGS__) | ||
17 | #define bcma_info(bus, fmt, ...) \ | ||
18 | pr_info("bus%d: " fmt, (bus)->num, ##__VA_ARGS__) | ||
19 | #define bcma_debug(bus, fmt, ...) \ | ||
20 | pr_debug("bus%d: " fmt, (bus)->num, ##__VA_ARGS__) | ||
21 | |||
13 | struct bcma_bus; | 22 | struct bcma_bus; |
14 | 23 | ||
15 | /* main.c */ | 24 | /* main.c */ |