summaryrefslogtreecommitdiffstats
path: root/drivers/bcma/bcma_private.h
diff options
context:
space:
mode:
authorRafał Miłecki2012-07-05 22:07:32 +0200
committerJohn W. Linville2012-07-09 22:36:36 +0200
commit3d9d8af330a891f141db420115238f01e4c6ece7 (patch)
treee184e7da8625c3de578e48a308f634eb68de0865 /drivers/bcma/bcma_private.h
parentb43: N-PHY: fix RSSI calibration (diff)
downloadkernel-qcow2-linux-3d9d8af330a891f141db420115238f01e4c6ece7.tar.gz
kernel-qcow2-linux-3d9d8af330a891f141db420115238f01e4c6ece7.tar.xz
kernel-qcow2-linux-3d9d8af330a891f141db420115238f01e4c6ece7.zip
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.h9
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 @@
#define BCMA_CORE_SIZE 0x1000
+#define bcma_err(bus, fmt, ...) \
+ pr_err("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
+#define bcma_warn(bus, fmt, ...) \
+ pr_warn("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
+#define bcma_info(bus, fmt, ...) \
+ pr_info("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
+#define bcma_debug(bus, fmt, ...) \
+ pr_debug("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
+
struct bcma_bus;
/* main.c */