]> sourceware.org Git - glibc.git/commitdiff
tst-spawn-cgroup.c: Fix argument order of UNSUPPORTED message.
authorStefan Liebler <stli@linux.ibm.com>
Thu, 19 Oct 2023 12:35:59 +0000 (14:35 +0200)
committerStefan Liebler <stli@linux.ibm.com>
Fri, 20 Oct 2023 06:46:09 +0000 (08:46 +0200)
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>
sysdeps/unix/sysv/linux/tst-spawn-cgroup.c

index 84e24696eb8e62af637129463cc15f4712b4db54..d947f6c7f38059e9820fecde8d3dbc6a5abc434d 100644 (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);
This page took 0.045408 seconds and 5 git commands to generate.