All of lore.kernel.org
 help / color / mirror / Atom feed
From: "Bryn M. Reeves" <breeves@redhat.com>
To: device-mapper development <dm-devel@redhat.com>
Subject: Re: [PATCH] dm-core-add-ratelimit-printing.patch
Date: Thu, 05 Apr 2007 17:59:49 +0100	[thread overview]
Message-ID: <46152B05.2050008@redhat.com> (raw)
In-Reply-To: <1175791012.24640.6.camel@hydrogen.msp.redhat.com>

-----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-----

  reply	other threads:[~2007-04-05 16:59 UTC|newest]

Thread overview: 4+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-04-05 16:36 [PATCH] dm-core-add-ratelimit-printing.patch Jonathan Brassow
2007-04-05 16:59 ` Bryn M. Reeves [this message]
2007-04-09 17:23 ` Olaf Kirch
2007-04-10  5:17   ` Jonathan Brassow

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=46152B05.2050008@redhat.com \
    --to=breeves@redhat.com \
    --cc=dm-devel@redhat.com \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.