aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2004-12-22 11:35:29 +0000
committerCorinna Vinschen <corinna@vinschen.de>2004-12-22 11:35:29 +0000
commit4b84574c07ec0e9d9b1fc23c3d63f2ff8b9a1881 (patch)
tree0076df9120f00be0e65cf644e5f04bfe2513cc2a
parent13d991bbea02271ae1c405eeb4bc703805cfd37b (diff)
downloadnewlib-4b84574c07ec0e9d9b1fc23c3d63f2ff8b9a1881.zip
newlib-4b84574c07ec0e9d9b1fc23c3d63f2ff8b9a1881.tar.gz
newlib-4b84574c07ec0e9d9b1fc23c3d63f2ff8b9a1881.tar.bz2
* fhandler_process.cpp (format_process_status): Use tabs in formatting
instead of spaces.
-rw-r--r--winsup/cygwin/ChangeLog5
-rw-r--r--winsup/cygwin/fhandler_process.cc34
2 files changed, 22 insertions, 17 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 1d16b4d..afc832e 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,8 @@
+2004-12-22 Chris January <chris@atomice.net>
+
+ * fhandler_process.cpp (format_process_status): Use tabs in formatting
+ instead of spaces.
+
2004-12-22 Corinna Vinschen <corinna@vinschen.de>
* path.cc (set_normalized_path): Allow empty pathnames.
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 493620e..98276e3 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -569,23 +569,23 @@ format_process_status (_pinfo *p, char *destbuf, size_t maxsize)
// The real uid value for *this* process is stored at cygheap->user.real_uid
// but we can't get at the real uid value for any other process, so
// just fake it as p->uid. Similar for p->gid.
- return __small_sprintf (destbuf, "Name: %s\n"
- "State: %c (%s)\n"
- "Tgid: %d\n"
- "Pid: %d\n"
- "PPid: %d\n"
- "Uid: %d %d %d %d\n"
- "Gid: %d %d %d %d\n"
- "VmSize: %8d kB\n"
- "VmLck: %8d kB\n"
- "VmRSS: %8d kB\n"
- "VmData: %8d kB\n"
- "VmStk: %8d kB\n"
- "VmExe: %8d kB\n"
- "VmLib: %8d kB\n"
- "SigPnd: %016x\n"
- "SigBlk: %016x\n"
- "SigIgn: %016x\n",
+ return __small_sprintf (destbuf, "Name:\t%s\n"
+ "State:\t%c (%s)\n"
+ "Tgid:\t%d\n"
+ "Pid:\t%d\n"
+ "PPid:\t%d\n"
+ "Uid:\t%d %d %d %d\n"
+ "Gid:\t%d %d %d %d\n"
+ "VmSize:\t%8d kB\n"
+ "VmLck:\t%8d kB\n"
+ "VmRSS:\t%8d kB\n"
+ "VmData:\t%8d kB\n"
+ "VmStk:\t%8d kB\n"
+ "VmExe:\t%8d kB\n"
+ "VmLib:\t%8d kB\n"
+ "SigPnd:\t%016x\n"
+ "SigBlk:\t%016x\n"
+ "SigIgn:\t%016x\n",
cmd,
state, state_str,
p->pgid,