From 035be7883dc8b703591f81b197eecc056c2cce32 Mon Sep 17 00:00:00 2001 From: Reyk Floeter Date: Sat, 21 Nov 2015 13:09:48 +0000 Subject: While here, fix two size format string warnings. --- usr.sbin/snmpd/control.c | 4 ++-- usr.sbin/snmpd/trap.c | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'usr.sbin/snmpd') diff --git a/usr.sbin/snmpd/control.c b/usr.sbin/snmpd/control.c index e1cece2cf69..3981ca4983e 100644 --- a/usr.sbin/snmpd/control.c +++ b/usr.sbin/snmpd/control.c @@ -1,4 +1,4 @@ -/* $OpenBSD: control.c,v 1.33 2015/10/19 09:32:51 reyk Exp $ */ +/* $OpenBSD: control.c,v 1.34 2015/11/21 13:09:47 reyk Exp $ */ /* * Copyright (c) 2010-2013 Reyk Floeter @@ -207,7 +207,7 @@ control_close(struct ctl_conn *c, const char *msg, struct imsg *imsg) struct control_sock *cs = c->cs; if (imsg) { - log_debug("%s: fd %d: %s, imsg %d datalen %u", __func__, + log_debug("%s: fd %d: %s, imsg %d datalen %zu", __func__, c->iev.ibuf.fd, msg, imsg->hdr.type, IMSG_DATA_SIZE(imsg)); imsg_free(imsg); } else diff --git a/usr.sbin/snmpd/trap.c b/usr.sbin/snmpd/trap.c index 2a70c323169..d8784bd1ff0 100644 --- a/usr.sbin/snmpd/trap.c +++ b/usr.sbin/snmpd/trap.c @@ -1,4 +1,4 @@ -/* $OpenBSD: trap.c,v 1.24 2015/01/16 00:05:13 deraadt Exp $ */ +/* $OpenBSD: trap.c,v 1.25 2015/11/21 13:09:47 reyk Exp $ */ /* * Copyright (c) 2008 Reyk Floeter @@ -126,7 +126,7 @@ trap_agentx(struct agentx_handle *h, struct agentx_pdu *pdu, int *idx, if (varbind != NULL) len = ber_calc_len(varbind); - log_debug("trap_agentx: from pid %u len %d elements %d", + log_debug("trap_agentx: from pid %u len %zd elements %d", pid, len, x); trap_send(&o, varbind); -- cgit v1.2.3