Permalink
Browse files

e1000e - Replace GNU style named variadic macros with the standard st…

…yle (clears -Wvariadic-macros warnings)
  • Loading branch information...
Mick Foley
Mick Foley committed Apr 23, 2018
1 parent a4be0ea commit 2b4166708ee6ce244b1dab3ebbe5a3a2f3fd9451
Showing with 2 additions and 4 deletions.
  1. +2 −4 src/pci_e82545.c
View
@@ -50,8 +50,6 @@
#include <dispatch/dispatch.h>
#include <vmnet/vmnet.h>
#pragma clang diagnostic ignored "-Wvariadic-macros"
#include <xhyve/xhyve.h>
#include <xhyve/support/misc.h>
@@ -233,8 +231,8 @@ struct ck_info {
* Debug printf
*/
static int e82545_debug = 0;
#define DPRINTF(msg,params...) if (e82545_debug) fprintf(stderr, "e82545: " msg, params)
#define WPRINTF(msg,params...) fprintf(stderr, "e82545: " msg, params)
#define DPRINTF(msg,...) if (e82545_debug) fprintf(stderr, "e82545: " msg, __VA_ARGS__)
#define WPRINTF(msg,...) fprintf(stderr, "e82545: " msg, __VA_ARGS__)
#define MIN(a,b) (((a)<(b))?(a):(b))
#define MAX(a,b) (((a)>(b))?(a):(b))

0 comments on commit 2b41667

Please sign in to comment.