db.c: use PARA_STRERROR()...
authorAndre <maan@p133.(none)>
Tue, 14 Mar 2006 16:51:36 +0000 (17:51 +0100)
committerAndre <maan@p133.(none)>
Tue, 14 Mar 2006 16:51:36 +0000 (17:51 +0100)
... instead of logging the error number only.

db.c

diff --git a/db.c b/db.c
index a1cc1ae..26f82d4 100644 (file)
--- 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;
 }