diff options
author | Pavel Tikhomirov <ptikhomirov@virtuozzo.com> | 2022-03-11 17:31:07 +0300 |
---|---|---|
committer | Andrei Vagin <avagin@gmail.com> | 2022-04-29 03:53:52 +0300 |
commit | 5a8fd343f57c0a38d171c5158e2ffed1980a0978 (patch) | |
tree | c7c2ddceb9a992a406a6340e2e69f68a378d9924 /criu/uffd.c | |
parent | 9e747351607e82ffb541bc0d3be9646b0a150c1c (diff) |
uffd: fix __u64 print format specifier
coverity CID 389197:
CID 389197 (#1 of 1): Invalid printf format string (PRINTF_ARGS)
format_error: Length modifier L not applicable to conversion specifier in %Lu. [show details]
284 pr_err("Incompatible uffd API: expected %Lu, got %Lu\n", UFFD_API, uffdio_api.api);
Looking on C11 standard it seems that "%Lu" is undefined, we better not
use this, see:
"L Specifies that a following a, A, e, E, f, F, g, or G conversion
specifier applies to a long double argument."
http://port70.net/~nsz/c/c11/n1570.html#7.21.6.1p7
Signed-off-by: Pavel Tikhomirov <ptikhomirov@virtuozzo.com>
Diffstat (limited to 'criu/uffd.c')
-rw-r--r-- | criu/uffd.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/criu/uffd.c b/criu/uffd.c index 45ac8ba77..b551698f8 100644 --- a/criu/uffd.c +++ b/criu/uffd.c @@ -281,7 +281,7 @@ int uffd_open(int flags, unsigned long *features, int *err) } if (uffdio_api.api != UFFD_API) { - pr_err("Incompatible uffd API: expected %Lu, got %Lu\n", UFFD_API, uffdio_api.api); + pr_err("Incompatible uffd API: expected %llu, got %llu\n", UFFD_API, uffdio_api.api); goto close; } |