Skip to content

Commit

Permalink
Suppress some message levels on macos
Browse files Browse the repository at this point in the history
  • Loading branch information
ggtakec committed Oct 18, 2023
1 parent 2871975 commit d259bf2
Showing 1 changed file with 8 additions and 0 deletions.
8 changes: 8 additions & 0 deletions src/s3fs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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))){
Expand Down Expand Up @@ -3819,7 +3823,11 @@ static int s3fs_setxattr(const char* path, const char* name, const char* value,
static int s3fs_setxattr(const char* path, const char* name, const char* value, size_t size, int flags)
#endif
{
#if defined(__APPLE__)
FUSE_CTX_DBG("[path=%s][name=%s][value=%p][size=%zu][flags=0x%x]", path, name, value, size, flags);
#else
FUSE_CTX_INFO("[path=%s][name=%s][value=%p][size=%zu][flags=0x%x]", path, name, value, size, flags);
#endif

if(!value && 0 < size){
S3FS_PRN_ERR("Wrong parameter: value(%p), size(%zu)", value, size);
Expand Down

0 comments on commit d259bf2

Please sign in to comment.