mirror of https://lore.kernel.org/lkml/
 help / color / mirror / Atom feed
* [PATCH] arch/arm/kernel/hw_breakpoint.c: Convert WARN_ON to WARN
@ 2010-10-30 21:21 Joe Perches
  0 siblings, 0 replies; only message in thread
From: Joe Perches @ 2010-10-30 21:21 UTC (permalink / raw)
  To: Russell King; +Cc: linux-arm-kernel, linux-kernel

Message isn't printed by WARN_ON.

Signed-off-by: Joe Perches <joe@perches.com>
---
 arch/arm/kernel/hw_breakpoint.c |    3 +--
 1 files changed, 1 insertions(+), 2 deletions(-)

diff --git a/arch/arm/kernel/hw_breakpoint.c b/arch/arm/kernel/hw_breakpoint.c
index 54593b0..21e3a4a 100644
--- a/arch/arm/kernel/hw_breakpoint.c
+++ b/arch/arm/kernel/hw_breakpoint.c
@@ -748,8 +748,7 @@ static int hw_breakpoint_pending(unsigned long addr, unsigned int fsr,
 		breakpoint_handler(addr, regs);
 		break;
 	case ARM_ENTRY_ASYNC_WATCHPOINT:
-		WARN_ON("Asynchronous watchpoint exception taken. "
-			"Debugging results may be unreliable");
+		WARN(1, "Asynchronous watchpoint exception taken. Debugging results may be unreliable\n");
 	case ARM_ENTRY_SYNC_WATCHPOINT:
 		watchpoint_handler(addr, regs);
 		break;



^ permalink raw reply	[flat|nested] only message in thread

only message in thread, other threads:[~2010-10-30 21:21 UTC | newest]

Thread overview: (only message) (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2010-10-30 21:21 [PATCH] arch/arm/kernel/hw_breakpoint.c: Convert WARN_ON to WARN Joe Perches

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®