Author: adrian
Date: Thu Jul  8 14:08:03 2010
New Revision: 209799
URL: http://svn.freebsd.org/changeset/base/209799

Log:
  Extend the ath debugging a little to log the interface name.
  
  Some devices have >1 atheros card and the current debug prints
  make it impossible to tell which interface is being unhappy.

Modified:
  head/sys/dev/ath/if_ath.c

Modified: head/sys/dev/ath/if_ath.c
==============================================================================
--- head/sys/dev/ath/if_ath.c   Thu Jul  8 13:34:01 2010        (r209798)
+++ head/sys/dev/ath/if_ath.c   Thu Jul  8 14:08:03 2010        (r209799)
@@ -324,7 +324,7 @@ TUNABLE_INT("hw.ath.debug", &ath_debug);
            (sc->sc_ifp->if_flags & (IFF_DEBUG|IFF_LINK2)) == 
(IFF_DEBUG|IFF_LINK2))
 #define        DPRINTF(sc, m, fmt, ...) do {                           \
        if (sc->sc_debug & (m))                                 \
-               printf(fmt, __VA_ARGS__);                       \
+               device_printf(sc->sc_dev, fmt, __VA_ARGS__);            \
 } while (0)
 #define        KEYPRINTF(sc, ix, hk, mac) do {                         \
        if (sc->sc_debug & ATH_DEBUG_KEYCACHE)                  \
_______________________________________________
svn-src-head@freebsd.org mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "svn-src-head-unsubscr...@freebsd.org"

Reply via email to