]> arthur.barton.de Git - netatalk.git/commitdiff
Add dev to log message and print type as string
authorRalph Boehme <sloowfranklin@gmail.com>
Thu, 27 Dec 2012 11:44:43 +0000 (12:44 +0100)
committerRalph Boehme <sloowfranklin@gmail.com>
Thu, 27 Dec 2012 11:44:43 +0000 (12:44 +0100)
libatalk/cnid/dbd/cnid_dbd.c

index d0d5ae67bdfcf28c2a436cc214a196e5792f52d8..3f0278ae46aa9678e320e232580c52e53ea38535 100644 (file)
@@ -563,8 +563,8 @@ cnid_t cnid_dbd_add(struct _cnid_db *cdb, const struct stat *st,
     rqst.name = name;
     rqst.namelen = len;
 
-    LOG(log_debug, logtype_cnid, "cnid_dbd_add: CNID: %u, name: '%s', inode: 0x%llx, type: %d (0=file, 1=dir)",
-        ntohl(did), name, (long long)st->st_ino, rqst.type);
+    LOG(log_debug, logtype_cnid, "cnid_dbd_add: CNID: %u, name: '%s', dev: 0x%llx, inode: 0x%llx, type: %s",
+        ntohl(did), name, (long long)rqst.dev, (long long)st->st_ino, rqst.type ? "dir" : "file");
 
     rply.namelen = 0;
     if (transmit(db, &rqst, &rply) < 0) {