aboutsummaryrefslogtreecommitdiff
path: root/sf-pcapng.c
diff options
context:
space:
mode:
Diffstat (limited to 'sf-pcapng.c')
-rw-r--r--sf-pcapng.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/sf-pcapng.c b/sf-pcapng.c
index 997ad904..92d00f80 100644
--- a/sf-pcapng.c
+++ b/sf-pcapng.c
@@ -266,7 +266,7 @@ read_bytes(FILE *fp, void *buf, size_t bytes_to_read, int fail_on_eof,
if (amt_read == 0 && !fail_on_eof)
return (0); /* EOF */
pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
- "truncated dump file; tried to read %" PRIsize " bytes, only got %" PRIsize,
+ "truncated dump file; tried to read %zu bytes, only got %zu",
bytes_to_read, amt_read);
}
return (-1);
@@ -302,7 +302,7 @@ read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf)
if (bhdr.total_length < sizeof(struct block_header) +
sizeof(struct block_trailer)) {
pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
- "block in pcapng dump file has a length of %u < %" PRIsize,
+ "block in pcapng dump file has a length of %u < %zu",
bhdr.total_length,
sizeof(struct block_header) + sizeof(struct block_trailer));
return (-1);
@@ -316,7 +316,7 @@ read_block(FILE *fp, pcap_t *p, struct block_cursor *cursor, char *errbuf)
* No. Report that as an error.
*/
pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
- "block in pcapng dump file has a length of %u that is not a multiple of 4" PRIsize,
+ "block in pcapng dump file has a length of %u that is not a multiple of 4",
bhdr.total_length);
return (-1);
}
@@ -858,7 +858,7 @@ pcap_ng_check_header(const uint8_t *magic, FILE *fp, u_int precision,
*/
if (total_length < sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer)) {
pcap_snprintf(errbuf, PCAP_ERRBUF_SIZE,
- "Section Header Block in pcapng dump file has a length of %u < %" PRIsize,
+ "Section Header Block in pcapng dump file has a length of %u < %zu",
total_length,
sizeof(*bhdrp) + sizeof(*shbp) + sizeof(struct block_trailer));
*err = 1;