summaryrefslogtreecommitdiff
path: root/src
diff options
context:
space:
mode:
authorNathan Binkert <binkertn@umich.edu>2007-02-08 20:59:11 -0800
committerNathan Binkert <binkertn@umich.edu>2007-02-08 20:59:11 -0800
commit27c2138882ac54b1ba51583d9fd52ca2303e8fc8 (patch)
treea383381c532c7aacf9d42e1b8ea6d7d906bedc35 /src
parent1f834b569c8a39f44882c2f2010a9f0ecffdaab1 (diff)
downloadgem5-27c2138882ac54b1ba51583d9fd52ca2303e8fc8.tar.xz
Use c99 variadic macros for non gnu compilers
--HG-- extra : convert_revision : 4e9fda42e9f5ed3e9f66e5bd178c45537792073b
Diffstat (limited to 'src')
-rw-r--r--src/base/trace.hh34
1 files changed, 17 insertions, 17 deletions
diff --git a/src/base/trace.hh b/src/base/trace.hh
index 55dd1bd4e..739f7fe03 100644
--- a/src/base/trace.hh
+++ b/src/base/trace.hh
@@ -183,36 +183,36 @@ inline const std::string &name() { return Trace::DefaultName; }
#define DTRACE(x) (Trace::IsOn(Trace::x))
-#define DDUMP(x, data, count) do { \
- if (DTRACE(x)) \
- Trace::dataDump(curTick, name(), data, count); \
+#define DDUMP(x, data, count) do { \
+ if (DTRACE(x)) \
+ Trace::dataDump(curTick, name(), data, count); \
} while (0)
-#define DPRINTF(x, args...) do { \
- if (DTRACE(x)) \
- Trace::dprintf(curTick, name(), args); \
+#define DPRINTF(x, ...) do { \
+ if (DTRACE(x)) \
+ Trace::dprintf(curTick, name(), __VA_ARGS__); \
} while (0)
-#define DPRINTFR(x, args...) do { \
- if (DTRACE(x)) \
- Trace::dprintf((Tick)-1, std::string(), args); \
+#define DPRINTFR(x, ...) do { \
+ if (DTRACE(x)) \
+ Trace::dprintf((Tick)-1, std::string(), __VA_ARGS__); \
} while (0)
-#define DPRINTFN(args...) do { \
- Trace::dprintf(curTick, name(), args); \
+#define DPRINTFN(...) do { \
+ Trace::dprintf(curTick, name(), __VA_ARGS__); \
} while (0)
-#define DPRINTFNR(args...) do { \
- Trace::dprintf((Tick)-1, string(), args); \
+#define DPRINTFNR(...) do { \
+ Trace::dprintf((Tick)-1, string(), __VA_ARGS__); \
} while (0)
#else // !TRACING_ON
#define DTRACE(x) (false)
-#define DPRINTF(x, args...) do {} while (0)
-#define DPRINTFR(args...) do {} while (0)
-#define DPRINTFN(args...) do {} while (0)
-#define DPRINTFNR(args...) do {} while (0)
+#define DPRINTF(x, ...) do {} while (0)
+#define DPRINTFR(...) do {} while (0)
+#define DPRINTFN(...) do {} while (0)
+#define DPRINTFNR(...) do {} while (0)
#define DDUMP(x, data, count) do {} while (0)
#endif // TRACING_ON