diff options
author | Gary E. Miller <gem@rellim.com> | 2017-07-26 14:28:31 -0700 |
---|---|---|
committer | Gary E. Miller <gem@rellim.com> | 2017-07-26 14:28:31 -0700 |
commit | 9adceda3214a316f88be4547844807483b894ba6 (patch) | |
tree | eb47fc9efe4091d02f234041d7b80eb76ef89b04 /test_packet.c | |
parent | 0ddb4723ced79d92d4918c5659e329088fdac509 (diff) | |
download | gpsd-9adceda3214a316f88be4547844807483b894ba6.tar.gz |
test_packet: fix format %2zi -> %2ti.
Subtracting two pointers is a ptr_diff_t, not a size_t.
Diffstat (limited to 'test_packet.c')
-rw-r--r-- | test_packet.c | 6 |
1 files changed, 3 insertions, 3 deletions
diff --git a/test_packet.c b/test_packet.c index 274d7d62..2ac523c4 100644 --- a/test_packet.c +++ b/test_packet.c @@ -272,16 +272,16 @@ static int packet_test(struct map *mp) lexer.inbuflen = mp->testlen; packet_parse(&lexer); if (lexer.type != mp->type) - printf("%2zi: %s test FAILED (packet type %d wrong).\n", + printf("%2ti: %s test FAILED (packet type %d wrong).\n", mp - singletests + 1, mp->legend, lexer.type); else if (memcmp (mp->test + mp->garbage_offset, lexer.outbuffer, lexer.outbuflen)) { - printf("%2zi: %s test FAILED (data garbled).\n", mp - singletests + 1, + printf("%2ti: %s test FAILED (data garbled).\n", mp - singletests + 1, mp->legend); ++failure; } else - printf("%2zi: %s test succeeded.\n", mp - singletests + 1, + printf("%2ti: %s test succeeded.\n", mp - singletests + 1, mp->legend); return failure; |