diff options
author | Rich Roussel <rroussel@artandlogic.com> | 2017-09-28 07:16:43 -0700 |
---|---|---|
committer | Rich Roussel <rroussel@artandlogic.com> | 2017-09-28 07:16:43 -0700 |
commit | 0c623d9113de23358300a81f02f64cd4a276fb9b (patch) | |
tree | 37c3eb90e8a40bbd62a2ff31a9781374f68944cb | |
parent | ba4675ba3fb016115a21f8dfb170f88b93b1d4d8 (diff) | |
download | Open-AVB-0c623d9113de23358300a81f02f64cd4a276fb9b.tar.gz |
Remove warning when verbose logging is disabled.
-rw-r--r-- | daemons/gptp/linux/src/linux_hal_rpi3.cpp | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/daemons/gptp/linux/src/linux_hal_rpi3.cpp b/daemons/gptp/linux/src/linux_hal_rpi3.cpp index de0241b3..65656b67 100644 --- a/daemons/gptp/linux/src/linux_hal_rpi3.cpp +++ b/daemons/gptp/linux/src/linux_hal_rpi3.cpp @@ -443,11 +443,12 @@ class AGPioPinger high_resolution_clock::time_point now = high_resolution_clock::now(); + auto timeSinceEpoc = now.time_since_epoch(); GPTP_LOG_VERBOSE("-------------------------nextInterval: %" PRIu64, fNextInterval); GPTP_LOG_VERBOSE("-------------------------now(1): %" - PRIu64, duration_cast<nanoseconds>(now.time_since_epoch()).count()); + PRIu64, duration_cast<nanoseconds>(timeSinceEpoc).count()); GPTP_LOG_VERBOSE("-------------------------sleepInterval: %" PRIu64, sleepInterval); |