[Spice-devel] [PATCH 09/12] common: use PANIC from spice_common.h

Christophe Fergeau cfergeau at redhat.com
Fri Apr 22 09:43:07 PDT 2011


---
 common/canvas_base.c  |    7 -------
 common/ogl_ctx.c      |    6 ------
 common/pixman_utils.c |    7 -------
 3 files changed, 0 insertions(+), 20 deletions(-)

diff --git a/common/canvas_base.c b/common/canvas_base.c
index a8db367..d11c8ec 100644
--- a/common/canvas_base.c
+++ b/common/canvas_base.c
@@ -54,13 +54,6 @@
 #define WARN(x) printf("warning: %s\n", x)
 #endif
 
-#ifndef PANIC
-#define PANIC(str) {                                \
-    printf("%s: panic: %s", __FUNCTION__, str);     \
-    abort();                                        \
-}
-#endif
-
 #ifndef DBG
 #define DBG(level, format, ...) printf("%s: debug: " format "\n", __FUNCTION__, ## __VA_ARGS__);
 #endif
diff --git a/common/ogl_ctx.c b/common/ogl_ctx.c
index 072a0c0..76a3551 100644
--- a/common/ogl_ctx.c
+++ b/common/ogl_ctx.c
@@ -26,12 +26,6 @@
 
 #include "ogl_ctx.h"
 
-
-#define PANIC(str) {                                \
-    printf("%s: panic: %s", __FUNCTION__, str);     \
-    abort();                                        \
-}
-
 enum {
     OGLCTX_TYPE_PBUF,
     OGLCTX_TYPE_PIXMAP,
diff --git a/common/pixman_utils.c b/common/pixman_utils.c
index 99a3005..9f3f1de 100644
--- a/common/pixman_utils.c
+++ b/common/pixman_utils.c
@@ -28,13 +28,6 @@
 #include <stdio.h>
 #include "mem.h"
 
-#ifndef PANIC
-#define PANIC(str) {                                \
-    printf("%s: panic: %s", __FUNCTION__, str);     \
-    abort();                                        \
-}
-#endif
-
 #define SOLID_RASTER_OP(_name, _size, _type, _equation)  \
 static void                                        \
 solid_rop_ ## _name ## _ ## _size (_type *ptr, int len, _type src)  \
-- 
1.7.4.4



More information about the Spice-devel mailing list