From dc79ff4efe7b0b9f649c84c7b9e8d84fe4a9ff00 Mon Sep 17 00:00:00 2001 From: Jay Huh Date: Mon, 29 Jan 2024 12:01:16 -0800 Subject: [PATCH] Move some stderr messages to stdout --- db_stress_tool/db_stress_common.cc | 4 ++-- db_stress_tool/db_stress_test_base.cc | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/db_stress_tool/db_stress_common.cc b/db_stress_tool/db_stress_common.cc index dc600a49f73..bf0a56358b1 100644 --- a/db_stress_tool/db_stress_common.cc +++ b/db_stress_tool/db_stress_common.cc @@ -200,7 +200,7 @@ void CompressedCacheSetCapacityThread(void* v) { // Lower by upto 50% of usable block cache capacity adjustment = (adjustment * thread->rand.Uniform(50)) / 100; block_cache->SetCapacity(capacity - adjustment); - fprintf(stderr, "New cache capacity = %lu\n", + fprintf(stdout, "New cache capacity = %lu\n", block_cache->GetCapacity()); db_stress_env->SleepForMicroseconds(10 * 1000 * 1000); block_cache->SetCapacity(capacity); @@ -210,7 +210,7 @@ void CompressedCacheSetCapacityThread(void* v) { (double)thread->rand.Uniform( FLAGS_compressed_secondary_cache_ratio * 100) / 100; - fprintf(stderr, "New comp cache ratio = %f\n", new_comp_cache_ratio); + fprintf(stdout, "New comp cache ratio = %f\n", new_comp_cache_ratio); s = UpdateTieredCache(block_cache, /*capacity*/ -1, new_comp_cache_ratio); diff --git a/db_stress_tool/db_stress_test_base.cc b/db_stress_tool/db_stress_test_base.cc index 82b03871e6f..b596382c7f3 100644 --- a/db_stress_tool/db_stress_test_base.cc +++ b/db_stress_tool/db_stress_test_base.cc @@ -2701,7 +2701,7 @@ void StressTest::Open(SharedState* shared, bool reopen) { exit(1); } if (FLAGS_prefix_size != 0 && FLAGS_rep_factory != kHashSkipList) { - fprintf(stderr, + fprintf(stdout, "WARNING: prefix_size is non-zero but " "memtablerep != prefix_hash\n"); }