summaryrefslogtreecommitdiffstats
path: root/net/ceph/messenger.c
diff options
context:
space:
mode:
authorSage Weil <sage@newdream.net>2011-05-12 23:34:04 +0200
committerSage Weil <sage@newdream.net>2011-05-19 20:25:03 +0200
commit12a2f643b0e6e791ba61485430d0003eeb3e373c (patch)
tree0dd6429055579c3e18a9b81e99202888f91e2852 /net/ceph/messenger.c
parentlibceph: use snprintf for formatting object name (diff)
downloadlinux-12a2f643b0e6e791ba61485430d0003eeb3e373c.tar.xz
linux-12a2f643b0e6e791ba61485430d0003eeb3e373c.zip
libceph: use snprintf for unknown addrs
Signed-off-by: Sage Weil <sage@newdream.net>
Diffstat (limited to 'net/ceph/messenger.c')
-rw-r--r--net/ceph/messenger.c3
1 files changed, 2 insertions, 1 deletions
diff --git a/net/ceph/messenger.c b/net/ceph/messenger.c
index ce326c806237..3cdbb8853cd7 100644
--- a/net/ceph/messenger.c
+++ b/net/ceph/messenger.c
@@ -76,7 +76,8 @@ const char *ceph_pr_addr(const struct sockaddr_storage *ss)
break;
default:
- sprintf(s, "(unknown sockaddr family %d)", (int)ss->ss_family);
+ snprintf(s, MAX_ADDR_STR_LEN, "(unknown sockaddr family %d)",
+ (int)ss->ss_family);
}
return s;