From 2433c503a6657273da895e36adda73942452c482 Mon Sep 17 00:00:00 2001 From: Petr Vorel Date: Tue, 16 Jul 2024 18:55:12 +0200 Subject: [PATCH] landlock.h: Fix printf format for size_t 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: e4410501dc ("Added three more SAFE_* macros for landlock sandbox") Signed-off-by: Petr Vorel --- include/lapi/landlock.h | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/include/lapi/landlock.h b/include/lapi/landlock.h index 6d85eb12e37..505541f51b0 100644 --- a/include/lapi/landlock.h +++ b/include/lapi/landlock.h @@ -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); }