diff options
author | 2018-12-13 10:54:29 +0000 | |
---|---|---|
committer | 2018-12-13 10:54:29 +0000 | |
commit | d0e5511c764f228867f20f9744dbdccde5f1a372 (patch) | |
tree | b612c5939756d5a0729e3ec3703ad7cef914af29 | |
parent | libmdoc.h no longer needs mdoc.h (diff) | |
download | wireguard-openbsd-d0e5511c764f228867f20f9744dbdccde5f1a372.tar.xz wireguard-openbsd-d0e5511c764f228867f20f9744dbdccde5f1a372.zip |
fix printf statements when compiled with -DDEBUG.
OK deraadt@, tb@, claudio@
-rw-r--r-- | usr.sbin/snmpctl/snmpclient.c | 4 | ||||
-rw-r--r-- | usr.sbin/snmpd/smi.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/usr.sbin/snmpctl/snmpclient.c b/usr.sbin/snmpctl/snmpclient.c index bb2aa64fccc..fb92b3ee932 100644 --- a/usr.sbin/snmpctl/snmpclient.c +++ b/usr.sbin/snmpctl/snmpclient.c @@ -1,4 +1,4 @@ -/* $OpenBSD: snmpclient.c,v 1.18 2018/11/25 14:58:28 deraadt Exp $ */ +/* $OpenBSD: snmpclient.c,v 1.19 2018/12/13 10:54:29 martijn Exp $ */ /* * Copyright (c) 2013 Reyk Floeter <reyk@openbsd.org> @@ -401,7 +401,7 @@ snmpc_sendreq(struct snmpc *sc, unsigned int type) } #ifdef DEBUG - fprintf(stderr, "REQUEST(%lu):\n", type); + fprintf(stderr, "REQUEST(%u):\n", type); smi_debug_elements(root); #endif diff --git a/usr.sbin/snmpd/smi.c b/usr.sbin/snmpd/smi.c index 676e8ff2fb5..a307b57aa66 100644 --- a/usr.sbin/snmpd/smi.c +++ b/usr.sbin/snmpd/smi.c @@ -1,4 +1,4 @@ -/* $OpenBSD: smi.c,v 1.22 2018/07/31 11:01:29 claudio Exp $ */ +/* $OpenBSD: smi.c,v 1.23 2018/12/13 10:54:29 martijn Exp $ */ /* * Copyright (c) 2007, 2008 Reyk Floeter <reyk@openbsd.org> @@ -404,7 +404,7 @@ smi_debug_elements(struct ber_element *root) fprintf(stderr, "class: <INVALID>(%u) type: ", root->be_class); break; } - fprintf(stderr, "(%lu) encoding %lu ", + fprintf(stderr, "(%u) encoding %u ", root->be_type, root->be_encoding); if ((value = smi_print_element(root)) == NULL) |