git: bb0300c6ff46 - stable/14 - linux_firmware: reformat error print-out
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Fri, 04 Sep 2026 05:56:43 UTC
The branch stable/14 has been updated by ngie:
URL: https://cgit.FreeBSD.org/src/commit/?id=bb0300c6ff4683e6f330c9ffa39c8753df0c3bee
commit bb0300c6ff4683e6f330c9ffa39c8753df0c3bee
Author: Enji Cooper <ngie@FreeBSD.org>
AuthorDate: 2026-07-21 16:08:44 +0000
Commit: Enji Cooper <ngie@FreeBSD.org>
CommitDate: 2026-09-04 05:56:38 +0000
linux_firmware: reformat error print-out
This makes it easier to grep for the error message to better understand
the call stack when loading firmware modules fails.
Fix a cosmetic-only style(9) bug while here in the same function related
to another logging message.
MFC after: 1 week
Differential Revision: https://reviews.freebsd.org/D58380
(cherry picked from commit a594783bac906ecc4f6528d7d576215f85a21bda)
---
sys/compat/linuxkpi/common/src/linux_firmware.c | 7 ++++---
1 file changed, 4 insertions(+), 3 deletions(-)
diff --git a/sys/compat/linuxkpi/common/src/linux_firmware.c b/sys/compat/linuxkpi/common/src/linux_firmware.c
index 12658df5ce83..f514f05ea67b 100644
--- a/sys/compat/linuxkpi/common/src/linux_firmware.c
+++ b/sys/compat/linuxkpi/common/src/linux_firmware.c
@@ -130,12 +130,13 @@ _linuxkpi_request_firmware(const char *fw_name, const struct linuxkpi_firmware *
*fw = NULL;
}
if (warn)
- device_printf(dev->bsddev, "could not load firmware "
- "image '%s'\n", fw_name);
+ device_printf(dev->bsddev,
+ "could not load firmware image '%s'\n",
+ fw_name);
return (-ENOENT);
}
- device_printf(dev->bsddev,"successfully loaded firmware image '%s'\n",
+ device_printf(dev->bsddev, "successfully loaded firmware image '%s'\n",
fw_name);
lfw->fbdfw = fbdfw;
lfw->data = (const uint8_t *)fbdfw->data;