summaryrefslogtreecommitdiff
path: root/packet.c
diff options
context:
space:
mode:
authorEric S. Raymond <esr@thyrsus.com>2011-03-30 07:51:28 -0400
committerEric S. Raymond <esr@thyrsus.com>2011-03-30 07:51:28 -0400
commit4918b2e5357c3b8f01a8af2a64e5af7d11befb4e (patch)
tree3bbe12c86d18e7608916ec6c83f5993fdcb34ad5 /packet.c
parent00d30e50601529a72d22ecc3183d18e1847f096b (diff)
downloadgpsd-4918b2e5357c3b8f01a8af2a64e5af7d11befb4e.tar.gz
Clean up more scan-build warnings, from the raw logs this time.
Diffstat (limited to 'packet.c')
-rw-r--r--packet.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/packet.c b/packet.c
index 5181101f..ba383284 100644
--- a/packet.c
+++ b/packet.c
@@ -830,7 +830,7 @@ static void nextstate(struct gps_packet_t *lexer, unsigned char c)
csum ^= lexer->inbuffer[n];
if (csum != c) {
gpsd_report(LOG_IO,
- "Navcom packet type 0x%hx bad checksum 0x%hx, expecting 0x%hx\n",
+ "Navcom packet type 0x%hhx bad checksum 0x%hhx, expecting 0x%hx\n",
lexer->inbuffer[3], csum, c);
gpsd_report(LOG_RAW, "Navcom packet dump: %s\n",
gpsd_hexdump_wrapper(lexer->inbuffer, lexer->inbuflen,
@@ -1650,7 +1650,7 @@ void packet_parse(struct gps_packet_t *lexer)
packet_accept(lexer, UBX_PACKET);
else {
gpsd_report(LOG_IO,
- "UBX checksum 0x%02hhx%02hhx over length %hd,"
+ "UBX checksum 0x%02hhx%02hhx over length %d,"
" expecting 0x%02hhx%02hhx (type 0x%02hhx%02hhx)\n",
ck_a,
ck_b,