]> git.apps.os.sepia.ceph.com Git - ceph.git/commit
test: silence -Wformat-truncation= warnings
authorKefu Chai <kchai@redhat.com>
Mon, 7 May 2018 07:19:37 +0000 (15:19 +0800)
committerNathan Cutler <ncutler@suse.com>
Fri, 18 May 2018 13:23:47 +0000 (15:23 +0200)
commitf5c987ae996f592e2222aae108972f5e7e313345
treed0f4d174d87872ee062e6c400ecd0403764bfc3e
parenta7495194ff65c45f60329cb61855172e5084d5a3
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>
(cherry picked from commit ba3f82a46c7e6862d31b162ee2badd4773c00bb9)
src/test/system/systest_runnable.cc