login
Login
/
Register
Search
Forums
News
Blogs
Features
Site
Home
»
Mailing list archives
»
linux-kernel
»
2008
»
August
»
14
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
view
thread
!MAILaRCHIVE_VOTE_RePLACE
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
[view in full thread]
From:
Jason Baron <jbaron@...>
To: Greg KH <greg@...>
Cc: Randy Dunlap <randy.dunlap@...>, <linux-kernel@...>, <akpm@...>, <joe@...>, <nick@...>
Subject:
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
Date: Thursday, August 14, 2008 - 5:05 pm
On Thu, Aug 14, 2008 at 07:53:48AM -0700, Greg KH wrote:
quoted text
> Also, would it make sense to add a patch like the one below to this > code? It might be nice to know when each module's debugging value is > manually changed by the user for the log files. > > If you like it, I can merge it in the main patch. > > thanks, > > greg k-h > > --- > lib/dynamic_printk.c | 6 ++++++ > 1 file changed, 6 insertions(+) > > --- a/lib/dynamic_printk.c > +++ b/lib/dynamic_printk.c > @@ -288,6 +288,9 @@ static ssize_t pr_debug_write(struct fil > num_enabled++; > dynamic_enabled = DYNAMIC_ENABLED_SOME; > err = 0; > + printk(KERN_DEBUG > + "debugging enabled for module %s", > + elem->name); > } else if (!value && (elem->enable == 1)) { > elem->enable = 0; > num_enabled--; > @@ -304,6 +307,9 @@ static ssize_t pr_debug_write(struct fil > dynamic_enabled = > DYNAMIC_ENABLED_NONE; > err = 0; > + printk(KERN_DEBUG > + "debugging disabled for module " > + "%s", elem->name); > } > } > }
looks good. we might also want to add a message for the cases where are the modules are enabled/disabled too. thanks, -Jason --
unsubscribe notice
To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to
majordomo@vger.kernel.org
More majordomo info at
http://vger.kernel.org/majordomo-info.html
Please read the FAQ at
http://www.tux.org/lkml/
Previous message: [
thread
] [
date
] [
author
]
Next message: [
thread
] [
date
] [
author
]
Messages in current thread:
[PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Tue Jul 15, 5:31 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Rusty Russell
, (Mon Sep 15, 8:03 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Thu Jul 17, 3:01 am)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Thu Jul 17, 5:20 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Thu Jul 17, 6:32 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Fri Aug 8, 5:51 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Randy Dunlap
, (Fri Aug 8, 10:38 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Mon Aug 11, 1:36 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Mon Aug 11, 6:33 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Tue Aug 12, 3:48 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Tue Aug 12, 4:09 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Tue Aug 12, 4:46 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Thu Aug 14, 10:53 am)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Thu Aug 14, 5:05 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Tue Aug 12, 9:08 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Wed Aug 13, 3:05 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Andrew Morton
, (Tue Aug 12, 9:16 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Tue Aug 12, 11:38 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Sam Ravnborg
, (Wed Aug 13, 4:00 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Wed Aug 13, 7:54 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Wed Aug 13, 9:25 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
,
, (Wed Aug 13, 6:49 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Fri Aug 8, 9:07 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Mon Aug 11, 10:12 am)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Mon Aug 11, 12:45 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Jason Baron
, (Fri Jul 18, 10:39 am)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Dominik Brodowski
, (Thu Jul 17, 6:56 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Greg KH
, (Thu Jul 17, 7:35 pm)
Re: [PATCH 1/7] dynamic debug v2 - infrastructure
, Dominik Brodowski
, (Fri Jul 18, 2:37 am)
Navigation
Create content
Mailing list archives
Recent posts
Popular discussions
linux-kernel
:
Ian Campbell
Re: [PATCH] x86: Construct 32 bit boot time page tables in native format.
Greg Kroah-Hartman
[PATCH 001/196] Chinese: Add the known_regression URI to the HOWTO
Justin Piszcz
Linux Software RAID 5 Performance Optimizations: 2.6.19.1: (211MB/s read & 195...
Alan
Re: [RFC] Heads up on sys_fallocate()
netbsd-tech-kern
:
Matthias Scheler
Re: HEADS UP: timecounters (branch simonb-timecounters) merged into -current
David Laight
long usernames
Quentin Garnier
Re: Understanding foo_open, foo_read, etc.
Jared D. McNeill
Breaking binary compatibility for /dev/joy
git
:
linux-netdev
:
Jarek Poplawski
[PATCH] pkt_sched: Destroy gen estimators under rtnl_lock().
Gerrit Renker
[PATCH 0/37] dccp: Feature negotiation - last call for comments
David Miller
[GIT]: Networking
Natalie Protasevich
[BUG] New Kernel Bugs
Colocation donated by:
Who's online
There are currently
1 user
and
872 guests
online.
Online users
strcmp
Syndicate