Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

mmapstress01: Fix printf format modifiers #1204

Open
wants to merge 1 commit into
base: master
Choose a base branch
from
Open
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions testcases/kernel/mem/mmapstress/mmapstress01.c
Original file line number Diff line number Diff line change
Expand Up @@ -159,7 +159,7 @@ static void child_mapper(char *file, unsigned int procno, unsigned int nprocs)
nloops = (randloops) ? (lrand48() % MAXLOOPS) : MAXLOOPS;

if (debug)
tst_res(TINFO, "child %d (pid %d): seed %d, fsize %lld, mapsize %ld, off %lld, loop %d",
tst_res(TINFO, "child %u (pid %d): seed %d, fsize %lld, mapsize %ld, off %lld, loop %d",
procno, getpid(), seed, (long long)filesize,
(long)mapsize, (long long)offset / pagesize, nloops);

Expand All @@ -179,7 +179,7 @@ static void child_mapper(char *file, unsigned int procno, unsigned int nprocs)
for (i = procno; i < validsize; i += nprocs) {
if (*((unsigned char *)(paddr + i))
!= ((procno + pattern) & 0xff))
tst_brk(TFAIL, "child %d: invalid data <x%x>\n"
tst_brk(TFAIL, "child %u: invalid data <x%x>\n"
" at pg %d off %d, exp <x%x>", procno,
*((unsigned char *)(paddr + i)),
randpage, i, (procno + pattern) & 0xff);
Expand Down