public inbox for glibc-cvs@sourceware.org
help / color / mirror / Atom feed
* [glibc] tst-spawn-cgroup.c: Fix argument order of UNSUPPORTED message.
@ 2023-10-20 6:46 Stefan Liebler
0 siblings, 0 replies; only message in thread
From: Stefan Liebler @ 2023-10-20 6:46 UTC (permalink / raw)
To: glibc-cvs
https://sourceware.org/git/gitweb.cgi?p=glibc.git;h=f5677d9cebb12edcd9301dbb5cf40f82618b46af
commit f5677d9cebb12edcd9301dbb5cf40f82618b46af
Author: Stefan Liebler <stli@linux.ibm.com>
Date: Thu Oct 19 14:35:59 2023 +0200
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>
Diff:
---
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 84e24696eb..d947f6c7f3 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);
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2023-10-20 6:46 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2023-10-20 6:46 [glibc] tst-spawn-cgroup.c: Fix argument order of UNSUPPORTED message Stefan Liebler
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for read-only IMAP folder(s) and NNTP newsgroup(s).