diff options
author | Izik Eidus <ieidus@redhat.com> | 2009-11-21 22:42:38 +0200 |
---|---|---|
committer | Yaniv Kamay <ykamay@redhat.com> | 2009-11-23 20:54:11 +0200 |
commit | a70110c4e50aad99de7a844bb78eb868768e7841 (patch) | |
tree | c12cecce588255af581b6a7e3a85c7d4d3f62ed0 /server/red_common.h | |
parent | f20e0d3200c17d3850e4d08ee55edb6c836ae71e (diff) | |
download | spice-a70110c4e50aad99de7a844bb78eb868768e7841.tar.gz spice-a70110c4e50aad99de7a844bb78eb868768e7841.tar.xz spice-a70110c4e50aad99de7a844bb78eb868768e7841.zip |
spice: server: add memslots support.
Signed-off-by: Izik Eidus <ieidus@redhat.com>
Diffstat (limited to 'server/red_common.h')
-rw-r--r-- | server/red_common.h | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/server/red_common.h b/server/red_common.h index b397be51..9d744fbd 100644 --- a/server/red_common.h +++ b/server/red_common.h @@ -38,13 +38,13 @@ #define ALIGN(a, b) (((a) + ((b) - 1)) & ~((b) - 1)) #endif -#define ASSERT(x) if (!(x)) { \ - printf("%s: ASSERT %s failed\n", __FUNCTION__, #x); \ - abort(); \ +#define ASSERT(x) if (!(x)) { \ + printf("%s: ASSERT %s failed\n", __FUNCTION__, #x); \ + abort(); \ } -#define PANIC(str) { \ - printf("%s: panic: %s\n", __FUNCTION__, str); \ +#define PANIC(format, ...) { \ + printf("%s: panic: " format "\n", __FUNCTION__, ## __VA_ARGS__ ); \ abort(); \ } |