diff options
author | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 14:41:31 -0400 |
---|---|---|
committer | Eric S. Raymond <esr@thyrsus.com> | 2012-05-11 14:42:02 -0400 |
commit | 2a62d13b260430097cb4adab0f64901cfb2b13dc (patch) | |
tree | 4b07bb3f7c877f6e1b1d11500ba017c9551bb6f1 /driver_ubx.c | |
parent | e5fe5a561e6257a2d1f16a4e9247b20e2c214cd5 (diff) | |
download | gpsd-2a62d13b260430097cb4adab0f64901cfb2b13dc.tar.gz |
Still working on pacifying Coverity. All regression tests pass.
Diffstat (limited to 'driver_ubx.c')
-rw-r--r-- | driver_ubx.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/driver_ubx.c b/driver_ubx.c index 40721c7c..5e417461 100644 --- a/driver_ubx.c +++ b/driver_ubx.c @@ -515,7 +515,8 @@ bool ubx_write(struct gps_device_t * session, unsigned char *msg, size_t data_len) { unsigned char CK_A, CK_B; - ssize_t i, count; + ssize_t count; + size_t i; bool ok; /*@ -type @*/ @@ -550,9 +551,8 @@ bool ubx_write(struct gps_device_t * session, /*@ +type @*/ - /* coverity[pwprintf_arg_mismatch] */ gpsd_report(LOG_IO, - "=> GPS: UBX class: %02x, id: %02x, len: %d, crc: %02x%02x\n", + "=> GPS: UBX class: %02x, id: %02x, len: %zd, crc: %02x%02x\n", msg_class, msg_id, data_len, CK_A, CK_B); count = gpsd_write(session, session->msgbuf, session->msgbuflen); |