diff options
author | GiWoong Kim <giwoong.kim@samsung.com> | 2015-12-29 12:53:41 +0900 |
---|---|---|
committer | SeokYeon Hwang <syeon.hwang@samsung.com> | 2016-01-04 20:14:35 +0900 |
commit | 8b6b0f7da02dbc81b9aa617fe46a3095b6a40689 (patch) | |
tree | ef8104bc05f4a0f17e17a6ebce3dcb8303b894da /tizen/src/util/error_handler.c | |
parent | 4b5175a6483865bbcdbdc8d9a8e16e805b8af069 (diff) | |
download | qemu-8b6b0f7da02dbc81b9aa617fe46a3095b6a40689.tar.gz qemu-8b6b0f7da02dbc81b9aa617fe46a3095b6a40689.tar.bz2 qemu-8b6b0f7da02dbc81b9aa617fe46a3095b6a40689.zip |
vl.c: improve error handling while display option parsing
Change-Id: I359d40e206815b66cfcc52f5890b4cf74aaf2723
Signed-off-by: GiWoong Kim <giwoong.kim@samsung.com>
Diffstat (limited to 'tizen/src/util/error_handler.c')
-rw-r--r-- | tizen/src/util/error_handler.c | 16 |
1 files changed, 5 insertions, 11 deletions
diff --git a/tizen/src/util/error_handler.c b/tizen/src/util/error_handler.c index 04b2f70dcf..e749c6b9bf 100644 --- a/tizen/src/util/error_handler.c +++ b/tizen/src/util/error_handler.c @@ -302,18 +302,12 @@ static void report(const char *fmt, va_list ap) // We are wating for '\n' if (message[message_len - 1] == '\n') { -#ifdef CONFIG_QT - if (display_type == DT_MARU_QT_ONSCREEN || - display_type == DT_MARU_QT_OFFSCREEN) { - start_qt5_msgbox(CRITICAL_ICON, message); - } -#endif -#ifdef CONFIG_JAVA_UI - if (display_type == DT_MARU_SDL || - display_type == DT_MARU_SHM) { - start_simple_client(message); - } +#if defined(CONFIG_QT) + start_qt5_msgbox(CRITICAL_ICON, message); +#elif defined(CONFIG_JAVA_UI) + start_simple_client(message); #endif + message[0] = '\0'; message_len = 0; } |