projects
/
GitHub
/
LineageOS
/
G12
/
android_kernel_amlogic_linux-4.9.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
ae59808
)
libceph: use snprintf for formatting object name
author
Sage Weil
<sage@newdream.net>
Thu, 12 May 2011 21:29:51 +0000
(14:29 -0700)
committer
Sage Weil
<sage@newdream.net>
Thu, 19 May 2011 18:25:02 +0000
(11:25 -0700)
Signed-off-by: Sage Weil <sage@newdream.net>
net/ceph/osd_client.c
patch
|
blob
|
blame
|
history
diff --git
a/net/ceph/osd_client.c
b/net/ceph/osd_client.c
index 6b5dda1cb5df1a7adf6b93a49201b34d81eb8dcb..9adbb01d23ad832e7b8408a100b30c5862a121c5 100644
(file)
--- a/
net/ceph/osd_client.c
+++ b/
net/ceph/osd_client.c
@@
-124,7
+124,7
@@
static void calc_layout(struct ceph_osd_client *osdc,
ceph_calc_raw_layout(osdc, layout, vino.snap, off,
plen, &bno, req, op);
- s
printf(req->r_oid
, "%llx.%08llx", vino.ino, bno);
+ s
nprintf(req->r_oid, sizeof(req->r_oid)
, "%llx.%08llx", vino.ino, bno);
req->r_oid_len = strlen(req->r_oid);
}