Suppress some message levels on macos

This commit is contained in:
Takeshi Nakatani 2023-10-18 15:15:59 +00:00 committed by Andrew Gaul
parent a3964b3fcd
commit 7b5111c955

View File

@ -1035,7 +1035,11 @@ static int s3fs_getattr(const char* _path, struct stat* stbuf)
WTF8_ENCODE(path)
int result;
#if defined(__APPLE__)
FUSE_CTX_DBG("[path=%s]", path);
#else
FUSE_CTX_INFO("[path=%s]", path);
#endif
// check parent directory attribute.
if(0 != (result = check_parent_object_access(path, X_OK))){
@ -3956,7 +3960,11 @@ static int s3fs_getxattr(const char* path, const char* name, char* value, size_t
static int s3fs_getxattr(const char* path, const char* name, char* value, size_t size)
#endif
{
#if defined(__APPLE__)
FUSE_CTX_DBG("[path=%s][name=%s][value=%p][size=%zu]", path, name, value, size);
#else
FUSE_CTX_INFO("[path=%s][name=%s][value=%p][size=%zu]", path, name, value, size);
#endif
if(!path || !name){
return -EIO;