[Git][NTPsec/ntpsec][master] jupiter: fix format signed-ness

Gary E. Miller gitlab at mg.gitlab.com
Thu Apr 13 00:59:33 UTC 2017


Gary E. Miller pushed to branch master at NTPsec / ntpsec


Commits:
a08942c8 by Gary E. Miller at 2017-04-12T17:59:07-07:00
jupiter: fix format signed-ness

- - - - -


1 changed file:

- ntpd/refclock_jupiter.c


Changes:

=====================================
ntpd/refclock_jupiter.c
=====================================
--- a/ntpd/refclock_jupiter.c
+++ b/ntpd/refclock_jupiter.c
@@ -594,8 +594,8 @@ jupiter_ppsapi(
 		time_pps_getparams(instance->pps_handle, &instance->pps_params);
 		jupiter_debug(instance->peer, __func__,
 			"pps capability 0x%x version %d mode 0x%x kern %d",
-			capability, instance->pps_params.api_version,
-			instance->pps_params.mode, instance->hardpps);
+			(unsigned)capability, instance->pps_params.api_version,
+			(unsigned)instance->pps_params.mode, instance->hardpps);
 	}
 #endif
 
@@ -786,8 +786,8 @@ jupiter_receive(struct recvbuf *rbufp)
 		case JUPITER_O_PULSE:
 			if (size != sizeof(struct jpulse)) {
 				jupiter_debug(peer, __func__,
-				    "pulse: len %d != %u",
-				    size, (int)sizeof(struct jpulse));
+				    "pulse: len %d != %zu",
+				    size, sizeof(struct jpulse));
 				refclock_report(peer, CEVNT_BADREPLY);
 				break;
 			}
@@ -876,8 +876,8 @@ jupiter_receive(struct recvbuf *rbufp)
 		case JUPITER_O_GPOS:
 			if (size != sizeof(struct jgpos)) {
 				jupiter_debug(peer, __func__,
-				    "gpos: len %d != %u",
-				    size, (int)sizeof(struct jgpos));
+				    "gpos: len %d != %zu",
+				    size, sizeof(struct jgpos));
 				refclock_report(peer, CEVNT_BADREPLY);
 				break;
 			}
@@ -892,8 +892,8 @@ jupiter_receive(struct recvbuf *rbufp)
 		case JUPITER_O_ID:
 			if (size != sizeof(struct jid)) {
 				jupiter_debug(peer, __func__,
-				    "id: len %d != %u",
-				    size, (int)sizeof(struct jid));
+				    "id: len %d != %zu",
+				    size, sizeof(struct jid));
 				refclock_report(peer, CEVNT_BADREPLY);
 				break;
 			}
@@ -1004,13 +1004,13 @@ jupiter_parse_t(struct instance *instance, u_short *sp)
 	 */
 	if (instance->lastsweek == sweek)
 		jupiter_debug(instance->peer, __func__,
-		    "gps sweek not incrementing (%d)",
+		    "gps sweek not incrementing (%u)",
 		    sweek);
 	else if (instance->lastsweek != 2 * WEEKSECS &&
 	    instance->lastsweek + 1 != sweek &&
 	    !(sweek == 0 && instance->lastsweek == WEEKSECS - 1))
 		jupiter_debug(instance->peer, __func__,
-		    "gps sweek jumped (was %d, now %d)",
+		    "gps sweek jumped (was %u, now %u)",
 		    instance->lastsweek, sweek);
 	instance->lastsweek = sweek;
 



View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a08942c8dfd07b74c2c946728efaca2dda2ff6a0

---
View it on GitLab: https://gitlab.com/NTPsec/ntpsec/commit/a08942c8dfd07b74c2c946728efaca2dda2ff6a0
You're receiving this email because of your account on gitlab.com.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.ntpsec.org/pipermail/vc/attachments/20170413/9c4b7fca/attachment.html>


More information about the vc mailing list