From f5677d9cebb12edcd9301dbb5cf40f82618b46af Mon Sep 17 00:00:00 2001 From: Stefan Liebler Date: Thu, 19 Oct 2023 14:35:59 +0200 Subject: 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 Reviewed-by: Florian Weimer --- sysdeps/unix/sysv/linux/tst-spawn-cgroup.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/sysdeps/unix/sysv/linux/tst-spawn-cgroup.c b/sysdeps/unix/sysv/linux/tst-spawn-cgroup.c index 84e2469..d947f6c 100644 --- a/sysdeps/unix/sysv/linux/tst-spawn-cgroup.c +++ b/sysdeps/unix/sysv/linux/tst-spawn-cgroup.c @@ -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); -- cgit v1.1