summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorChris Kuethe <chris.kuethe@gmail.com>2009-01-06 16:54:11 +0000
committerChris Kuethe <chris.kuethe@gmail.com>2009-01-06 16:54:11 +0000
commitf35514c36eecc3bd6c045e6cb8021ef455738f29 (patch)
treebfc5d550182ab357c11856b19493bbae566fe2b9
parenta8974da3fe795f007f31c547d63662260d4d6ec6 (diff)
downloadgpsd-f35514c36eecc3bd6c045e6cb8021ef455738f29.tar.gz
fix format warning
-rw-r--r--isgps.c6
-rw-r--r--zodiac.c3
2 files changed, 5 insertions, 4 deletions
diff --git a/isgps.c b/isgps.c
index 80d45029..1158d7f7 100644
--- a/isgps.c
+++ b/isgps.c
@@ -209,17 +209,17 @@ enum isgpsstat_t isgps_decode(struct gps_packet_t *session,
} else {
session->isgps.curr_word |= c >> -(session->isgps.curr_offset);
}
- gpsd_report(ISGPS_ERRLEVEL_BASE+2, "ISGPS syncing at byte %d: %0x%08x\n", session->char_counter, session->isgps.curr_word);
+ gpsd_report(ISGPS_ERRLEVEL_BASE+2, "ISGPS syncing at byte %lu: 0x%08x\n", session->char_counter, session->isgps.curr_word);
if (preamble_match(&session->isgps.curr_word)) {
if (isgps_parityok(session->isgps.curr_word)) {
- gpsd_report(ISGPS_ERRLEVEL_BASE+1,
+ gpsd_report(ISGPS_ERRLEVEL_BASE+1,
"ISGPS preamble ok, parity ok -- locked\n");
session->isgps.locked = true;
/* session->isgps.curr_offset; XXX - testing */
break;
}
- gpsd_report(ISGPS_ERRLEVEL_BASE+1,
+ gpsd_report(ISGPS_ERRLEVEL_BASE+1,
"ISGPS preamble ok, parity fail\n");
}
session->isgps.curr_offset++;
diff --git a/zodiac.c b/zodiac.c
index 24b80c9e..52c2390a 100644
--- a/zodiac.c
+++ b/zodiac.c
@@ -406,7 +406,8 @@ static gps_mask_t zodiac_analyze(struct gps_device_t *session)
(void)snprintf(buf+strlen(buf), sizeof(buf)-strlen(buf),
"%02x", (unsigned int)session->packet.outbuffer[i]);
(void)strlcat(buf, "\n", BUFSIZ);
- gpsd_report(LOG_RAW, "Raw Zodiac packet type %d length %d: %s\n",id,session->packet.outbuflen,buf);
+ gpsd_report(LOG_RAW, "Raw Zodiac packet type %d length %zd: %s\n",
+ id, session->packet.outbuflen, buf);
if (session->packet.outbuflen < 10)
return 0;