diff options
| author | yatipadia <ypadia@redhat.com> | 2019-12-18 17:25:51 +0530 |
|---|---|---|
| committer | Amar Tumballi <amarts@gmail.com> | 2020-01-06 08:39:53 +0000 |
| commit | 7f98c105a3a8e2a9f4e9c75451a94115e270405e (patch) | |
| tree | 8c32d8e9f1e2403a2c39a9e11d818ee44f58d32b /xlators/performance/io-cache/src/ioc-inode.c | |
| parent | f72e2b00a13709717a6c7e0ff95d4c7a8f58b020 (diff) | |
xlator/io-cache: structure logging
Convert all gf_msg() to gf_smsg()
Updates: #657
Change-Id: I72215b2518df78174dda8a7bc8de6f21fe1ba10f
Signed-off-by: yatipadia <ypadia@redhat.com>
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; |
