[newlib-cygwin] Cygwin: /proc/<PID>/status: fix format specifier
Corinna Vinschen
corinna@sourceware.org
Tue Mar 1 15:24:20 GMT 2022
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,
More information about the Cygwin-cvs
mailing list