mirror of
https://github.com/checkpoint-restore/criu.git
synced 2026-07-17 16:47:50 +00:00
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:
parent
1e200015a5
commit
176f140198
1 changed files with 1 additions and 1 deletions
|
|
@ -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;
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue