From 52566fc13b9b1b283b4b3b4187016f8b287904a9 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Constantin=20F=C3=BCrst?= Date: Wed, 10 Jan 2024 12:31:57 +0100 Subject: [PATCH] print to cerr for bad states in the test-main --- offloading-cacher/main.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/offloading-cacher/main.cpp b/offloading-cacher/main.cpp index e67eb22..4310d3d 100644 --- a/offloading-cacher/main.cpp +++ b/offloading-cacher/main.cpp @@ -65,7 +65,7 @@ void PerformAccessAndTest(double* src, const size_t size) { std::cout << "Caching did not affect data location." << std::endl; } else if (cached == nullptr) { - std::cout << "Got nullptr from cache." << std::endl; + std::cerr << "Got nullptr from cache." << std::endl; } else { std::cout << "Got different data location from cache." << std::endl; @@ -75,7 +75,7 @@ void PerformAccessAndTest(double* src, const size_t size) { std::cout << "Cached data is correct." << std::endl; } else { - std::cout << "Cached data is wrong." << std::endl; + std::cerr << "Cached data is wrong." << std::endl; } }