diff options
author | Lars Amsel <lars.amsel@ni.com> | 2020-09-18 08:26:07 +0200 |
---|---|---|
committer | Aaron Rossetto <aaron.rossetto@ni.com> | 2020-09-22 14:35:41 -0500 |
commit | bc20747808138462968b1b743abecbb83389e1c4 (patch) | |
tree | 72a3d362106f6b4fcf993a3e7d8cc21b4b360c2e /host/lib/cal | |
parent | 6cd9662e2b8f2e159805015f3dd9087089a454af (diff) | |
download | uhd-bc20747808138462968b1b743abecbb83389e1c4.tar.gz uhd-bc20747808138462968b1b743abecbb83389e1c4.tar.bz2 uhd-bc20747808138462968b1b743abecbb83389e1c4.zip |
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.
Diffstat (limited to 'host/lib/cal')
-rw-r--r-- | host/lib/cal/database.cpp | 4 |
1 files changed, 3 insertions, 1 deletions
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 |