summaryrefslogtreecommitdiffstats
path: root/net
diff options
context:
space:
mode:
authorIlya Dryomov <idryomov@gmail.com>2020-10-03 11:52:15 +0200
committerIlya Dryomov <idryomov@gmail.com>2020-10-12 15:29:27 +0200
commita9dfe31e5ce31022b8f063b30d2907872cbab447 (patch)
treed8a5104bff5800d6817c8f627b53ab1bb7e59d0f /net
parentlibceph: fix ENTITY_NAME format suggestion (diff)
downloadlinux-a9dfe31e5ce31022b8f063b30d2907872cbab447.tar.xz
linux-a9dfe31e5ce31022b8f063b30d2907872cbab447.zip
libceph: format ceph_entity_addr nonces as unsigned
Match the server side logs. Signed-off-by: Ilya Dryomov <idryomov@gmail.com>
Diffstat (limited to 'net')
-rw-r--r--net/ceph/messenger.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index 8eabcdc2af56..02a195e013b7 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -2016,11 +2016,11 @@ static int process_banner(struct ceph_connection *con)
sizeof(con->peer_addr)) != 0 &&
!(addr_is_blank(&con->actual_peer_addr) &&
con->actual_peer_addr.nonce == con->peer_addr.nonce)) {
- pr_warn("wrong peer, want %s/%d, got %s/%d\n",
+ pr_warn("wrong peer, want %s/%u, got %s/%u\n",
ceph_pr_addr(&con->peer_addr),
- (int)le32_to_cpu(con->peer_addr.nonce),
+ le32_to_cpu(con->peer_addr.nonce),
ceph_pr_addr(&con->actual_peer_addr),
- (int)le32_to_cpu(con->actual_peer_addr.nonce));
+ le32_to_cpu(con->actual_peer_addr.nonce));
con->error_msg = "wrong peer at address";
return -1;
}