[sheepdog] [PATCH] sheepfs: clean up one sheepfs_pr
Liu Yuan
namei.unix at gmail.com
Thu Jun 28 11:07:17 CEST 2012
From: Liu Yuan <tailai.ly at taobao.com>
sheepfs_pr interally print the line nr already, we don't need to print it again
Signed-off-by: Liu Yuan <tailai.ly at taobao.com>
---
sheepfs/volume.c | 7 +++----
1 file changed, 3 insertions(+), 4 deletions(-)
diff --git a/sheepfs/volume.c b/sheepfs/volume.c
index 43db09d..a40dc30 100644
--- a/sheepfs/volume.c
+++ b/sheepfs/volume.c
@@ -203,10 +203,9 @@ static int volume_rw_object(char *buf, uint64_t oid, size_t size,
put_socket_fd(vdi, sock_idx);
if (ret || rsp->result != SD_RES_SUCCESS) {
- sheepfs_pr(
- "[%s] failed to %s object %" PRIx64 " ret %d, res %u\n",
- __func__, rw == VOLUME_READ ? "read" : "write",
- oid, ret, rsp->result);
+ sheepfs_pr("failed to %s object %" PRIx64 " ret %d, res %u\n",
+ rw == VOLUME_READ ? "read" : "write",
+ oid, ret, rsp->result);
return -1;
}
--
1.7.10.2
More information about the sheepdog
mailing list