Changeset 128962 in webkit
- Timestamp:
- Sep 18, 2012 8:33:36 PM (12 years ago)
- Location:
- trunk/Source/WebKit2
- Files:
-
- 4 edited
Legend:
- Unmodified
- Added
- Removed
-
trunk/Source/WebKit2/ChangeLog
r128960 r128962 1 2012-09-18 Jinwoo Song <jinwoo7.song@samsung.com> 2 3 [EFL][WK2] Add log macros for EINA_LOG_DOM_XXX series 4 https://bugs.webkit.org/show_bug.cgi?id=97061 5 6 Reviewed by Gyuyoung Kim. 7 8 EFL Webkit2 is using the EINA_LOG_DOM_XXX series in several places to log a message on the specified domain and format. 9 This patch adds log macros to simplify these logging codes. 10 11 * UIProcess/API/efl/ewk_main.cpp: 12 (ewk_init): 13 * UIProcess/API/efl/ewk_private.h: 14 * UIProcess/API/efl/ewk_view.cpp: 15 (ewk_view_webprocess_crashed): 16 1 17 2012-09-17 Martin Robinson <mrobinson@igalia.com> 2 18 -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_main.cpp
r123587 r128962 23 23 #include "ewk_main.h" 24 24 25 #include "ewk_private.h" 25 26 #include <Ecore.h> 26 27 #include <Ecore_Evas.h> … … 54 55 55 56 if (!evas_init()) { 56 EINA_LOG_DOM_CRIT(_ewk_log_dom,"could not init evas.");57 CRITICAL("could not init evas."); 57 58 goto error_evas; 58 59 } 59 60 60 61 if (!ecore_init()) { 61 EINA_LOG_DOM_CRIT(_ewk_log_dom,"could not init ecore.");62 CRITICAL("could not init ecore."); 62 63 goto error_ecore; 63 64 } 64 65 65 66 if (!ecore_evas_init()) { 66 EINA_LOG_DOM_CRIT(_ewk_log_dom,"could not init ecore_evas.");67 CRITICAL("could not init ecore_evas."); 67 68 goto error_ecore_evas; 68 69 } … … 71 72 72 73 if (!ecore_main_loop_glib_integrate()) { 73 EINA_LOG_DOM_WARN(_ewk_log_dom,"Ecore was not compiled with GLib support, some plugins will not "74 WRN("Ecore was not compiled with GLib support, some plugins will not " 74 75 "work (ie: Adobe Flash)"); 75 76 } -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_private.h
r128690 r128962 34 34 extern int _ewk_log_dom; 35 35 36 #define CRITICAL(...) EINA_LOG_DOM_CRIT(_ewk_log_dom, __VA_ARGS__) 37 #define ERR(...) EINA_LOG_DOM_ERR(_ewk_log_dom, __VA_ARGS__) 38 #define WRN(...) EINA_LOG_DOM_WARN(_ewk_log_dom, __VA_ARGS__) 39 #define INF(...) EINA_LOG_DOM_INFO(_ewk_log_dom, __VA_ARGS__) 40 #define DBG(...) EINA_LOG_DOM_DBG(_ewk_log_dom, __VA_ARGS__) 41 36 42 #endif // ewk_private_h -
trunk/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp
r128883 r128962 1644 1644 if (!handled) { 1645 1645 CString url = priv->pageProxy->urlAtProcessExit().utf8(); 1646 EINA_LOG_DOM_WARN(_ewk_log_dom,"WARNING: The web process experienced a crash on '%s'.\n", url.data());1646 WRN("WARNING: The web process experienced a crash on '%s'.\n", url.data()); 1647 1647 1648 1648 // Display an error page
Note: See TracChangeset
for help on using the changeset viewer.