diff options
author | Henning Baldersheim <balder@yahoo-inc.com> | 2017-10-12 22:22:50 +0200 |
---|---|---|
committer | Henning Baldersheim <balder@yahoo-inc.com> | 2017-10-12 22:22:50 +0200 |
commit | 6152d7e8ddd0f7e5009674c25e3f8fcdaade784b (patch) | |
tree | 8471614028f3eab91a34257f76777593bbc283bc /vespalog/src/test/bufferedlogtest.cpp | |
parent | e7c01afea43e4ce2592f99a9cccb62cfb355704c (diff) |
Add -Wformat-security
Diffstat (limited to 'vespalog/src/test/bufferedlogtest.cpp')
-rw-r--r-- | vespalog/src/test/bufferedlogtest.cpp | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/vespalog/src/test/bufferedlogtest.cpp b/vespalog/src/test/bufferedlogtest.cpp index 3e974057361..9b69d9d3a14 100644 --- a/vespalog/src/test/bufferedlogtest.cpp +++ b/vespalog/src/test/bufferedlogtest.cpp @@ -71,12 +71,11 @@ void spamLog2(uint64_t& time, int diff) { time += diff; std::ostringstream ost; ost << "Message " << i; - LOGBT(info, ost.str(), ost.str().c_str()); + LOGBT(info, ost.str(), "%s", ost.str().c_str()); } } -void testThatEntriesWithHighCountIsKept(const std::string& file, - uint64_t& timer) +void testThatEntriesWithHighCountIsKept(const std::string& file, uint64_t& timer) { std::cerr << "testThatEntriesWithHighCountIsKept ...\n"; timer = 10 * 1000000 + 4; |