From: Andre Date: Tue, 14 Mar 2006 16:51:36 +0000 (+0100) Subject: db.c: use PARA_STRERROR()... X-Git-Tag: v0.2.12~152 X-Git-Url: http://git.tuebingen.mpg.de/?p=paraslash.git;a=commitdiff_plain;h=c8ca222a5dfee03f5ac8ccaf1d1bbf8a45f0874c;ds=inline db.c: use PARA_STRERROR()... ... instead of logging the error number only. --- diff --git a/db.c b/db.c index a1cc1aeb..26f82d4a 100644 --- a/db.c +++ b/db.c @@ -123,6 +123,6 @@ out: ret = -E_CHDIR; close(cwd_fd); if (ret < 0) - PARA_ERROR_LOG("ret = %x\n", -ret); + PARA_ERROR_LOG("%s\n", PARA_STRERROR(-ret)); return ret; }