]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: silence -Wformat-truncation= warnings 21845/head
authorKefu Chai <kchai@redhat.com>
Mon, 7 May 2018 07:19:37 +0000 (15:19 +0800)
committerKefu Chai <kchai@redhat.com>
Mon, 7 May 2018 07:21:49 +0000 (15:21 +0800)
commitba3f82a46c7e6862d31b162ee2badd4773c00bb9
tree8ce712c8195a24fcc427f7c25baee87a01846bc1
parentb6fe1fec148cf5bcd9a8d780c993dbebc83b860d
test: silence -Wformat-truncation= warnings

this change silences following warnings:

: warning: ā€˜%s’ directive output may be truncated writing up to 127
bytes into a region of size between 109 and 119 [-W
format-truncation=]
     snprintf(m_id_str, SysTestRunnable::ID_STR_SZ, "process_%d%s",
m_id, extra);
                                                    ^~~~~~~~~~~~~~
~~~~~

Signed-off-by: Kefu Chai <kchai@redhat.com>
src/test/system/systest_runnable.cc