Diff between bbfaae247fd6516e23d14d2bd573bcae02a40534 and ae44c8f7c2b38789425ae3f993013cbc0ad02a9c

Changed Files

File Additions Deletions Status
mesh/cfgmod-server.c +1 -1 modified
mesh/model.c +3 -3 modified

Full Patch

diff --git a/mesh/cfgmod-server.c b/mesh/cfgmod-server.c
index 992d4ac..9dc82ee 100644
--- a/mesh/cfgmod-server.c
+++ b/mesh/cfgmod-server.c
@@ -1129,7 +1129,7 @@ static bool cfg_srv_pkt(uint16_t src, uint32_t dst,
 		gettimeofday(&time_now, NULL);
 		time_now.tv_sec -= hb->sub_start;
 
-		if (time_now.tv_sec >= hb->sub_period)
+		if (time_now.tv_sec >= (long int) hb->sub_period)
 			time_now.tv_sec = 0;
 		else
 			time_now.tv_sec = hb->sub_period - time_now.tv_sec;
diff --git a/mesh/model.c b/mesh/model.c
index 1e302b7..5940f68 100644
--- a/mesh/model.c
+++ b/mesh/model.c
@@ -414,15 +414,15 @@ static void cmplt(uint16_t remote, uint8_t status,
 
 	gettimeofday(&tx_end, NULL);
 	if (tx_end.tv_sec == tx_start.tv_sec) {
-		l_debug("Duration 0.%zu seconds",
+		l_debug("Duration 0.%6.6lu seconds",
 				tx_end.tv_usec - tx_start.tv_usec);
 	} else {
 		if (tx_start.tv_usec > tx_end.tv_usec)
-			l_debug("Duration %zu.%zu seconds",
+			l_debug("Duration %lu.%6.6lu seconds",
 				tx_end.tv_sec - tx_start.tv_sec - 1,
 				tx_end.tv_usec + 1000000 - tx_start.tv_usec);
 		else
-			l_debug("Duration %zu.%zu seconds",
+			l_debug("Duration %lu.%6.6lu seconds",
 					tx_end.tv_sec - tx_start.tv_sec,
 					tx_end.tv_usec - tx_start.tv_usec);
 	}