Author: adrian
Date: Tue Apr  5 16:14:54 2011
New Revision: 220367
URL: http://svn.freebsd.org/changeset/base/220367

Log:
  Make the alq log path tunable

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

Modified: head/sys/dev/ath/ah_osdep.c
==============================================================================
--- head/sys/dev/ath/ah_osdep.c Tue Apr  5 16:12:38 2011        (r220366)
+++ head/sys/dev/ath/ah_osdep.c Tue Apr  5 16:14:54 2011        (r220367)
@@ -173,7 +173,11 @@ DO_HALDEBUG(struct ath_hal *ah, u_int ma
 static struct alq *ath_hal_alq;
 static int ath_hal_alq_emitdev;        /* need to emit DEVICE record */
 static u_int ath_hal_alq_lost;         /* count of lost records */
-static const char *ath_hal_logfile = "/tmp/ath_hal.log";
+static char ath_hal_logfile[MAXPATHLEN] = "/tmp/ath_hal.log";
+
+SYSCTL_STRING(_hw_ath_hal, OID_AUTO, alq_logfile, CTLFLAG_RW,
+    &ath_hal_logfile, sizeof(kernelname), "Name of ALQ logfile");
+
 static u_int ath_hal_alq_qsize = 64*1024;
 
 static int
_______________________________________________
[email protected] mailing list
http://lists.freebsd.org/mailman/listinfo/svn-src-head
To unsubscribe, send any mail to "[email protected]"

Reply via email to