Skip to content

Commit 5d4156a

Browse files
committed
firmware: bcm47xx_nvram: _really_ correct size_t printf format
Commit feb4eb0 ("firmware: bcm47xx_nvram: Correct size_t printf format") was wrong, and changed a printout of 'header.len' - which is an u32 type - to use '%zu'. It apparently did pattern matching on the other case, where it printed out 'nvram_len', which is indeed of type 'size_t'. Rather than undoing the change, this just makes it use the variable that the change seemed to expect to be used. Cc: Florian Fainelli <[email protected]> Cc: Philippe Mathieu-Daudé <[email protected]> Cc: Paul Burton <[email protected]> Signed-off-by: Linus Torvalds <[email protected]>
1 parent 3e4d890 commit 5d4156a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

drivers/firmware/broadcom/bcm47xx_nvram.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -149,7 +149,7 @@ static int nvram_init(void)
149149
nvram_len = header.len;
150150
if (nvram_len >= NVRAM_SPACE) {
151151
pr_err("nvram on flash (%zu bytes) is bigger than the reserved space in memory, will just copy the first %i bytes\n",
152-
header.len, NVRAM_SPACE);
152+
nvram_len, NVRAM_SPACE);
153153
nvram_len = NVRAM_SPACE - 1;
154154
}
155155

0 commit comments

Comments
 (0)