]> arthur.barton.de Git - netatalk.git/commitdiff
Reduce log clutter
authorFrank Lahm <franklahm@googlemail.com>
Thu, 2 Feb 2012 10:52:39 +0000 (11:52 +0100)
committerFrank Lahm <franklahm@googlemail.com>
Thu, 2 Feb 2012 10:52:39 +0000 (11:52 +0100)
libatalk/acl/unix.c
libatalk/adouble/ad_lock.c
libatalk/adouble/ad_open.c
libatalk/vfs/extattr.c

index 0d03488e2e8ee68801274bd6b0cde73c05fcc263..6284935173d87c7cced42ce80419977cc1df40f8 100644 (file)
@@ -48,7 +48,7 @@ int get_nfsv4_acl(const char *name, ace_t **retAces)
     *retAces = NULL;
     /* Only call acl() for regular files and directories, otherwise just return 0 */
     if (lstat(name, &st) != 0) {
-        LOG(log_warning, logtype_afpd, "get_nfsv4_acl(\"%s/%s\"): %s", getcwdpath(), name, strerror(errno));
+        LOG(log_debug, logtype_afpd, "get_nfsv4_acl(\"%s/%s\"): %s", getcwdpath(), name, strerror(errno));
         return -1;
     }
 
index 8d3808177692da564f4bed13c8764281df45654e..b28304b9cb409445e02ca2f39cba5678e55915ca 100644 (file)
@@ -78,7 +78,7 @@ static int set_lock(int fd, int cmd,  struct flock *lock)
         return 0;
     }
 
-    EC_NEG1_LOG( fcntl(fd, cmd, lock) );
+    EC_NEG1( fcntl(fd, cmd, lock) );
 
 EC_CLEANUP:
     EC_EXIT;
index d179e1114cbd2cfe7c8d0b7b62dfd47ab646780d..9b8d34865874413808656df8ab95cdb00585a34f 100644 (file)
@@ -1027,7 +1027,7 @@ static int ad_open_hf_ea(const char *path, int adflags, int mode, struct adouble
                 /* For directories we open the directory RDONYL so we can later fchdir()  */
                 oflags = (oflags & ~O_RDWR) | O_RDONLY;
             LOG(log_debug, logtype_default, "ad_open_hf_ea(\"%s\"): opening base file for meta adouble EA", path);
-            EC_NEG1_LOG(ad_meta_fileno(ad) = open(path, oflags));
+            EC_NEG1(ad_meta_fileno(ad) = open(path, oflags));
             opened = 1;
             ad->ad_mdp->adf_flags = oflags;
         }
index c98b6ea14f751e3f0293dec15f67c7d2afb89ab8..db325328550c6a74d6f2e0905becd1d0ca5397ec 100644 (file)
@@ -874,7 +874,7 @@ static int solaris_attropen(const char *path, const char *attrpath, int oflag, m
         case EEXIST:
             break;
         default:
-            LOG(log_error, logtype_default, "attropen(\"%s\", ea:'%s'): %s",
+            LOG(log_debug, logtype_default, "attropen(\"%s\", ea:'%s'): %s",
                 path, attrpath, strerror(errno));
             errno = ENOATTR;
             break;
@@ -893,7 +893,7 @@ static int solaris_openat(int fildes, const char *path, int oflag, mode_t mode)
         case EEXIST:
             break;
         default:
-            LOG(log_error, logtype_default, "openat(\"%s\"): %s",
+            LOG(log_debug, logtype_default, "openat(\"%s\"): %s",
                 path, strerror(errno));
             errno = ENOATTR;
             break;