From bc20747808138462968b1b743abecbb83389e1c4 Mon Sep 17 00:00:00 2001 From: Lars Amsel Date: Fri, 18 Sep 2020 08:26:07 +0200 Subject: cal: sync log output between file system and resource data To make the debug output of the database more readable the has_cal_data lookup for RC data prints the file that is looked up similar to the lookup for file system. --- host/lib/cal/database.cpp | 4 +++- 1 file changed, 3 insertions(+), 1 deletion(-) (limited to 'host/lib/cal/database.cpp') diff --git a/host/lib/cal/database.cpp b/host/lib/cal/database.cpp index 87f74bc8d..4b59cf913 100644 --- a/host/lib/cal/database.cpp +++ b/host/lib/cal/database.cpp @@ -49,7 +49,9 @@ std::string get_cal_path_rc(const std::string& key) bool has_cal_data_rc(const std::string& key, const std::string&) { auto fs = rc::get_filesystem(); - return fs.is_file(get_cal_path_rc(key)); + const std::string cal_path(get_cal_path_rc(key)); + UHD_LOG_TRACE(LOG_ID, "Checking for resource " << cal_path); + return fs.is_file(cal_path); } //! Return a byte array for a given cal resource -- cgit v1.2.3