Re: [PATCH -v3.2 1/2] ratelimit: Extend to print suppressed messages on release

2016-07-06 Thread Borislav Petkov
On Wed, Jul 06, 2016 at 09:17:52PM -0400, Steven Rostedt wrote: > Hmm, should this clear the missed flag? Especially since it isn't > cleared below. The expectation is that after you call exit on something, you don't need it anymore. But I know exactly why you're asking for this so I'll do the cha

Re: [PATCH -v3.2 1/2] ratelimit: Extend to print suppressed messages on release

2016-07-06 Thread Steven Rostedt
On Wed, 6 Jul 2016 16:59:29 +0200 Borislav Petkov wrote: > +static inline void ratelimit_state_exit(struct ratelimit_state *rs) > +{ > + if (!(rs->flags & RATELIMIT_MSG_ON_RELEASE)) > + return; > + > + if (rs->missed) > + printk(KERN_WARNING "%s: %d output lines su

[PATCH -v3.2 1/2] ratelimit: Extend to print suppressed messages on release

2016-07-06 Thread Borislav Petkov
hanks dude! --- From: Borislav Petkov Date: Tue, 14 Jun 2016 11:51:04 +0200 Subject: [PATCH -v3.2 1/2] ratelimit: Extend to print suppressed messages on release MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Extend the ratelimiting facility to print the