Source-Changes-HG archive
[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]
[src/phil-wifi]: src/sys/dev/usb Make it compilable with URTWN_DEBUG
details: https://anonhg.NetBSD.org/src/rev/628c94286acd
branches: phil-wifi
changeset: 1025128:628c94286acd
user: martin <martin%NetBSD.org@localhost>
date: Fri Apr 17 13:44:37 2020 +0000
description:
Make it compilable with URTWN_DEBUG
diffstat:
sys/dev/usb/if_urtwn.c | 12 ++++++++----
1 files changed, 8 insertions(+), 4 deletions(-)
diffs (40 lines):
diff -r 8bb567a3fb49 -r 628c94286acd sys/dev/usb/if_urtwn.c
--- a/sys/dev/usb/if_urtwn.c Thu Apr 16 17:24:49 2020 +0000
+++ b/sys/dev/usb/if_urtwn.c Fri Apr 17 13:44:37 2020 +0000
@@ -1,4 +1,4 @@
-/* $NetBSD: if_urtwn.c,v 1.59.2.11 2020/04/16 17:24:49 nat Exp $ */
+/* $NetBSD: if_urtwn.c,v 1.59.2.12 2020/04/17 13:44:37 martin Exp $ */
/* $OpenBSD: if_urtwn.c,v 1.42 2015/02/10 23:25:46 mpi Exp $ */
/*-
@@ -42,7 +42,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.59.2.11 2020/04/16 17:24:49 nat Exp $");
+__KERNEL_RCSID(0, "$NetBSD: if_urtwn.c,v 1.59.2.12 2020/04/17 13:44:37 martin Exp $");
#ifdef _KERNEL_OPT
#include "opt_inet.h"
@@ -3452,7 +3452,9 @@
static void
urtwn_scan_start(struct ieee80211com *ic)
{
- //struct urtwn_softc *sc = ic->ic_softc;
+#ifdef URTWN_DEBUG
+ struct urtwn_softc *sc = ic->ic_softc;
+#endif
//uint32_t reg;
//int s;
@@ -3515,7 +3517,9 @@
static void
urtwn_scan_end(struct ieee80211com *ic)
{
- //struct urtwn_softc *sc = ic->ic_softc;
+#ifdef URTWN_DEBUG
+ struct urtwn_softc *sc = ic->ic_softc;
+#endif
DPRINTFN(DBG_FN, ("%s: %s\n",device_xname(sc->sc_dev), __func__));
Home |
Main Index |
Thread Index |
Old Index