From d7fe2970f58807d285870a05a00bf593229c3a1a Mon Sep 17 00:00:00 2001 From: Stelios Bounanos Date: Mon, 6 Oct 2014 14:23:10 -0500 Subject: [PATCH] Fix log format string warnings --- src/misc/record_loader.cxx | 4 ++-- src/rigcontrol/rigio.cxx | 2 +- 2 files changed, 3 insertions(+), 3 deletions(-) diff --git a/src/misc/record_loader.cxx b/src/misc/record_loader.cxx index 4d27aff4..667526d5 100644 --- a/src/misc/record_loader.cxx +++ b/src/misc/record_loader.cxx @@ -93,8 +93,8 @@ int RecordLoaderInterface::LoadAndRegister() } } ifs.close(); - LOG_INFO( "Read:%s with %d records in %d seconds", - filnam.c_str(), nbRec, static_cast( time(NULL) - cntTim ) ); + LOG_INFO( "Read:%s with %zu records in %jd seconds", + filnam.c_str(), nbRec, time(NULL) - cntTim); return nbRec ; } diff --git a/src/rigcontrol/rigio.cxx b/src/rigcontrol/rigio.cxx index 3c38a1c7..c918142d 100644 --- a/src/rigcontrol/rigio.cxx +++ b/src/rigcontrol/rigio.cxx @@ -417,7 +417,7 @@ long long rigCAT_getfreq(int retries, bool &failed, int waitval) f = fm_freqdata(rTemp.data, pData); if ( f >= rTemp.data.min && f <= rTemp.data.max) return f; - LOG_VERBOSE("freq: %" PRId64, f); + LOG_VERBOSE("freq: %lld", f); retry_get_freq: ; } }