proc_cpuview.c: In function ‘read_cpu_cfs_param’:
proc_cpuview.c:440:39: error: use of assignment suppression and length modifier together in gnu_scanf format [-Werror=format=]
440 | if (sscanf(str, first ? "%" PRId64 : "%*" PRId64 " %" PRId64, value) != 1)
| ^~~~
Signed-off-by: Christian Brauner <christian.brauner@ubuntu.com>
if (!cgroup_ops->get(cgroup_ops, "cpu", cg, file, &str))
return false;
- if (sscanf(str, first ? "%" PRId64 : "%*" PRId64 " %" PRId64, value) != 1)
+ if (sscanf(str, first ? "%" PRId64 : "%*d %" PRId64, value) != 1)
return false;
return true;