Skip to content

Commit 29328fb

Browse files
ColinIanKinghdeller
authored andcommitted
video/logo: use %u format specifier for unsigned int values
Currently the %d format specifier is being used for unsigned int values. Fix this by using the correct %u format specifier. Cleans up cppcheck warnings: warning: %d in format string (no. 1) requires 'int' but the argument type is 'unsigned int'. [invalidPrintfArgType_sint] Signed-off-by: Colin Ian King <[email protected]> Reviewed-by: Randy Dunlap <[email protected]> Signed-off-by: Helge Deller <[email protected]>
1 parent e2e0b83 commit 29328fb

File tree

1 file changed

+3
-3
lines changed

1 file changed

+3
-3
lines changed

drivers/video/logo/pnmtologo.c

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -249,10 +249,10 @@ static void write_footer(void)
249249
fputs("\n};\n\n", out);
250250
fprintf(out, "const struct linux_logo %s __initconst = {\n", logoname);
251251
fprintf(out, "\t.type\t\t= %s,\n", logo_types[logo_type]);
252-
fprintf(out, "\t.width\t\t= %d,\n", logo_width);
253-
fprintf(out, "\t.height\t\t= %d,\n", logo_height);
252+
fprintf(out, "\t.width\t\t= %u,\n", logo_width);
253+
fprintf(out, "\t.height\t\t= %u,\n", logo_height);
254254
if (logo_type == LINUX_LOGO_CLUT224) {
255-
fprintf(out, "\t.clutsize\t= %d,\n", logo_clutsize);
255+
fprintf(out, "\t.clutsize\t= %u,\n", logo_clutsize);
256256
fprintf(out, "\t.clut\t\t= %s_clut,\n", logoname);
257257
}
258258
fprintf(out, "\t.data\t\t= %s_data\n", logoname);

0 commit comments

Comments
 (0)