From 836559cda19705e92d812da9910e75686852cbf4 Mon Sep 17 00:00:00 2001 From: GUVWAF Date: Thu, 19 Jan 2023 13:14:20 +0100 Subject: [PATCH] Fix two print format specifiers --- src/airtime.cpp | 2 +- src/mesh/RadioInterface.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/src/airtime.cpp b/src/airtime.cpp index 0c3fe81fc..fcd725538 100644 --- a/src/airtime.cpp +++ b/src/airtime.cpp @@ -135,7 +135,7 @@ bool AirTime::isTxAllowedAirUtil() if (utilizationTXPercent() < myRegion->dutyCycle * polite_duty_cycle_percent / 100) { return true; } else { - LOG_WARN("Tx air utilization is >%d percent. Skipping this opportunity to send.\n", myRegion->dutyCycle * polite_duty_cycle_percent / 100); + LOG_WARN("Tx air utilization is >%f percent. Skipping this opportunity to send.\n", myRegion->dutyCycle * polite_duty_cycle_percent / 100); return false; } } diff --git a/src/mesh/RadioInterface.cpp b/src/mesh/RadioInterface.cpp index 37b929249..212255c80 100644 --- a/src/mesh/RadioInterface.cpp +++ b/src/mesh/RadioInterface.cpp @@ -275,7 +275,7 @@ void printPacket(const char *prefix, const MeshPacket *p) LOG_DEBUG(" rxSNR=%g", p->rx_snr); } if (p->rx_rssi != 0) { - LOG_DEBUG(" rxRSSI=%g", p->rx_rssi); + LOG_DEBUG(" rxRSSI=%i", p->rx_rssi); } if (p->priority != 0) LOG_DEBUG(" priority=%d", p->priority);