From: Adam C. Emerson Date: Tue, 8 Mar 2022 00:14:24 +0000 (-0500) Subject: osd: Fix truncated format warning X-Git-Tag: v18.0.0~1237^2~4 X-Git-Url: http://git.apps.os.sepia.ceph.com/?a=commitdiff_plain;h=746729554d210403721d73563c6ea1561f468881;p=ceph.git osd: Fix truncated format warning Signed-off-by: Adam C. Emerson --- diff --git a/src/osd/OSD.cc b/src/osd/OSD.cc index 69b18ba03f34d..3c8913c14f7d2 100644 --- a/src/osd/OSD.cc +++ b/src/osd/OSD.cc @@ -3256,7 +3256,7 @@ int OSD::run_osd_bench_test( utime_t start = ceph_clock_now(); for (int64_t pos = 0; pos < count; pos += bsize) { - char nm[30]; + char nm[34]; unsigned offset = 0; if (onum && osize) { snprintf(nm, sizeof(nm), "disk_bw_test_%d", (int)(rand() % onum));