diff options
author | Christophe Fergeau <cfergeau@redhat.com> | 2011-04-22 16:39:29 +0200 |
---|---|---|
committer | Christophe Fergeau <cfergeau@redhat.com> | 2011-05-03 14:44:11 +0200 |
commit | 2a611d9955546dc52be37651e6f7b6f7f03c7aa4 (patch) | |
tree | f3bfb731ffadbec59f32943029b4957022beb66c /common/spice_common.h | |
parent | edfe2683583d7a849661cc08dc1964a5c925dff2 (diff) | |
download | spice-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.h | 2 |
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; \ |