rocksdb/utilities/persistent_cache
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
..
block_cache_tier_file_buffer.h Change RocksDB License 2017-07-15 16:11:23 -07:00
block_cache_tier_file.cc Comment out unused variables 2018-03-05 13:13:41 -08:00
block_cache_tier_file.h Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
block_cache_tier_metadata.cc Fix unused var warnings in Release mode 2017-10-23 14:27:04 -07:00
block_cache_tier_metadata.h Change RocksDB License 2017-07-15 16:11:23 -07:00
block_cache_tier.cc Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
block_cache_tier.h Fix many bugs in log statement arguments (#5089) 2019-04-04 12:12:11 -07:00
hash_table_bench.cc Fix build for linux 2017-12-18 12:28:03 -08:00
hash_table_evictable.h Enable MSVC W4 with a few exceptions. Fix warnings and bugs 2017-10-19 10:57:12 -07:00
hash_table_test.cc Apply modernize-use-override (2nd iteration) 2019-02-14 14:41:36 -08:00
hash_table.h Change RocksDB License 2017-07-15 16:11:23 -07:00
lrulist.h Change RocksDB License 2017-07-15 16:11:23 -07:00
persistent_cache_bench.cc Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
persistent_cache_test.cc Per-thread unique test db names (#4135) 2018-07-13 17:27:39 -07:00
persistent_cache_test.h Update all unique/shared_ptr instances to be qualified with namespace std (#4638) 2018-11-09 11:19:58 -08:00
persistent_cache_tier.cc Comment out unused variables 2018-03-05 13:13:41 -08:00
persistent_cache_tier.h fix compilation with g++ option -Wsuggest-override (#4272) 2018-08-14 15:13:10 -07:00
persistent_cache_util.h Change RocksDB License 2017-07-15 16:11:23 -07:00
volatile_tier_impl.cc Comment out unused variables 2018-03-05 13:13:41 -08:00
volatile_tier_impl.h Change RocksDB License 2017-07-15 16:11:23 -07:00