summaryrefslogtreecommitdiffstats
path: root/winsup/cygwin/fhandler_process.cc
diff options
context:
space:
mode:
authorChristopher Faylor <me@cgf.cx>2004-09-03 01:53:12 +0000
committerChristopher Faylor <me@cgf.cx>2004-09-03 01:53:12 +0000
commit0cd9f74fa5f16ff9573ae52a01296b90b02a9324 (patch)
tree5eefd8af91f99ee4a81ed759f1ef0f52b7bbfd3b /winsup/cygwin/fhandler_process.cc
parent6644c628f58d55c3dd1176d5800adbdbac08a296 (diff)
downloadcygnal-0cd9f74fa5f16ff9573ae52a01296b90b02a9324.tar.gz
cygnal-0cd9f74fa5f16ff9573ae52a01296b90b02a9324.tar.bz2
cygnal-0cd9f74fa5f16ff9573ae52a01296b90b02a9324.zip
Regularize most strace_prints throughout so that %E is always preceded by a
comma and elminate most uses of "foo = %s" to "foo %s".
Diffstat (limited to 'winsup/cygwin/fhandler_process.cc')
-rw-r--r--winsup/cygwin/fhandler_process.cc20
1 files changed, 7 insertions, 13 deletions
diff --git a/winsup/cygwin/fhandler_process.cc b/winsup/cygwin/fhandler_process.cc
index 745600713..e56b85357 100644
--- a/winsup/cygwin/fhandler_process.cc
+++ b/winsup/cygwin/fhandler_process.cc
@@ -441,8 +441,7 @@ format_process_stat (_pinfo *p, char *destbuf, size_t maxsize)
{
DWORD error = GetLastError ();
__seterrno_from_win_error (error);
- debug_printf ("OpenProcess: ret = %d",
- error);
+ debug_printf ("OpenProcess: ret %d", error);
return 0;
}
if (ret == STATUS_SUCCESS)
@@ -456,8 +455,7 @@ format_process_stat (_pinfo *p, char *destbuf, size_t maxsize)
if (ret != STATUS_SUCCESS)
{
__seterrno_from_win_error (RtlNtStatusToDosError (ret));
- debug_printf ("NtQueryInformationProcess: ret = %d, "
- "Dos(ret) = %d",
+ debug_printf ("NtQueryInformationProcess: ret %d, Dos(ret) %d",
ret, RtlNtStatusToDosError (ret));
return 0;
}
@@ -630,9 +628,8 @@ get_process_state (DWORD dwProcessId)
delete [] p, p = new ULONG[n *= 2];
if (ret != STATUS_SUCCESS)
{
- debug_printf ("NtQuerySystemInformation: ret = %d, "
- "Dos(ret) = %d",
- ret, RtlNtStatusToDosError (ret));
+ debug_printf ("NtQuerySystemInformation: ret %d, Dos(ret) %d",
+ ret, RtlNtStatusToDosError (ret));
goto out;
}
state = 'Z';
@@ -696,8 +693,7 @@ get_mem_values (DWORD dwProcessId, unsigned long *vmsize, unsigned long *vmrss,
{
DWORD error = GetLastError ();
__seterrno_from_win_error (error);
- debug_printf ("OpenProcess: ret = %d",
- error);
+ debug_printf ("OpenProcess: ret %d", error);
return false;
}
while ((ret = NtQueryVirtualMemory (hProcess, 0,
@@ -709,8 +705,7 @@ get_mem_values (DWORD dwProcessId, unsigned long *vmsize, unsigned long *vmrss,
delete [] p, p = new ULONG[n *= 2];
if (ret != STATUS_SUCCESS)
{
- debug_printf ("NtQueryVirtualMemory: ret = %d, "
- "Dos(ret) = %d",
+ debug_printf ("NtQueryVirtualMemory: ret %d, Dos(ret) %d",
ret, RtlNtStatusToDosError (ret));
res = false;
goto out;
@@ -735,8 +730,7 @@ get_mem_values (DWORD dwProcessId, unsigned long *vmsize, unsigned long *vmrss,
sizeof vmc, NULL);
if (ret != STATUS_SUCCESS)
{
- debug_printf ("NtQueryInformationProcess: ret = %d, "
- "Dos(ret) = %d",
+ debug_printf ("NtQueryInformationProcess: ret %d, Dos(ret) %d",
ret, RtlNtStatusToDosError (ret));
res = false;
goto out;