[v2] qxl: abort on panic instead of exit

Submitted by Alon Levy on June 24, 2011, 1:02 p.m.

Details

Message ID 1308920577-31569-6-git-send-email-alevy@redhat.com
State New
Headers show

Commit Message

Alon Levy June 24, 2011, 1:02 p.m.
---
 hw/qxl.h |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)

Patch hide | download patch | download mbox

diff --git a/hw/qxl.h b/hw/qxl.h
index 6dd38e6..584f02b 100644
--- a/hw/qxl.h
+++ b/hw/qxl.h
@@ -87,7 +87,7 @@  typedef struct PCIQXLDevice {
 
 #define PANIC_ON(x) if ((x)) {                         \
     printf("%s: PANIC %s failed\n", __FUNCTION__, #x); \
-    exit(-1);                                          \
+    abort();                                          \
 }
 
 #define dprint(_qxl, _level, _fmt, ...)                                 \