Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 3 Nov 2011 11:36:37 -0700
From:      John-Mark Gurney <jmg@funkthat.com>
To:        Adarsh Joshi <adarsh.joshi@qlogic.com>
Cc:        "freebsd-drivers@freebsd.org" <freebsd-drivers@freebsd.org>
Subject:   Re: Is it possible to change the log level of a device driver at runtime?
Message-ID:  <20111103183637.GD25601@funkthat.com>
In-Reply-To: <5E4F49720D0BAD499EE1F01232234BA873C6F1A523@AVEXMB1.qlogic.org>
References:  <5E4F49720D0BAD499EE1F01232234BA873C6F1A523@AVEXMB1.qlogic.org>

next in thread | previous in thread | raw e-mail | index | archive | help
Adarsh Joshi wrote this message on Thu, Nov 03, 2011 at 11:22 -0700:
> Is it possible to change the log level of a device driver at runtime?
> 
> I am trying to understand a network based device driver. It already has a number of print messages which are only printed if the debug flag is 1. Is it possible to toggle the debug flag when the driver is loaded, at runtime with some command?
> 
> A detailed explanation on how to go about this would be very helpful.

Depends upon the driver.  Some drivers allow you to set a sysctl to
change the debug level, others do not.

Which driver are we talking about?  Is it in the tree, or is it a vendor
supplied driver?

-- 
  John-Mark Gurney				Voice: +1 415 225 5579

     "All that I will do, has been done, All that I have, has not."



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?20111103183637.GD25601>