Module Name:    src
Committed By:   knakahara
Date:           Tue Apr 18 11:44:38 UTC 2017

Modified Files:
        src/sys/arch/x86/x86: intr.c

Log Message:
use DPRINTF instead of #define INTRDEBUG and printf().


To generate a diff of this commit:
cvs rdiff -u -r1.97 -r1.98 src/sys/arch/x86/x86/intr.c

Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.

Modified files:

Index: src/sys/arch/x86/x86/intr.c
diff -u src/sys/arch/x86/x86/intr.c:1.97 src/sys/arch/x86/x86/intr.c:1.98
--- src/sys/arch/x86/x86/intr.c:1.97	Sun Mar 19 22:19:05 2017
+++ src/sys/arch/x86/x86/intr.c	Tue Apr 18 11:44:37 2017
@@ -1,4 +1,4 @@
-/*	$NetBSD: intr.c,v 1.97 2017/03/19 22:19:05 riastradh Exp $	*/
+/*	$NetBSD: intr.c,v 1.98 2017/04/18 11:44:37 knakahara Exp $	*/
 
 /*-
  * Copyright (c) 2007, 2008, 2009 The NetBSD Foundation, Inc.
@@ -133,7 +133,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.97 2017/03/19 22:19:05 riastradh Exp $");
+__KERNEL_RCSID(0, "$NetBSD: intr.c,v 1.98 2017/04/18 11:44:37 knakahara Exp $");
 
 #include "opt_intrdebug.h"
 #include "opt_multiprocessor.h"
@@ -1081,12 +1081,10 @@ intr_establish_xname(int legacy_irq, str
 	(*pic->pic_hwunmask)(pic, pin);
 	mutex_exit(&cpu_lock);
 
-#ifdef INTRDEBUG
-	printf("allocated pic %s type %s pin %d level %d to %s slot %d "
+	DPRINTF(("allocated pic %s type %s pin %d level %d to %s slot %d "
 	    "idt entry %d\n",
 	    pic->pic_name, type == IST_EDGE ? "edge" : "level", pin, level,
-	    device_xname(ci->ci_dev), slot, idt_vec);
-#endif
+	    device_xname(ci->ci_dev), slot, idt_vec));
 
 	return (ih);
 }
@@ -1168,11 +1166,9 @@ intr_disestablish_xcall(void *arg1, void
 	/* If the source is free we can drop it now. */
 	intr_source_free(ci, ih->ih_slot, pic, idtvec);
 
-#ifdef INTRDEBUG
-	printf("%s: remove slot %d (pic %s pin %d vec %d)\n",
+	DPRINTF(("%s: remove slot %d (pic %s pin %d vec %d)\n",
 	    device_xname(ci->ci_dev), ih->ih_slot, pic->pic_name,
-	    ih->ih_pin, idtvec);
-#endif
+	    ih->ih_pin, idtvec));
 }
 
 static int

Reply via email to