Skip to content

Commit

Permalink
landlock.h: Fix printf format for size_t
Browse files Browse the repository at this point in the history
It fixes warning on 32 bit:

include/lapi/landlock.h:134:56: warning: format '%lu' expects argument
of type 'long unsigned int', but argument 6 has type 'size_t' {aka
'unsigned int'}

Fixes: e441050 ("Added three more SAFE_* macros for landlock sandbox")
Signed-off-by: Petr Vorel <pvorel@suse.cz>
  • Loading branch information
pevik committed Jul 16, 2024
1 parent e35aa76 commit 2433c50
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion include/lapi/landlock.h
Original file line number Diff line number Diff line change
Expand Up @@ -131,7 +131,7 @@ static inline int safe_landlock_create_ruleset(const char *file, const int linen
rval = tst_syscall(__NR_landlock_create_ruleset, attr, size, flags);
if (rval == -1) {
tst_brk_(file, lineno, TBROK | TERRNO,
"landlock_create_ruleset(%p, %lu, %u)",
"landlock_create_ruleset(%p, %zi, %u)",
attr, size, flags);
}

Expand Down

0 comments on commit 2433c50

Please sign in to comment.