Module Name: src
Committed By: plunky
Date: Wed Mar 16 21:38:54 UTC 2011
Modified Files:
src/sys/dev/bluetooth: btsco.c
Log Message:
use C99 style for variadic macro arguments
To generate a diff of this commit:
cvs rdiff -u -r1.23 -r1.24 src/sys/dev/bluetooth/btsco.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/dev/bluetooth/btsco.c
diff -u src/sys/dev/bluetooth/btsco.c:1.23 src/sys/dev/bluetooth/btsco.c:1.24
--- src/sys/dev/bluetooth/btsco.c:1.23 Tue May 12 12:10:46 2009
+++ src/sys/dev/bluetooth/btsco.c Wed Mar 16 21:38:54 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: btsco.c,v 1.23 2009/05/12 12:10:46 cegger Exp $ */
+/* $NetBSD: btsco.c,v 1.24 2011/03/16 21:38:54 plunky Exp $ */
/*-
* Copyright (c) 2006 Itronix Inc.
@@ -32,7 +32,7 @@
*/
#include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.23 2009/05/12 12:10:46 cegger Exp $");
+__KERNEL_RCSID(0, "$NetBSD: btsco.c,v 1.24 2011/03/16 21:38:54 plunky Exp $");
#include <sys/param.h>
#include <sys/audioio.h>
@@ -66,14 +66,18 @@
#ifdef BTSCO_DEBUG
int btsco_debug = BTSCO_DEBUG;
-#define DPRINTF(fmt, args...) do { \
- if (btsco_debug) \
- printf("%s: "fmt, __func__ , ##args); \
+#define DPRINTF(...) do { \
+ if (btsco_debug) { \
+ printf("%s: ", __func__); \
+ printf(__VA_ARGS__); \
+ } \
} while (/* CONSTCOND */0)
-#define DPRINTFN(n, fmt, args...) do { \
- if (btsco_debug > (n)) \
- printf("%s: "fmt, __func__ , ##args); \
+#define DPRINTFN(n, ...) do { \
+ if (btsco_debug > (n)) { \
+ printf("%s: ", __func__); \
+ printf(__VA_ARGS__); \
+ } \
} while (/* CONSTCOND */0)
#else
#define DPRINTF(...)