From 24ebfb7b4218c9cb8358de1710bbbd5fe3f6fba3 Mon Sep 17 00:00:00 2001 From: Henning Brauer Date: Mon, 5 Mar 2012 11:50:17 +0000 Subject: 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 --- sbin/pflogd/pflogd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'sbin') 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; -- cgit v1.2.3