From owner-freebsd-questions@FreeBSD.ORG Wed Jan 7 12:54:54 2009 Return-Path: Delivered-To: freebsd-questions@freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2001:4f8:fff6::34]) by hub.freebsd.org (Postfix) with ESMTP id 2FE721065670 for ; Wed, 7 Jan 2009 12:54:54 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: from fg-out-1718.google.com (fg-out-1718.google.com [72.14.220.157]) by mx1.freebsd.org (Postfix) with ESMTP id AC0F28FC08 for ; Wed, 7 Jan 2009 12:54:53 +0000 (UTC) (envelope-from mjguzik@gmail.com) Received: by fg-out-1718.google.com with SMTP id l26so2705752fgb.35 for ; Wed, 07 Jan 2009 04:54:52 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=gamma; h=domainkey-signature:received:received:date:to:cc:subject:message-id :references:mime-version:content-type:content-disposition :in-reply-to:user-agent:from; bh=D0aKMOsg7J9Ux5GVO+bcGeasDYEccnOC7SojGtNE8NI=; b=UrSDzx03FZJ4UkXvAEVDvR7JOTWEplYGHK1PJF8SgnhK/Tlgq06SmgnOLqBnNP/7yb 8YQ3UrS9lix+N2qivWVtKhE9nc2bsU7CVAqbSq2sf7ie5r3SIgYMPfT2C4v5oHWStX6e yduRkh4wmgfFNdRPoM+jDjANiAZ/CPYzkv0EM= DomainKey-Signature: a=rsa-sha1; c=nofws; d=gmail.com; s=gamma; h=date:to:cc:subject:message-id:references:mime-version:content-type :content-disposition:in-reply-to:user-agent:from; b=R+1lLaPKidcG7DhDTeSLkXl9VGvRB1SGizpkpax7w81o+3GcLTL7N8lu7KRUQgkwuX ERSGRqta2Yy8gaUz4bkkDhfWPyoZd4QnWKqXX3DazJ0gLJ43XT7/R7bggP8F3KRpmr7k qu29DUcbrBGNSJNtb6btGcdudkfUe3eH90wJs= Received: by 10.86.91.3 with SMTP id o3mr11955779fgb.35.1231331103518; Wed, 07 Jan 2009 04:25:03 -0800 (PST) Received: from gmail.com (sdferwer192.net.autocom.pl [77.236.1.49]) by mx.google.com with ESMTPS id e11sm25985357fga.12.2009.01.07.04.25.02 (version=TLSv1/SSLv3 cipher=RC4-MD5); Wed, 07 Jan 2009 04:25:03 -0800 (PST) Date: Wed, 7 Jan 2009 13:25:03 +0100 To: Eitan Shefi Message-ID: <20090107122503.GA12470@skucha> References: <5D49E7A8952DC44FB38C38FA0D758EAD0164F6D6@mtlexch01.mtl.com> MIME-Version: 1.0 Content-Type: text/plain; charset=iso-8859-2 Content-Disposition: inline In-Reply-To: <5D49E7A8952DC44FB38C38FA0D758EAD0164F6D6@mtlexch01.mtl.com> User-Agent: Mutt/1.5.18 (2008-05-17) From: Mateusz Guzik Cc: freebsd-hackers@freebsd.org, freebsd-questions@freebsd.org Subject: Re: "/var/log/messages" logs appear in the output of "sysctl -a" X-BeenThere: freebsd-questions@freebsd.org X-Mailman-Version: 2.1.5 Precedence: list List-Id: User questions List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , X-List-Received-Date: Wed, 07 Jan 2009 12:54:54 -0000 On Wed, Jan 07, 2009 at 01:30:20PM +0200, Eitan Shefi wrote: > I am testing a NIC driver. > I found it's logs and "/var/log/messages" logs in the output of "sysctl > -a": > I run "sysctl -a | less", and there I find: > [..] > kern.msgbuf: ound file system checks in 60 seconds. > <118> > mtnic0: FW version:2.6.0 > mtnic0: Board ID: > mtnic0: Using 1 tx rings for port:1 [4096] > mtnic0: Using 4 rx rings for port:1 [1024] > mtnic0: Using 1 tx rings for port:2 [4096] > mtnic0: Using 4 rx rings for port:2 [1024] [..] > > Any idea how can such logs apear in "sysctl -a" ? > kern.msgbuf dumps so called 'message buf' containing messages printed by the kernel (for example by a NIC driver). It's accessible also via /dev/klog and syslogd uses it as a source for /var/log/messages. -- Mateusz Guzik