Page Menu
Home
FreeBSD
Search
Configure Global Search
Log In
Files
F151373173
D53776.id166520.diff
No One
Temporary
Actions
View File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Flag For Later
Award Token
Size
1 KB
Referenced Files
None
Subscribers
None
D53776.id166520.diff
View Options
diff --git a/sys/conf/files b/sys/conf/files
--- a/sys/conf/files
+++ b/sys/conf/files
@@ -2278,10 +2278,8 @@
compile-with "${NORMAL_FW}" \
no-obj no-implicit-rule \
clean "iwn6050.fw"
-dev/iwx/if_iwx.c optional iwx \
- compile-with "${NORMAL_C} -DIWX_DEBUG=1"
-dev/iwx/if_iwx_debug.c optional iwx \
- compile-with "${NORMAL_C} -DIWX_DEBUG=1"
+dev/iwx/if_iwx.c optional iwx
+dev/iwx/if_iwx_debug.c optional iwx
dev/ixgbe/if_ix.c optional ix inet \
compile-with "${NORMAL_C} -I$S/dev/ixgbe -DSMP"
dev/ixgbe/if_ixv.c optional ixv inet \
diff --git a/sys/dev/iwx/if_iwx.c b/sys/dev/iwx/if_iwx.c
--- a/sys/dev/iwx/if_iwx.c
+++ b/sys/dev/iwx/if_iwx.c
@@ -588,7 +588,7 @@
u_int8_t etheranyaddr[ETHER_ADDR_LEN] =
{ 0x00, 0x00, 0x00, 0x00, 0x00, 0x00 };
-#if IWX_DEBUG
+#ifdef IWX_DEBUG
#define DPRINTF(x) do { if (sc->sc_debug == IWX_DEBUG_ANY) { printf x; } } while (0)
#else
#define DPRINTF(x) do { ; } while (0)
@@ -5599,9 +5599,11 @@
IWX_DPRINTF(sc, IWX_DEBUG_TXRATE, "%s:%d rate_n_flags=0x%x\n",
__func__, __LINE__, *rate_n_flags);
+#ifdef IWX_DEBUG
if (sc->sc_debug & IWX_DEBUG_TXRATE)
print_ratenflags(__func__, __LINE__,
*rate_n_flags, sc->sc_rate_n_flags_version);
+#endif
return rinfo;
}
@@ -7382,9 +7384,11 @@
return (false);
}
+#ifdef IWX_DEBUG
if (sc->sc_debug & IWX_DEBUG_TXRATE)
print_ratenflags(__func__, __LINE__,
rate_n_flags, sc->sc_rate_n_flags_version);
+#endif
type = (rate_n_flags & IWX_RATE_MCS_MOD_TYPE_MSK);
switch (type) {
diff --git a/sys/modules/iwx/Makefile b/sys/modules/iwx/Makefile
--- a/sys/modules/iwx/Makefile
+++ b/sys/modules/iwx/Makefile
@@ -4,7 +4,7 @@
SRCS= if_iwx.c if_iwx_debug.c
SRCS+= device_if.h bus_if.h pci_if.h opt_wlan.h
-CFLAGS+= -DIWX_DEBUG=1
+#CFLAGS+= -DIWX_DEBUG=1
# DEBUG_FLAGS= -O0 -g
.include <bsd.kmod.mk>
File Metadata
Details
Attached
Mime Type
text/plain
Expires
Wed, Apr 8, 11:22 PM (13 h, 52 m)
Storage Engine
blob
Storage Format
Raw Data
Storage Handle
31121374
Default Alt Text
D53776.id166520.diff (1 KB)
Attached To
Mode
D53776: iwx: make compile withtout IWX_DEBUG being on
Attached
Detach File
Event Timeline
Log In to Comment