From 0cb4d379fdd2b869bd765e1fcb424a8f8a8f6a04 Mon Sep 17 00:00:00 2001 From: Zhu Shangzhong Date: Wed, 23 Aug 2017 10:20:17 +0800 Subject: [PATCH] client: add blank space between function name and inode number for log Fixes: http://tracker.ceph.com/issues/21069 Signed-off-by: Zhu Shangzhong --- src/client/Client.cc | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/src/client/Client.cc b/src/client/Client.cc index e461ab4a59eb2..9b1398d21d990 100644 --- a/src/client/Client.cc +++ b/src/client/Client.cc @@ -5212,7 +5212,7 @@ ostream& operator<<(ostream &out, const UserPerm& perm) { int Client::may_setattr(Inode *in, struct ceph_statx *stx, int mask, const UserPerm& perms) { - ldout(cct, 20) << __func__ << *in << "; " << perms << dendl; + ldout(cct, 20) << __func__ << " " << *in << "; " << perms << dendl; int r = _getattr_for_perm(in, perms); if (r < 0) goto out; @@ -5268,7 +5268,7 @@ out: int Client::may_open(Inode *in, int flags, const UserPerm& perms) { - ldout(cct, 20) << __func__ << *in << "; " << perms << dendl; + ldout(cct, 20) << __func__ << " " << *in << "; " << perms << dendl; unsigned want = 0; if ((flags & O_ACCMODE) == O_WRONLY) @@ -5305,7 +5305,7 @@ out: int Client::may_lookup(Inode *dir, const UserPerm& perms) { - ldout(cct, 20) << __func__ << *dir << "; " << perms << dendl; + ldout(cct, 20) << __func__ << " " << *dir << "; " << perms << dendl; int r = _getattr_for_perm(dir, perms); if (r < 0) goto out; @@ -5318,7 +5318,7 @@ out: int Client::may_create(Inode *dir, const UserPerm& perms) { - ldout(cct, 20) << __func__ << *dir << "; " << perms << dendl; + ldout(cct, 20) << __func__ << " " << *dir << "; " << perms << dendl; int r = _getattr_for_perm(dir, perms); if (r < 0) goto out; @@ -5331,7 +5331,7 @@ out: int Client::may_delete(Inode *dir, const char *name, const UserPerm& perms) { - ldout(cct, 20) << __func__ << *dir << "; " << "; name " << name << "; " << perms << dendl; + ldout(cct, 20) << __func__ << " " << *dir << "; " << "; name " << name << "; " << perms << dendl; int r = _getattr_for_perm(dir, perms); if (r < 0) goto out; @@ -5356,7 +5356,7 @@ out: int Client::may_hardlink(Inode *in, const UserPerm& perms) { - ldout(cct, 20) << __func__ << *in << "; " << perms << dendl; + ldout(cct, 20) << __func__ << " " << *in << "; " << perms << dendl; int r = _getattr_for_perm(in, perms); if (r < 0) goto out; -- 2.39.5