svn commit: r220367 - head/sys/dev/ath

Adrian Chadd adrian at FreeBSD.org
Tue Apr 5 16:14:55 UTC 2011


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


More information about the svn-src-all mailing list