From mboxrd@z Thu Jan 1 00:00:00 1970 From: "Bryn M. Reeves" Subject: Re: [PATCH] dm-core-add-ratelimit-printing.patch Date: Thu, 05 Apr 2007 17:59:49 +0100 Message-ID: <46152B05.2050008@redhat.com> References: <1175791012.24640.6.camel@hydrogen.msp.redhat.com> Reply-To: device-mapper development Mime-Version: 1.0 Content-Type: text/plain; charset=ISO-8859-1 Content-Transfer-Encoding: 7bit Return-path: In-Reply-To: <1175791012.24640.6.camel@hydrogen.msp.redhat.com> List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Sender: dm-devel-bounces@redhat.com Errors-To: dm-devel-bounces@redhat.com To: device-mapper development List-Id: dm-devel.ids -----BEGIN PGP SIGNED MESSAGE----- Hash: SHA1 Jonathan Brassow wrote: > #define DMINFO(f, arg...) printk(KERN_INFO DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) > +#define DMINFO_LIMIT(f, arg...) \ > + if (printk_ratelimit()) \ > + printk(KERN_INFO DM_NAME ": " DM_MSG_PREFIX ": " f "\n", ## arg) > #ifdef CONFIG_DM_DEBUG > # define DMDEBUG(f, arg...) printk(KERN_DEBUG DM_NAME ": " DM_MSG_PREFIX " DEBUG: " f "\n", ## arg) > #else > Cool! Can we get one for DMDEBUG too? There are some uses of DMDEBUG messages where it'd be really nice to have a rate limited version of the macro. Regards, Bryn. -----BEGIN PGP SIGNATURE----- Version: GnuPG v1.4.7 (GNU/Linux) Comment: Using GnuPG with Fedora - http://enigmail.mozdev.org iD8DBQFGFSsF6YSQoMYUY94RAouZAJ9kuBSCfJalAnION286Ne/7hrOU7QCgnWJV Awno4+Q38pWdPH3/d7oaNrk= =L2hN -----END PGP SIGNATURE-----