c06c4c01c5
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 |
||
---|---|---|
.. | ||
block_cache_tier_file_buffer.h | ||
block_cache_tier_file.cc | ||
block_cache_tier_file.h | ||
block_cache_tier_metadata.cc | ||
block_cache_tier_metadata.h | ||
block_cache_tier.cc | ||
block_cache_tier.h | ||
hash_table_bench.cc | ||
hash_table_evictable.h | ||
hash_table_test.cc | ||
hash_table.h | ||
lrulist.h | ||
persistent_cache_bench.cc | ||
persistent_cache_test.cc | ||
persistent_cache_test.h | ||
persistent_cache_tier.cc | ||
persistent_cache_tier.h | ||
persistent_cache_util.h | ||
volatile_tier_impl.cc | ||
volatile_tier_impl.h |