diff options
| author | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-19 16:16:12 +0000 |
|---|---|---|
| committer | tadf <tadf@b2dd03c8-39d4-4d8f-98ff-823fe69b080e> | 2007-02-19 16:16:12 +0000 |
| commit | edcdf7a08295a367ee5ecf4aafc42c818e029507 (patch) | |
| tree | 4f3185cfc72994449eeb8d5c360a3dcd91f1d4b3 /thread_pthread.ci | |
| parent | e8a76b643b8fc4a989bf8bb4d9eec941356b3cd1 (diff) | |
| download | ruby-edcdf7a08295a367ee5ecf4aafc42c818e029507.tar.gz ruby-edcdf7a08295a367ee5ecf4aafc42c818e029507.tar.xz ruby-edcdf7a08295a367ee5ecf4aafc42c818e029507.zip | |
just a minor change
git-svn-id: http://svn.ruby-lang.org/repos/ruby/trunk@11790 b2dd03c8-39d4-4d8f-98ff-823fe69b080e
Diffstat (limited to 'thread_pthread.ci')
| -rw-r--r-- | thread_pthread.ci | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/thread_pthread.ci b/thread_pthread.ci index c259ba449..a8ffcb0c7 100644 --- a/thread_pthread.ci +++ b/thread_pthread.ci @@ -226,7 +226,7 @@ native_thread_create(rb_thread_t *th) int err = 0; if (use_cached_thread(th)) { - thread_debug("create (use cahced thread): %p\n", th); + thread_debug("create (use cached thread): %p\n", th); } else { pthread_attr_t attr; @@ -241,7 +241,7 @@ native_thread_create(rb_thread_t *th) CHECK_ERR(pthread_attr_init(&attr)); #ifdef PTHREAD_STACK_MIN - thread_debug("create - stack size: %ld\n", th, stack_size); + thread_debug("create - stack size: %u\n", stack_size); CHECK_ERR(pthread_attr_setstacksize(&attr, stack_size)); #endif @@ -337,7 +337,7 @@ native_sleep(rb_thread_t *th, struct timeval *tv) th->status = THREAD_STOPPED; pthread_cond_init(&th->native_thread_data.sleep_cond, 0); - thread_debug("native_sleep %d\n", tv ? tv->tv_sec : -1); + thread_debug("native_sleep %ld\n", tv ? tv->tv_sec : -1); GVL_UNLOCK_BEGIN(); { pthread_mutex_lock(&th->interrupt_lock); @@ -356,7 +356,7 @@ native_sleep(rb_thread_t *th, struct timeval *tv) } else { int r; - thread_debug("native_sleep: pthread_cond_timedwait start (%d, %d)\n", + thread_debug("native_sleep: pthread_cond_timedwait start (%d, %ld)\n", ts.tv_sec, ts.tv_nsec); r = pthread_cond_timedwait(&th->native_thread_data.sleep_cond, &th->interrupt_lock, &ts); |
