Welcome to mirror list, hosted at ThFree Co, Russian Federation.

cygwin.com/git/newlib-cygwin.git - Unnamed repository; edit this file 'description' to name the repository.
summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorCorinna Vinschen <corinna@vinschen.de>2013-06-17 12:33:41 +0400
committerCorinna Vinschen <corinna@vinschen.de>2013-06-17 12:33:41 +0400
commitf4ddbb8ebfd4b18a195e60046c50cbadaa65b502 (patch)
tree21795effb3552683a28c15b2556280ffdcf31887
parent2e72b72fccd3795d227e4ebcddddaed25d38f645 (diff)
* times.cc (GetSystemTimePreciseAsFileTime): Add comment to declaration.
(__to_clock_t): Remove a debug_printf. (times): Align syscall_printf to debug output of other system calls.
-rw-r--r--winsup/cygwin/ChangeLog6
-rw-r--r--winsup/cygwin/times.cc6
2 files changed, 8 insertions, 4 deletions
diff --git a/winsup/cygwin/ChangeLog b/winsup/cygwin/ChangeLog
index 386d54c42..1b2562bfa 100644
--- a/winsup/cygwin/ChangeLog
+++ b/winsup/cygwin/ChangeLog
@@ -1,3 +1,9 @@
+2013-06-17 Corinna Vinschen <corinna@vinschen.de>
+
+ * times.cc (GetSystemTimePreciseAsFileTime): Add comment to declaration.
+ (__to_clock_t): Remove a debug_printf.
+ (times): Align syscall_printf to debug output of other system calls.
+
2013-06-14 Corinna Vinschen <corinna@vinschen.de>
* autoload.cc (GetSystemTimePreciseAsFileTime): Define.
diff --git a/winsup/cygwin/times.cc b/winsup/cygwin/times.cc
index ac0f4e155..c9df29116 100644
--- a/winsup/cygwin/times.cc
+++ b/winsup/cygwin/times.cc
@@ -31,6 +31,7 @@ hires_ms NO_COPY gtod;
hires_ns NO_COPY ntod;
+/* Temporary declare here until 32 bit w32api follows suit. */
extern "C" { void WINAPI GetSystemTimePreciseAsFileTime (LPFILETIME); }
static inline void __attribute__ ((always_inline))
@@ -51,7 +52,6 @@ __to_clock_t (PLARGE_INTEGER src, int flag)
total -= FACTOR;
total /= NSPERSEC / CLOCKS_PER_SEC;
- debug_printf ("total %016X", total);
return total;
}
@@ -81,9 +81,6 @@ times (struct tms *buf)
/* ticks is in in 100ns, convert to clock ticks. */
clock_t tc = (clock_t) (ticks.QuadPart * CLOCKS_PER_SEC / NSPERSEC);
- syscall_printf ("ticks %D, CLOCKS_PER_SEC %d", ticks, CLOCKS_PER_SEC);
- syscall_printf ("UserTime %D, KernelTime %D, CreationTime %D, ExitTime %D",
- kut.UserTime, kut.KernelTime, kut.CreateTime, kut.ExitTime);
buf->tms_stime = __to_clock_t (&kut.KernelTime, 0);
buf->tms_utime = __to_clock_t (&kut.UserTime, 0);
timeval_to_filetime (&myself->rusage_children.ru_stime, &kut.KernelTime);
@@ -91,6 +88,7 @@ times (struct tms *buf)
timeval_to_filetime (&myself->rusage_children.ru_utime, &kut.UserTime);
buf->tms_cutime = __to_clock_t (&kut.UserTime, 1);
+ syscall_printf ("%D = times(%p)", tc, buf);
return tc;
}