2019-11-03 18:04:35

by Drew DeVault

[permalink] [raw]
Subject: [PATCH] firmware loader: log path to loaded firmwares

This is useful for users who are trying to identify the firmwares in use
on their system.

Signed-off-by: Drew DeVault <[email protected]>
---
drivers/base/firmware_loader/main.c | 2 ++
1 file changed, 2 insertions(+)

diff --git a/drivers/base/firmware_loader/main.c b/drivers/base/firmware_loader/main.c
index bf44c79beae9..139d40a2f423 100644
--- a/drivers/base/firmware_loader/main.c
+++ b/drivers/base/firmware_loader/main.c
@@ -34,6 +34,7 @@
#include <linux/reboot.h>
#include <linux/security.h>
#include <linux/xz.h>
+#include <linux/kernel.h>

#include <generated/utsrelease.h>

@@ -504,6 +505,7 @@ fw_get_filesystem_firmware(struct device *device, struct fw_priv *fw_priv,
path);
continue;
}
+ printk(KERN_INFO "Loading firmware from %s\n", path);
if (decompress) {
dev_dbg(device, "f/w decompressing %s\n",
fw_priv->fw_name);
--
2.23.0