From f8fc8f8c6f1773510b134606201b035fcb23c17e Mon Sep 17 00:00:00 2001 From: =?utf8?q?Franti=C5=A1ek=20Dvo=C5=99=C3=A1k?= Date: Mon, 9 Dec 2013 00:20:50 +0100 Subject: [PATCH] Disable most debug messages. --- src/VfsNs.cpp | 14 +++++++------- 1 file changed, 7 insertions(+), 7 deletions(-) diff --git a/src/VfsNs.cpp b/src/VfsNs.cpp index e6f5d81..567702d 100644 --- a/src/VfsNs.cpp +++ b/src/VfsNs.cpp @@ -1751,7 +1751,7 @@ Extensible VfsCatalog::vfsGetXattrs(const std::string& path, const std::string& if ((attrType & amount) != 0) { len = sizeof this->xattrValue; wrapCall(attr_get(lpath.c_str(), entry->a_name, this->xattrValue, &len, follow ? 0 : ATTR_DONTFOLLOW), "could not get extended attribute '%s' on '%s'", entry->a_name, path.c_str()); - debug("'%s' (type %d) = '%.*s'", entry->a_name, attrType, len, this->xattrValue); + //debug("'%s' (type %d) = '%.*s'", entry->a_name, attrType, len, this->xattrValue); attrValue.assign(this->xattrValue, len); xattrs[entry->a_name] = attrValue; } @@ -1769,7 +1769,7 @@ std::string VfsCatalog::vfsGetXattr(const std::string& path, const std::string & len = sizeof this->xattrValue; wrapCall(attr_get(lpath.c_str(), key.c_str(), this->xattrValue, &len, flags), "could not get extended attribute '%s' on '%s'", key.c_str(), path.c_str()); - debug("got '%s' = '%.*s'", key.c_str(), len, this->xattrValue); + //debug("got '%s' = '%.*s'", key.c_str(), len, this->xattrValue); attrValue.assign(this->xattrValue, len); return attrValue; @@ -1780,15 +1780,15 @@ std::string VfsCatalog::vfsGetXattr(const std::string& path, const std::string & void VfsCatalog::vfsSetXattr(const std::string& path, const std::string& lpath, const std::string key, const std::string value, int flags) { switch (flags & (ATTR_REPLACE | ATTR_CREATE)) { case ATTR_REPLACE: - debug("replacing '%s' -> '%s' on '%s'", key.c_str(), value.c_str(), lpath.c_str()); + //debug("replacing '%s' -> '%s' on '%s'", key.c_str(), value.c_str(), lpath.c_str()); wrapCall(attr_set(lpath.c_str(), key.c_str(), value.c_str(), value.size(), flags), "could not replace extended attribute '%s' on '%s'", key.c_str(), path.c_str()); break; case ATTR_CREATE: - debug("creating '%s' -> '%s' on '%s'", key.c_str(), value.c_str(), lpath.c_str()); + //debug("creating '%s' -> '%s' on '%s'", key.c_str(), value.c_str(), lpath.c_str()); wrapCall(attr_set(lpath.c_str(), key.c_str(), value.c_str(), value.size(), flags), "could not create extended attribute '%s' on '%s'", key.c_str(), path.c_str()); break; default: - debug("setting '%s' -> '%s' on '%s'", key.c_str(), value.c_str(), lpath.c_str()); + //debug("setting '%s' -> '%s' on '%s'", key.c_str(), value.c_str(), lpath.c_str()); wrapCall(attr_set(lpath.c_str(), key.c_str(), value.c_str(), value.size(), flags), "could not set extended attribute '%s' on '%s'", key.c_str(), path.c_str()); break; } @@ -1800,9 +1800,9 @@ void VfsCatalog::vfsRemoveXattr(const std::string& path, const std::string& lpat if (attr_remove(lpath.c_str(), key.c_str(), flags) == -1) { if (errno != ENOATTR) vfsThrowErrno("could not remove extended attribute '%s' on '%s'", key.c_str(), path.c_str()); - debug("'%s' not exists on '%s'", key.c_str(), lpath.c_str()); + //debug("'%s' not exists on '%s'", key.c_str(), lpath.c_str()); } else { - debug("'%s' removed from '%s'", key.c_str(), lpath.c_str()); + //debug("'%s' removed from '%s'", key.c_str(), lpath.c_str()); } } -- 1.8.2.3