summaryrefslogtreecommitdiff
path: root/thread.c
diff options
context:
space:
mode:
authornobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-30 21:08:34 +0000
committernobu <nobu@b2dd03c8-39d4-4d8f-98ff-823fe69b080e>2013-03-30 21:08:34 +0000
commitf2e1bfb89762fe4f98d0467299ec046cf75fb51d (patch)
tree5239d4ecdcb53eff8621b76f5b11101a2a7aaf14 /thread.c
parentae422dda781388d16ee8333867e913ba0b7b174d (diff)
thread.c: format specifiers for time_t
* thread.c (sleep_timeval): fix format specifiers for time_t. * time.c (DEBUG_REPORT_GUESSRANGE): ditto. git-svn-id: svn+ssh://ci.ruby-lang.org/ruby/trunk@40010 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread.c')
-rw-r--r--thread.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/thread.c b/thread.c
index 5312648a57..3f6ec5a8d6 100644
--- a/thread.c
+++ b/thread.c
@@ -996,9 +996,9 @@ sleep_timeval(rb_thread_t *th, struct timeval tv, int spurious_check)
getclockofday(&tvn);
if (to.tv_sec < tvn.tv_sec) break;
if (to.tv_sec == tvn.tv_sec && to.tv_usec <= tvn.tv_usec) break;
- thread_debug("sleep_timeval: %ld.%.6ld > %ld.%.6ld\n",
- (long)to.tv_sec, (long)to.tv_usec,
- (long)tvn.tv_sec, (long)tvn.tv_usec);
+ thread_debug("sleep_timeval: %"PRI_TIMET_PREFIX"d.%.6ld > %"PRI_TIMET_PREFIX"d.%.6ld\n",
+ (time_t)to.tv_sec, (long)to.tv_usec,
+ (time_t)tvn.tv_sec, (long)tvn.tv_usec);
tv.tv_sec = to.tv_sec - tvn.tv_sec;
if ((tv.tv_usec = to.tv_usec - tvn.tv_usec) < 0) {
--tv.tv_sec;