Skip to content
GitLab
Projects
Groups
Snippets
Help
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Open sidebar
OpenBMC Firmware
talos-obmc-linux
Commits
12a2f643
Commit
12a2f643
authored
13 years ago
by
Sage Weil
Browse files
Options
Download
Email Patches
Plain Diff
libceph: use snprintf for unknown addrs
Signed-off-by:
Sage Weil
<
sage@newdream.net
>
parent
2dab036b
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
2 additions
and
1 deletion
+2
-1
net/ceph/messenger.c
net/ceph/messenger.c
+2
-1
No files found.
net/ceph/messenger.c
View file @
12a2f643
...
...
@@ -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
;
...
...
This diff is collapsed.
Click to expand it.
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment