summaryrefslogtreecommitdiff
path: root/sbin
diff options
context:
space:
mode:
authorHenning Brauer <henning@cvs.openbsd.org>2012-03-05 11:50:17 +0000
committerHenning Brauer <henning@cvs.openbsd.org>2012-03-05 11:50:17 +0000
commit24ebfb7b4218c9cb8358de1710bbbd5fe3f6fba3 (patch)
treea925c061d1274e50e60a7aad67e0a4ff6552a461 /sbin
parent1008b56d8bc9f7c71cc5ec7bf099cc8d782b5714 (diff)
fix format string:
use %zu for size_t and %d for signed ints first one triggered by a mail from joerg @ netbsd, thanks. ok millert dlg
Diffstat (limited to 'sbin')
-rw-r--r--sbin/pflogd/pflogd.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/sbin/pflogd/pflogd.c b/sbin/pflogd/pflogd.c
index 7906269d912..0d42955e6e4 100644
--- a/sbin/pflogd/pflogd.c
+++ b/sbin/pflogd/pflogd.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pflogd.c,v 1.47 2009/11/03 20:47:41 deraadt Exp $ */
+/* $OpenBSD: pflogd.c,v 1.48 2012/03/05 11:50:16 henning Exp $ */
/*
* Copyright (c) 2001 Theo de Raadt
@@ -523,7 +523,7 @@ dump_packet(u_char *user, const struct pcap_pkthdr *h, const u_char *sp)
size_t len = sizeof(*h) + h->caplen;
if (len < sizeof(*h) || h->caplen > (size_t)cur_snaplen) {
- logmsg(LOG_NOTICE, "invalid size %u (%u/%u), packet dropped",
+ logmsg(LOG_NOTICE, "invalid size %zu (%d/%d), packet dropped",
len, cur_snaplen, snaplen);
packets_dropped++;
return;