080-v5.1-0002-bcma-use-dev_-printing-functions.patch 1.3 KB

123456789101112131415161718192021222324252627282930313233343536
  1. From 777bc4801a6868fcbff09ffb6e30f023e7c5ed38 Mon Sep 17 00:00:00 2001
  2. From: =?UTF-8?q?Rafa=C5=82=20Mi=C5=82ecki?= <rafal@milecki.pl>
  3. Date: Wed, 2 Jan 2019 00:00:02 +0100
  4. Subject: [PATCH] bcma: use dev_* printing functions
  5. MIME-Version: 1.0
  6. Content-Type: text/plain; charset=UTF-8
  7. Content-Transfer-Encoding: 8bit
  8. It provides more meaningful messages.
  9. Signed-off-by: Rafał Miłecki <rafal@milecki.pl>
  10. Signed-off-by: Kalle Valo <kvalo@codeaurora.org>
  11. ---
  12. drivers/bcma/bcma_private.h | 8 ++++----
  13. 1 file changed, 4 insertions(+), 4 deletions(-)
  14. --- a/drivers/bcma/bcma_private.h
  15. +++ b/drivers/bcma/bcma_private.h
  16. @@ -10,13 +10,13 @@
  17. #include <linux/delay.h>
  18. #define bcma_err(bus, fmt, ...) \
  19. - pr_err("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
  20. + dev_err((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
  21. #define bcma_warn(bus, fmt, ...) \
  22. - pr_warn("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
  23. + dev_warn((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
  24. #define bcma_info(bus, fmt, ...) \
  25. - pr_info("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
  26. + dev_info((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
  27. #define bcma_debug(bus, fmt, ...) \
  28. - pr_debug("bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
  29. + dev_dbg((bus)->dev, "bus%d: " fmt, (bus)->num, ##__VA_ARGS__)
  30. struct bcma_bus;