summaryrefslogtreecommitdiffstats
path: root/common/spice_common.h
diff options
context:
space:
mode:
authorChristophe Fergeau <cfergeau@redhat.com>2011-04-22 16:39:29 +0200
committerChristophe Fergeau <cfergeau@redhat.com>2011-05-03 14:44:11 +0200
commit2a611d9955546dc52be37651e6f7b6f7f03c7aa4 (patch)
treef3bfb731ffadbec59f32943029b4957022beb66c /common/spice_common.h
parentedfe2683583d7a849661cc08dc1964a5c925dff2 (diff)
downloadspice-2a611d9955546dc52be37651e6f7b6f7f03c7aa4.tar.gz
spice-2a611d9955546dc52be37651e6f7b6f7f03c7aa4.tar.xz
spice-2a611d9955546dc52be37651e6f7b6f7f03c7aa4.zip
move WARN and WARN_ONCE to spice_common.h
Diffstat (limited to 'common/spice_common.h')
-rw-r--r--common/spice_common.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/common/spice_common.h b/common/spice_common.h
index 430c8aff..ed286892 100644
--- a/common/spice_common.h
+++ b/common/spice_common.h
@@ -53,6 +53,8 @@
printf("%s: " format "\n", __FUNCTION__, ## __VA_ARGS__ ); \
} \
}
+#define WARN(format, ...) red_printf("warning: "format"\n", ##__VA_ARGS__ );
+#define WARN_ONCE red_printf_once
#define red_printf_some(every, format, ...) { \
static int count = 0; \