Module Name: src
Committed By: plunky
Date: Wed Mar 16 21:35:30 UTC 2011
Modified Files:
src/sys/netbt: bluetooth.h
Log Message:
use C99 style for variadic macro arguments
To generate a diff of this commit:
cvs rdiff -u -r1.9 -r1.10 src/sys/netbt/bluetooth.h
Please note that diffs are not public domain; they are subject to the
copyright notices on the relevant files.
Modified files:
Index: src/sys/netbt/bluetooth.h
diff -u src/sys/netbt/bluetooth.h:1.9 src/sys/netbt/bluetooth.h:1.10
--- src/sys/netbt/bluetooth.h:1.9 Fri Mar 26 18:15:15 2010
+++ src/sys/netbt/bluetooth.h Wed Mar 16 21:35:30 2011
@@ -1,4 +1,4 @@
-/* $NetBSD: bluetooth.h,v 1.9 2010/03/26 18:15:15 pooka Exp $ */
+/* $NetBSD: bluetooth.h,v 1.10 2011/03/16 21:35:30 plunky Exp $ */
/*-
* Copyright (c) 2005 Iain Hibbert.
@@ -124,14 +124,18 @@
*/
#ifdef BLUETOOTH_DEBUG
extern int bluetooth_debug;
-# define DPRINTF(fmt, args...) do { \
- if (bluetooth_debug) \
- printf("%s: "fmt, __func__ , ##args); \
+# define DPRINTF(...) do { \
+ if (bluetooth_debug) { \
+ printf("%s: ", __func__); \
+ printf(__VA_ARGS__); \
+ } \
} while (/* CONSTCOND */0)
-# define DPRINTFN(n, fmt, args...) do { \
- if (bluetooth_debug > (n)) \
- printf("%s: "fmt, __func__ , ##args); \
+# define DPRINTFN(n, ...) do { \
+ if (bluetooth_debug > (n)) { \
+ printf("%s: ", __func__); \
+ printf(__VA_ARGS__); \
+ } \
} while (/* CONSTCOND */0)
# define UNKNOWN(value) \