Changeset 128962 in webkit


Ignore:
Timestamp:
Sep 18, 2012 8:33:36 PM (12 years ago)
Author:
commit-queue@webkit.org
Message:

[EFL][WK2] Add log macros for EINA_LOG_DOM_XXX series
https://bugs.webkit.org/show_bug.cgi?id=97061

Patch by Jinwoo Song <jinwoo7.song@samsung.com> on 2012-09-18
Reviewed by Gyuyoung Kim.

EFL Webkit2 is using the EINA_LOG_DOM_XXX series in several places to log a message on the specified domain and format.
This patch adds log macros to simplify these logging codes.

  • UIProcess/API/efl/ewk_main.cpp:

(ewk_init):

  • UIProcess/API/efl/ewk_private.h:
  • UIProcess/API/efl/ewk_view.cpp:

(ewk_view_webprocess_crashed):

Location:
trunk/Source/WebKit2
Files:
4 edited

Legend:

Unmodified
Added
Removed
  • trunk/Source/WebKit2/ChangeLog

    r128960 r128962  
     12012-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
    1172012-09-17  Martin Robinson  <mrobinson@igalia.com>
    218
  • trunk/Source/WebKit2/UIProcess/API/efl/ewk_main.cpp

    r123587 r128962  
    2323#include "ewk_main.h"
    2424
     25#include "ewk_private.h"
    2526#include <Ecore.h>
    2627#include <Ecore_Evas.h>
     
    5455
    5556    if (!evas_init()) {
    56         EINA_LOG_DOM_CRIT(_ewk_log_dom, "could not init evas.");
     57        CRITICAL("could not init evas.");
    5758        goto error_evas;
    5859    }
    5960
    6061    if (!ecore_init()) {
    61         EINA_LOG_DOM_CRIT(_ewk_log_dom, "could not init ecore.");
     62        CRITICAL("could not init ecore.");
    6263        goto error_ecore;
    6364    }
    6465
    6566    if (!ecore_evas_init()) {
    66         EINA_LOG_DOM_CRIT(_ewk_log_dom, "could not init ecore_evas.");
     67        CRITICAL("could not init ecore_evas.");
    6768        goto error_ecore_evas;
    6869    }
     
    7172
    7273    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 "
    7475            "work (ie: Adobe Flash)");
    7576    }
  • trunk/Source/WebKit2/UIProcess/API/efl/ewk_private.h

    r128690 r128962  
    3434extern int _ewk_log_dom;
    3535
     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
    3642#endif // ewk_private_h
  • trunk/Source/WebKit2/UIProcess/API/efl/ewk_view.cpp

    r128883 r128962  
    16441644    if (!handled) {
    16451645        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());
    16471647
    16481648        // Display an error page
Note: See TracChangeset for help on using the changeset viewer.