mirror of
https://git.kernel.org/pub/scm/linux/kernel/git/stable/linux.git
synced 2025-08-15 18:15:09 +00:00
![]() This change resolves non literal string format warning invoked for
proc-maps-race.c while compiling.
proc-maps-race.c:205:17: warning: format not a string literal and no format arguments [-Wformat-security]
205 | printf(text);
| ^~~~~~
proc-maps-race.c:209:17: warning: format not a string literal and no format arguments [-Wformat-security]
209 | printf(text);
| ^~~~~~
proc-maps-race.c: In function `print_last_lines':
proc-maps-race.c:224:9: warning: format not a string literal and no format arguments [-Wformat-security]
224 | printf(start);
| ^~~~~~
Add string format specifier %s for the printf calls in both
print_first_lines() and print_last_lines() thus resolving the warnings.
The test executes fine after this change thus causing no effect to the
functional behavior of the test.
Link: https://lkml.kernel.org/r/20250804225633.841777-1-hsukrut3@gmail.com
Fixes:
|
||
---|---|---|
.. | ||
.gitignore | ||
config | ||
fd-001-lookup.c | ||
fd-002-posix-eq.c | ||
fd-003-kthread.c | ||
Makefile | ||
proc-2-is-kthread.c | ||
proc-empty-vm.c | ||
proc-fsconfig-hidepid.c | ||
proc-loadavg-001.c | ||
proc-maps-race.c | ||
proc-multiple-procfs.c | ||
proc-pid-vm.c | ||
proc-self-isnt-kthread.c | ||
proc-self-map-files-001.c | ||
proc-self-map-files-002.c | ||
proc-self-syscall.c | ||
proc-self-wchan.c | ||
proc-subset-pid.c | ||
proc-tid0.c | ||
proc-uptime-001.c | ||
proc-uptime-002.c | ||
proc-uptime.h | ||
proc.h | ||
read.c | ||
self.c | ||
setns-dcache.c | ||
setns-sysvipc.c | ||
thread-self.c |