lkml.org 
[lkml]   [2015]   [Nov]   [15]   [last100]   RSS Feed
Views: [wrap][no wrap]   [headers]  [forward] 
 
Messages in this thread
/
Date
From
SubjectRe: [PATCH] wireless: change cfg80211 regulatory domain info as debug messages
On 11/15/15 at 09:38am, Joe Perches wrote:
> On Sun, 2015-11-15 at 15:31 +0800, Dave Young wrote:
> > cfg80211 module prints a lot of messages like below. Actually printing
> > once is acceptable but sometimes it will print again and again, it looks
> > very annoying. It is better to change these detail messages to debugging
> > only.
>
> So maybe add some wrapper that does a pr_info then
> a pr_debug for the second and subsequent uses like:
>
> #define pr_info_once_then_debug(fmt, ...) \
> ({ \
> static bool __print_once __read_mostly; \
> \
> if (!__print_once) { \
> __print_once = true; \
> pr_info(fmt, ##__VA_ARGS__); \
> } else { \
> pr_debug(fmt, ##__VA_ARGS__); \
> } \
> })
>

Hmm, it looks too much for this issue, I'm thinking about to add a cmdline
param to disable mute it.

Thanks
Dave


\
 
 \ /
  Last update: 2015-11-16 03:21    [W:0.070 / U:2.076 seconds]
©2003-2020 Jasper Spaans|hosted at Digital Ocean and TransIP|Read the blog|Advertise on this site