tst-spawn-cgroup.c: Fix argument order of UNSUPPORTED message.

The arguments for "expected" and "got" are mismatched.  Furthermore
this patch is dumping both values as hex.
Reviewed-by: Adhemerval Zanella  <adhemerval.zanella@linaro.org>
Reviewed-by: Florian Weimer <fweimer@redhat.com>
This commit is contained in:
Stefan Liebler 2023-10-19 14:35:59 +02:00
parent 1c1083a3e4
commit f5677d9ceb

View File

@ -136,9 +136,9 @@ create_new_cgroup (char **newcgroup)
}
if (!F_TYPE_EQUAL (fs.f_type, CGROUP2_SUPER_MAGIC))
FAIL_UNSUPPORTED ("%s is not a cgroupv2 (expected %jx, got %jd)",
CGROUPFS, (intmax_t) fs.f_type,
(intmax_t) CGROUP2_SUPER_MAGIC);
FAIL_UNSUPPORTED ("%s is not a cgroupv2 (expected %#jx, got %#jx)",
CGROUPFS, (intmax_t) CGROUP2_SUPER_MAGIC,
(intmax_t) fs.f_type);
char *cgroup = get_cgroup ();
TEST_VERIFY_EXIT (cgroup != NULL);