Advertisement
Guest User

Untitled

a guest
Oct 8th, 2019
202
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 1.01 KB | None | 0 0
  1. From 42d7d8dda81902ae31dfab8ab4215c2626765e11 Mon Sep 17 00:00:00 2001
  2. From: "Robin H. Johnson" <robbat2@gentoo.org>
  3. Date: Sun, 21 Jul 2019 16:33:31 +0000
  4. Subject: [PATCH] firmware: log names of loaded firmware
  5.  
  6. It's non-trivial to figure out names of firmware that was actually
  7. loaded, add a print statement at the end of _request_firmware that logs
  8. the name & result of each firmware.
  9.  
  10. This is esp. valuable early in boot, before logging of UEVENT is
  11. available.
  12.  
  13. Signed-off-by: Robin H. Johnson <robbat2@gentoo.org>
  14. ---
  15. drivers/base/firmware_loader/main.c | 2 ++
  16. 1 file changed, 2 insertions(+)
  17.  
  18. diff --git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c
  19. index bf44c79beae9..7d4e5893b8ef 100644
  20. --- a/drivers/base/firmware_loader/main.c
  21. +++ b/drivers/base/firmware_loader/main.c
  22. @@ -791,6 +791,8 @@ _request_firmware(const struct firmware **firmware_p, const char *name,
  23. fw = NULL;
  24. }
  25.  
  26. + dev_info(device, "_request_firmware %s ret=%d\n", name, ret);
  27. +
  28. *firmware_p = fw;
  29. return ret;
  30. }
  31. --
  32. 2.23.0
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement