All of lore.kernel.org
 help / color / mirror / Atom feed
From: Arnd Bergmann <arnd@arndb.de>
To: kernel-janitors@vger.kernel.org
Subject: Re: [KJ] is there a kernel standard for assertions?
Date: Sat, 17 Mar 2007 21:55:02 +0000	[thread overview]
Message-ID: <200703172255.02494.arnd@arndb.de> (raw)
In-Reply-To: <Pine.LNX.4.64.0703171550100.8121@CPE00045a9c397f-CM001225dbafb6>

On Saturday 17 March 2007 22:46:39 Robert P. J. Day wrote:
> i'm aware of both of those macros, which is why i'm wondering why so
> many developers insist on inventing their own version of an "assert"
> routine.  given all of the *existing* debugging routines, shouldn't
> inventing your own be discouraged?  is that something that could be
> turned into a KJ project of some kind?

Yes. I guess most of the assert() implementations in the kernel are
older than BUG_ON() and WARN_ON(). Adding new ones is normally
discouraged.

	Arnd <><

_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.linux-foundation.org
https://lists.linux-foundation.org/mailman/listinfo/kernel-janitors

  parent reply	other threads:[~2007-03-17 21:55 UTC|newest]

Thread overview: 8+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2007-03-17 19:51 [KJ] is there a kernel standard for assertions? Robert P. J. Day
2007-03-17 20:39 ` Matthew Wilcox
2007-03-17 21:24 ` Adrian Bunk
2007-03-17 21:46 ` Robert P. J. Day
2007-03-17 21:55 ` Arnd Bergmann [this message]
2007-03-18  3:39 ` Richard Knutsson
2007-03-18  4:38 ` Randy Dunlap
2007-03-18 14:15 ` Richard Knutsson

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=200703172255.02494.arnd@arndb.de \
    --to=arnd@arndb.de \
    --cc=kernel-janitors@vger.kernel.org \
    /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.