Source-Changes-HG archive

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index][Old Index]

[src/trunk]: src/sys/kern Make the DEBUG version compile



details:   https://anonhg.NetBSD.org/src/rev/d7640b400f02
branches:  trunk
changeset: 840355:d7640b400f02
user:      martin <martin%NetBSD.org@localhost>
date:      Thu Apr 04 07:09:55 2019 +0000

description:
Make the DEBUG version compile

diffstat:

 sys/kern/subr_disk.c |  6 +++---
 1 files changed, 3 insertions(+), 3 deletions(-)

diffs (27 lines):

diff -r 54b74b7b3bb8 -r d7640b400f02 sys/kern/subr_disk.c
--- a/sys/kern/subr_disk.c      Thu Apr 04 04:31:01 2019 +0000
+++ b/sys/kern/subr_disk.c      Thu Apr 04 07:09:55 2019 +0000
@@ -1,4 +1,4 @@
-/*     $NetBSD: subr_disk.c,v 1.124 2019/04/03 22:10:52 christos Exp $ */
+/*     $NetBSD: subr_disk.c,v 1.125 2019/04/04 07:09:55 martin Exp $   */
 
 /*-
  * Copyright (c) 1996, 1997, 1999, 2000, 2009 The NetBSD Foundation, Inc.
@@ -67,7 +67,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.124 2019/04/03 22:10:52 christos Exp $");
+__KERNEL_RCSID(0, "$NetBSD: subr_disk.c,v 1.125 2019/04/04 07:09:55 martin Exp $");
 
 #include <sys/param.h>
 #include <sys/kernel.h>
@@ -744,7 +744,7 @@
 #ifndef __HAVE_SETDISKLABEL
 
 #ifdef DEBUG
-#define DPRINTF(a, ...) printf(a, __VA_ARGS__)
+#define DPRINTF(a, ...) printf(a, ##__VA_ARGS__)
 #else
 #define DPRINTF(a, ...) __nothing
 #endif



Home | Main Index | Thread Index | Old Index