git: aa178783710f - main - rtwn: print out the firmware file being loaded
- Go to: [ bottom of page ] [ top of archives ] [ this month ]
Date: Tue, 31 Dec 2024 21:58:34 UTC
The branch main has been updated by adrian: URL: https://cgit.FreeBSD.org/src/commit/?id=aa178783710f31e3f421065bc17a701abbaf9a18 commit aa178783710f31e3f421065bc17a701abbaf9a18 Author: Adrian Chadd <adrian@FreeBSD.org> AuthorDate: 2024-12-13 06:01:26 +0000 Commit: Adrian Chadd <adrian@FreeBSD.org> CommitDate: 2024-12-31 21:58:17 +0000 rtwn: print out the firmware file being loaded The firmware version isn't enough; different firmware is loaded for different revisions of a given chip. So print out the file too; it'll make handling reports much easier. Differential Revision: https://reviews.freebsd.org/D48067 Reviewed by: emaste --- sys/dev/rtwn/if_rtwn_fw.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/sys/dev/rtwn/if_rtwn_fw.c b/sys/dev/rtwn/if_rtwn_fw.c index 551adbdb8704..0fc5bac75c82 100644 --- a/sys/dev/rtwn/if_rtwn_fw.c +++ b/sys/dev/rtwn/if_rtwn_fw.c @@ -141,7 +141,8 @@ rtwn_load_firmware(struct rtwn_softc *sc) sc->fwver = le16toh(hdr->version); RTWN_DPRINTF(sc, RTWN_DEBUG_FIRMWARE, - "FW V%u.%u %02u-%02u %02u:%02u\n", + "FW (%s) V%u.%u %02u-%02u %02u:%02u\n", + sc->fwname, le16toh(hdr->version), le16toh(hdr->subversion), hdr->month, hdr->date, hdr->hour, hdr->minute); ptr += sizeof(*hdr);