Fix rwlock error messages to specify the correct function names.
authorBruce Cran <bruce@cran.org.uk>
Fri, 29 Mar 2013 16:02:53 +0000 (16:02 +0000)
committerJens Axboe <axboe@kernel.dk>
Fri, 29 Mar 2013 16:38:03 +0000 (10:38 -0600)
Signed-off-by: Jens Axboe <axboe@kernel.dk>
mutex.c

diff --git a/mutex.c b/mutex.c
index 5a65e53a2dde6ac2be247b8d05716df715b6be06..d1e3ceaeff3469be1462ed1af7434f44e8760a72 100644 (file)
--- a/mutex.c
+++ b/mutex.c
@@ -196,13 +196,13 @@ struct fio_rwlock *fio_rwlock_init(void)
 
        ret = pthread_rwlockattr_init(&attr);
        if (ret) {
 
        ret = pthread_rwlockattr_init(&attr);
        if (ret) {
-               log_err("pthread_rwlock_init: %s\n", strerror(ret));
+               log_err("pthread_rwlockattr_init: %s\n", strerror(ret));
                goto err;
        }
 #ifdef FIO_HAVE_PSHARED_MUTEX
        ret = pthread_rwlockattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);
        if (ret) {
                goto err;
        }
 #ifdef FIO_HAVE_PSHARED_MUTEX
        ret = pthread_rwlockattr_setpshared(&attr, PTHREAD_PROCESS_SHARED);
        if (ret) {
-               log_err("pthread_rwlock_init: %s\n", strerror(ret));
+               log_err("pthread_rwlockattr_setpshared: %s\n", strerror(ret));
                goto destroy_attr;
        }
 #endif
                goto destroy_attr;
        }
 #endif