rocksdb/utilities/blob_db
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
..
blob_compaction_filter.cc Apply modernize-use-override (2nd iteration) 2019-02-14 14:41:36 -08:00
blob_compaction_filter.h Blob DB: Improve FIFO eviction 2018-03-06 11:57:42 -08:00
blob_db_impl_filesnapshot.cc Support pragma once in all header files and cleanup some warnings (#4339) 2018-09-05 18:13:31 -07:00
blob_db_impl.cc Fix many bugs in log statement arguments (#5089) 2019-04-04 12:12:11 -07:00
blob_db_impl.h BlobDB::Open() should put all existing trash files to delete scheduler (#5103) 2019-03-26 10:53:19 -07:00
blob_db_iterator.h Change and clarify the relationship between Valid(), status() and Seek*() for all iterators. Also fix some bugs 2018-05-17 02:56:56 -07:00
blob_db_listener.h Blob DB: Improve FIFO eviction 2018-03-06 11:57:42 -08:00
blob_db_test.cc Smooth the deletion of WAL files (#5116) 2019-03-28 15:17:13 -07:00
blob_db.cc BlobDB: Remove GC interval option (#5044) 2019-03-07 10:19:05 -08:00
blob_db.h BlobDB: Remove GC interval option (#5044) 2019-03-07 10:19:05 -08:00
blob_dump_tool.cc Digest ZSTD compression dictionary once when writing SST file (#4849) 2019-01-18 19:12:57 -08:00
blob_dump_tool.h Ensure delete[] and not delete is used on buffer_ (#4647) 2018-11-07 11:59:50 -08:00
blob_file.cc Fix many bugs in log statement arguments (#5089) 2019-04-04 12:12:11 -07:00
blob_file.h BlobDB: handle IO error on read (#4410) 2018-09-20 16:58:45 -07:00
blob_index.h Blob DB: Inline small values in base DB 2017-10-26 12:30:54 -07:00
blob_log_format.cc utilities: Fix build failure with -Werror=maybe-uninitialized (#5074) 2019-03-18 11:35:06 -07:00
blob_log_format.h BlobDB: use char array instead of string as buffer (#4662) 2018-11-13 12:49:29 -08:00
blob_log_reader.cc Remove some "using std::..." from header files. (#5113) 2019-03-27 10:28:21 -07:00
blob_log_reader.h BlobDB: use char array instead of string as buffer (#4662) 2018-11-13 12:49:29 -08:00
blob_log_writer.cc Remove some "using std::..." from header files. (#5113) 2019-03-27 10:28:21 -07:00
blob_log_writer.h BlobDB: refactor DB open logic 2017-12-11 12:12:38 -08:00