rocksdb/options
Adam Simpkins c06c4c01c5 Fix many bugs in log statement arguments (#5089)
Summary:
Annotate all of the logging functions to inform the compiler that these
use printf-style formatting arguments.  This allows the compiler to emit
warnings if the format arguments are incorrect.

This also fixes many problems reported now that format string checking
is enabled.  Many of these are simply mix-ups in the argument type (e.g,
int vs uint64_t), but in several cases the wrong number of arguments
were being passed in which can cause the code to crash.

The primary motivation for this was to fix the log message in
`DBImpl::SwitchMemtable()` which caused a segfault due to an extra %s
format parameter with no argument supplied.
Pull Request resolved: https://github.com/facebook/rocksdb/pull/5089

Differential Revision: D14574795

Pulled By: simpkins

fbshipit-source-id: 0921b03f0743652bf4ae21e414ff54b3bb65422a
2019-04-04 12:12:11 -07:00
..
cf_options.cc add whole key bloom filter support in memtables (#4985) 2019-02-19 12:15:39 -08:00
cf_options.h Feature for sampling and reporting compressibility (#4842) 2019-03-18 12:15:34 -07:00
db_options.cc Fix many bugs in log statement arguments (#5089) 2019-04-04 12:12:11 -07:00
db_options.h Add DBOptions. avoid_unnecessary_blocking_io to defer file deletions (#5043) 2019-04-01 17:10:40 -07:00
options_helper.cc Add DBOptions. avoid_unnecessary_blocking_io to defer file deletions (#5043) 2019-04-01 17:10:40 -07:00
options_helper.h add OptionType kInt32T and kInt64T 2019-03-12 13:49:52 -07:00
options_parser.cc add OptionType kInt32T and kInt64T 2019-03-12 13:49:52 -07:00
options_parser.h WritePrepared Txn: Optimize for recoverable state 2017-11-01 17:26:46 -07:00
options_sanity_check.cc Change RocksDB License 2017-07-15 16:11:23 -07:00
options_sanity_check.h Change RocksDB License 2017-07-15 16:11:23 -07:00
options_settable_test.cc Add DBOptions. avoid_unnecessary_blocking_io to defer file deletions (#5043) 2019-04-01 17:10:40 -07:00
options_test.cc Option string/map can set merge operator from object registry (#5123) 2019-03-28 14:54:29 -07:00
options.cc Fix many bugs in log statement arguments (#5089) 2019-04-04 12:12:11 -07:00