summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authorpatrick <patrick@openbsd.org>2017-05-08 20:13:10 +0000
committerpatrick <patrick@openbsd.org>2017-05-08 20:13:10 +0000
commitee2d84a2a81db68ebe4f3c82b7eaa64746f2671b (patch)
treeb8f7ee458ac7d4b9fcfd5ff94b64a0deccc80d92
parent8192C is the only MIMO chip supported by this driver, all others are 1T1R. (diff)
downloadwireguard-openbsd-ee2d84a2a81db68ebe4f3c82b7eaa64746f2671b.tar.xz
wireguard-openbsd-ee2d84a2a81db68ebe4f3c82b7eaa64746f2671b.zip
Guard debug printf with NETIF_DEBUG ifdef like the other debug prints.
ok tom@
-rw-r--r--sys/arch/i386/stand/libsa/pxe_net.c4
1 files changed, 3 insertions, 1 deletions
diff --git a/sys/arch/i386/stand/libsa/pxe_net.c b/sys/arch/i386/stand/libsa/pxe_net.c
index f5c8807e2f9..6473ec6ca6e 100644
--- a/sys/arch/i386/stand/libsa/pxe_net.c
+++ b/sys/arch/i386/stand/libsa/pxe_net.c
@@ -1,4 +1,4 @@
-/* $OpenBSD: pxe_net.c,v 1.5 2014/08/21 14:24:08 mpi Exp $ */
+/* $OpenBSD: pxe_net.c,v 1.6 2017/05/08 20:13:10 patrick Exp $ */
/* $NetBSD: dev_net.c,v 1.4 2003/03/12 13:15:08 drochner Exp $ */
/*-
@@ -168,8 +168,10 @@ net_getparams(int sock)
bootp(sock);
if (myip.s_addr != 0)
return 0;
+#ifdef NETIF_DEBUG
if (debug)
printf("net_getparams: BOOTP failed\n");
+#endif
return EIO;
}