From owner-svn-src-head@FreeBSD.ORG Tue Apr 5 16:14:55 2011 Return-Path: Delivered-To: svn-src-head@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2F077106564A; Tue, 5 Apr 2011 16:14:55 +0000 (UTC) (envelope-from adrian@FreeBSD.org) Received: from svn.freebsd.org (svn.freebsd.org [IPv6:2001:4f8:fff6::2c]) by mx1.freebsd.org (Postfix) with ESMTP id 1F6CE8FC20; Tue, 5 Apr 2011 16:14:55 +0000 (UTC) Received: from svn.freebsd.org (localhost [127.0.0.1]) by svn.freebsd.org (8.14.3/8.14.3) with ESMTP id p35GEtri023563; Tue, 5 Apr 2011 16:14:55 GMT (envelope-from adrian@svn.freebsd.org) Received: (from adrian@localhost) by svn.freebsd.org (8.14.3/8.14.3/Submit) id p35GEton023561; Tue, 5 Apr 2011 16:14:55 GMT (envelope-from adrian@svn.freebsd.org) Message-Id: <201104051614.p35GEton023561@svn.freebsd.org> From: Adrian Chadd Date: Tue, 5 Apr 2011 16:14:54 +0000 (UTC) To: src-committers@freebsd.org, svn-src-all@freebsd.org, svn-src-head@freebsd.org X-SVN-Group: head MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Cc: Subject: svn commit: r220367 - head/sys/dev/ath X-BeenThere: svn-src-head@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: SVN commit messages for the src tree for head/-current List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Tue, 05 Apr 2011 16:14:55 -0000 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