zdtm/bpfmap: parse frozen field with SCNu32

obj->frozen is uint32_t. scanf() must use the matching SCNu32 macro for
this destination type.

Use SCNu32 in parse_bpfmap_fdinfo() for the frozen field parsing.

Signed-off-by: Farzan Aman Khan <farzanaman99@gmail.com>
This commit is contained in:
Farzan Aman Khan 2026-03-30 15:32:01 +05:30 committed by Andrei Vagin
parent 1e200015a5
commit 176f140198

View file

@ -57,7 +57,7 @@ int parse_bpfmap_fdinfo(int fd, struct bpfmap_fdinfo_obj *obj, uint32_t expected
continue;
}
if (fdinfo_field(str, "frozen")) {
if (sscanf(str, "frozen: %d", &obj->frozen) != 1)
if (sscanf(str, "frozen: %" SCNu32 "", &obj->frozen) != 1)
goto parse_err;
met++;
continue;