All of lore.kernel.org
 help / color / mirror / Atom feed
From: Andrew Morton <akpm@zip.com.au>
To: Marcelo Tosatti <marcelo@conectiva.com.br>
Cc: lkml <linux-kernel@vger.kernel.org>
Subject: [patch] add __LINE__ to out_of_line_bug()
Date: Tue, 16 Apr 2002 02:08:52 -0700	[thread overview]
Message-ID: <3CBBEA24.23A6ACFF@zip.com.au> (raw)


--- 2.4.19-pre6/include/linux/kernel.h~oolb	Thu Apr 11 21:43:09 2002
+++ 2.4.19-pre6-akpm/include/linux/kernel.h	Thu Apr 11 21:44:26 2002
@@ -162,7 +162,8 @@ extern const char *print_tainted(void);
 #define max_t(type,x,y) \
 	({ type __x = (x); type __y = (y); __x > __y ? __x: __y; })
 
-extern void out_of_line_bug(void) ATTRIB_NORET;
+extern void __out_of_line_bug(int line) ATTRIB_NORET;
+#define out_of_line_bug() __out_of_line_bug(__LINE__)
 
 #endif /* __KERNEL__ */
 
--- 2.4.19-pre6/kernel/panic.c~oolb	Thu Apr 11 21:44:37 2002
+++ 2.4.19-pre6-akpm/kernel/panic.c	Thu Apr 11 21:45:59 2002
@@ -134,8 +134,10 @@ int tainted = 0;
  * tells us what we want to know.
  */
 
-void out_of_line_bug(void)
+void __out_of_line_bug(int line)
 {
+	printk("kernel BUG in header file at line %d\n", line);
+
 	BUG();
 
 	/* Satisfy __attribute__((noreturn)) */
--- 2.4.19-pre6/kernel/ksyms.c~oolb	Thu Apr 11 21:46:03 2002
+++ 2.4.19-pre6-akpm/kernel/ksyms.c	Thu Apr 11 21:46:10 2002
@@ -454,7 +454,7 @@ EXPORT_SYMBOL(nr_running);
 
 /* misc */
 EXPORT_SYMBOL(panic);
-EXPORT_SYMBOL(out_of_line_bug);
+EXPORT_SYMBOL(__out_of_line_bug);
 EXPORT_SYMBOL(sprintf);
 EXPORT_SYMBOL(snprintf);
 EXPORT_SYMBOL(sscanf);

                 reply	other threads:[~2002-04-16  9:09 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=3CBBEA24.23A6ACFF@zip.com.au \
    --to=akpm@zip.com.au \
    --cc=linux-kernel@vger.kernel.org \
    --cc=marcelo@conectiva.com.br \
    /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.