public inbox for cygwin-cvs@sourceware.org
help / color / mirror / Atom feed
* [newlib-cygwin] Cygwin: /proc/<PID>/status: fix format specifier
@ 2022-03-01 15:24 Corinna Vinschen
0 siblings, 0 replies; only message in thread
From: Corinna Vinschen @ 2022-03-01 15:24 UTC (permalink / raw)
To: cygwin-cvs
https://sourceware.org/git/gitweb.cgi?p=newlib-cygwin.git;h=25937aa1d028325d88030ef3071a91a4e4905be8
commit 25937aa1d028325d88030ef3071a91a4e4905be8
Author: Corinna Vinschen <corinna@vinschen.de>
Date: Tue Mar 1 14:06:09 2022 +0100
Cygwin: /proc/<PID>/status: fix format specifier
The format specifier used for the signal masks is incorrectly
assuming 32 bit values. Fix it.
Signed-off-by: Corinna Vinschen <corinna@vinschen.de>
Diff:
---
winsup/cygwin/fhandler_process.cc | 6 +++---
1 file changed, 3 insertions(+), 3 deletions(-)
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 270b27f58..7f69027d0 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -1257,9 +1257,9 @@ format_process_status (void *data, char *&destbuf)
"VmStk:\t%8lu kB\n"
"VmExe:\t%8lu kB\n"
"VmLib:\t%8lu kB\n"
- "SigPnd:\t%016x\n"
- "SigBlk:\t%016x\n"
- "SigIgn:\t%016x\n",
+ "SigPnd:\t%016lx\n"
+ "SigBlk:\t%016lx\n"
+ "SigIgn:\t%016lx\n",
cmd,
state, state_str,
p->pgid,
^ permalink raw reply [flat|nested] only message in thread
only message in thread, other threads:[~2022-03-01 15:24 UTC | newest]
Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2022-03-01 15:24 [newlib-cygwin] Cygwin: /proc/<PID>/status: fix format specifier Corinna Vinschen
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).