]> git.tue.mpg.de Git - paraslash.git/commitdiff
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 a1cc1aebc09e18c01d2685919bd6c407447d4c8b..26f82d4a26d2ebbeb94be0f05a176df98692f4d9 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;
 }