X-Git-Url: http://wpitchoune.net/gitweb/?p=psensor-pkg-debian.git;a=blobdiff_plain;f=src%2Flib%2Fpmutex.c;h=371a5d5c80afcd87dd02d8093d528ccea86e338f;hp=ec529bd2578c34aa500a1aed7b416f0b61e62d63;hb=bd7036af56a4b61b2b473dccbeac5e26f78b57da;hpb=4e6ce51e7afeb7924573c40796910cd003850949 diff --git a/src/lib/pmutex.c b/src/lib/pmutex.c index ec529bd..371a5d5 100644 --- a/src/lib/pmutex.c +++ b/src/lib/pmutex.c @@ -1,5 +1,5 @@ /* - * Copyright (C) 2010-2014 jeanfi@gmail.com + * Copyright (C) 2010-2016 jeanfi@gmail.com * * This program is free software; you can redistribute it and/or * modify it under the terms of the GNU General Public License as @@ -21,6 +21,7 @@ #include #include +#include int pmutex_lock(pthread_mutex_t *m) { @@ -29,7 +30,7 @@ int pmutex_lock(pthread_mutex_t *m) ret = pthread_mutex_lock(m); if (ret) - log_err("pmutex_lock: %p %d", m, ret); + log_err("pmutex_lock: %p %d %s", m, ret, strerror(ret)); return ret; }