diff options
Diffstat (limited to 'xlators/performance/io-cache/src/ioc-inode.c')
| -rw-r--r-- | xlators/performance/io-cache/src/ioc-inode.c | 14 | 
1 files changed, 6 insertions, 8 deletions
diff --git a/xlators/performance/io-cache/src/ioc-inode.c b/xlators/performance/io-cache/src/ioc-inode.c index a26e6d35adb..97767d85285 100644 --- a/xlators/performance/io-cache/src/ioc-inode.c +++ b/xlators/performance/io-cache/src/ioc-inode.c @@ -46,8 +46,8 @@ ptr_to_str(void *ptr)      ret = gf_asprintf(&str, "%p", ptr);      if (-1 == ret) { -        gf_msg("io-cache", GF_LOG_WARNING, 0, IO_CACHE_MSG_STR_COVERSION_FAILED, -               "asprintf failed while converting ptr to str"); +        gf_smsg("io-cache", GF_LOG_WARNING, 0, +                IO_CACHE_MSG_STR_COVERSION_FAILED, NULL);          str = NULL;          goto out;      } @@ -75,8 +75,8 @@ ioc_inode_wakeup(call_frame_t *frame, ioc_inode_t *ioc_inode,      if (ioc_inode == NULL) {          local->op_ret = -1;          local->op_errno = EINVAL; -        gf_msg(frame->this->name, GF_LOG_WARNING, 0, IO_CACHE_MSG_INODE_NULL, -               "ioc_inode is NULL"); +        gf_smsg(frame->this->name, GF_LOG_WARNING, 0, IO_CACHE_MSG_INODE_NULL, +                NULL);          goto out;      } @@ -89,10 +89,8 @@ ioc_inode_wakeup(call_frame_t *frame, ioc_inode_t *ioc_inode,      {          waiter = ioc_inode->waitq;          if (!waiter) { -            gf_msg(frame->this->name, GF_LOG_WARNING, 0, -                   IO_CACHE_MSG_PAGE_WAIT_VALIDATE, -                   "cache validate called without any " -                   "page waiting to be validated"); +            gf_smsg(frame->this->name, GF_LOG_WARNING, 0, +                    IO_CACHE_MSG_PAGE_WAIT_VALIDATE, NULL);              ioc_inode_unlock(ioc_inode);              goto out;  | 
