From: Jack Stone <jack@hawkeye.stone.uk.eu.org>
To: linux-kernel@vger.kernel.org
Cc: hpa@zytor.com, Ian Kent <raven@themaw.net>
Subject: [PATCH 2/7] Replace DPRINTK with pr_debug in alternative.c
Date: Sat, 09 Jun 2007 09:08:46 +0100 [thread overview]
Message-ID: <466A600E.9020109@hawkeye.stone.uk.eu.org> (raw)
In-Reply-To: <466A5E28.2000707@hawkeye.stone.uk.eu.org>
This patch converts all DPRINTKs in alternative.c to pr_debug
Signed-off-by: Jack Stone <jack@hawkeye.stone.uk.eu.org>
---
--- linux/arch/i386/kernel/alternative.c 2007-06-07 17:25:46.000000000 +0100
+++ linux/arch/i386/kernel/alternative.c 2007-06-07 20:45:52.000000000 +0100
@@ -1,3 +1,4 @@
+#include <linux/kernel.h>
#include <linux/module.h>
#include <linux/sched.h>
#include <linux/spinlock.h>
@@ -41,9 +42,6 @@
__setup("noreplace-paravirt", setup_noreplace_paravirt);
#endif
-#define DPRINTK(fmt, args...) if (debug_alternative) \
- printk(KERN_DEBUG fmt, args)
-
#ifdef GENERIC_NOP1
/* Use inline assembly to define this because the nops are defined
as inline assembly strings in the include files and we cannot
@@ -165,7 +163,7 @@
u8 *instr;
int diff;
- DPRINTK("%s: alt table %p -> %p\n", __FUNCTION__, start, end);
+ pr_debug("%s: alt table %p -> %p\n", __FUNCTION__, start, end);
for (a = start; a < end; a++) {
BUG_ON(a->replacementlen > a->instrlen);
if (!boot_cpu_has(a->cpuid))
@@ -175,7 +173,7 @@
/* vsyscall code is not mapped yet. resolve it manually. */
if (instr >= (u8 *)VSYSCALL_START && instr < (u8*)VSYSCALL_END) {
instr = __va(instr - (u8*)VSYSCALL_START +
(u8*)__pa_symbol(&__vsyscall_0));
- DPRINTK("%s: vsyscall fixup: %p => %p\n",
+ pr_debug("%s: vsyscall fixup: %p => %p\n",
__FUNCTION__, a->instr, instr);
}
#endif
@@ -261,7 +259,7 @@
smp->locks_end = locks_end;
smp->text = text;
smp->text_end = text_end;
- DPRINTK("%s: locks %p -> %p, text %p -> %p, name %s\n",
+ pr_debug("%s: locks %p -> %p, text %p -> %p, name %s\n",
__FUNCTION__, smp->locks, smp->locks_end,
smp->text, smp->text_end, smp->name);
@@ -287,7 +285,7 @@
continue;
list_del(&item->next);
spin_unlock_irqrestore(&smp_alt, flags);
- DPRINTK("%s: %s\n", __FUNCTION__, item->name);
+ pr_debug("%s: %s\n", __FUNCTION__, item->name);
kfree(item);
return;
}
next prev parent reply other threads:[~2007-06-09 8:09 UTC|newest]
Thread overview: 26+ messages / expand[flat|nested] mbox.gz Atom feed top
2007-06-08 22:18 [PATCH 0/7] Cleanup code to replace DPRINTK with pr_debug Jack Stone
2007-06-08 22:20 ` [PATCH 1/7] Add a new debug function to kernel.h Jack Stone
2007-06-08 22:21 ` [PATCH 2/7] Replace DPRINTK with pr_debug in alternative.c Jack Stone
2007-06-08 22:22 ` [PATCH 3/7] Replace DPRINTK with pr_debug in autofs Jack Stone
2007-06-08 22:40 ` H. Peter Anvin
2007-06-08 22:23 ` [PATCH 4/7] Update DPRINTK macro to use pr_debug in autofs4 Jack Stone
2007-06-08 22:24 ` [PATCH 5/7] Replace DPRINTK with pr_debug in ncpfs Jack Stone
2007-06-08 22:25 ` [PATCH 6/7] Add pr_debug_pid to kernel.h Jack Stone
2007-06-08 22:25 ` [PATCH 7/7] Replace DPRINTK with pr_debug_pid in autofs4 Jack Stone
2007-06-09 6:43 ` [PATCH 0/7] Cleanup code to replace DPRINTK with pr_debug Ian Kent
2007-06-09 7:56 ` Jack Stone
2007-06-09 8:00 ` Jack Stone
2007-06-09 8:06 ` [PATCH 1/7] Add a new debug function to kernel.h Jack Stone
2007-06-11 4:34 ` Ian Kent
2007-06-09 8:08 ` Jack Stone [this message]
2007-06-09 18:00 ` [PATCH 2/7] Replace DPRINTK with pr_debug in alternative.c Alexey Dobriyan
2007-06-09 18:05 ` Jack Stone
2007-06-09 8:10 ` [PATCH 3/7] Replace DPRINTK with pr_debug in autofs Jack Stone
2007-06-09 8:12 ` [PATCH 4/7] Update DPRINTK macro to use pr_debug Jack Stone
2007-06-09 8:15 ` [PATCH 5/7] Replace DPRINTK with pr_debug in ncpfs Jack Stone
2007-06-09 8:18 ` [PATCH 6/7] Add pr_debug_pid to kernel.h Jack Stone
2007-06-09 18:03 ` Alexey Dobriyan
2007-06-09 18:04 ` Jack Stone
2007-06-09 8:20 ` [PATCH 7/7] Replace DPRINTK with pr_debug_pid in autofs4 Jack Stone
2007-06-10 17:50 ` [PATCH 0/7] Cleanup code to replace DPRINTK with pr_debug Randy Dunlap
2007-06-10 19:29 ` Jack Stone
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=466A600E.9020109@hawkeye.stone.uk.eu.org \
--to=jack@hawkeye.stone.uk.eu.org \
--cc=hpa@zytor.com \
--cc=linux-kernel@vger.kernel.org \
--cc=raven@themaw.net \
/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 a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox
all inboxes | Powered by JetHome®