diff --git a/test/zdtm/lib/bpfmap_zdtm.c b/test/zdtm/lib/bpfmap_zdtm.c index 7fe1ed182..9c1abba84 100644 --- a/test/zdtm/lib/bpfmap_zdtm.c +++ b/test/zdtm/lib/bpfmap_zdtm.c @@ -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;