conform: Remove getpid() from debug
authorJean-Philippe Andre <jp.andre@samsung.com>
Thu, 1 Dec 2016 01:33:36 +0000 (10:33 +0900)
committerJean-Philippe Andre <jp.andre@samsung.com>
Thu, 1 Dec 2016 01:33:36 +0000 (10:33 +0900)
The PID is already printed out by default with eina_log.

src/lib/elementary/elm_conform.c

index facac03..ac1e6f4 100644 (file)
@@ -165,9 +165,7 @@ _conformant_part_sizing_eval(Evas_Object *obj,
                ("ILLUME_KBD", &sx, &sy, &sw, &sh)) && (xwin))
           {
              //No information of the keyboard geometry, reset the geometry.
-#ifdef __linux__
-             DBG("[KEYPAD]:pid=%d, xwin=0x%x, zone=0x%x: no env value and check window property.", getpid(), xwin, zone);
-#endif
+             DBG("[KEYPAD]:xwin=0x%x, zone=0x%x: no env value and check window property.", xwin, zone);
              if (!ecore_x_e_illume_keyboard_geometry_get(xwin, &sx, &sy, &sw, &sh))
                {
                   DBG("[KEYPAD]:no window property, check zone property.");
@@ -814,15 +812,9 @@ _on_prop_change(void *data,
                 void *event)
 {
    Ecore_X_Event_Window_Property *ev = event;
-
-   int pid = 0;
-
-#ifdef __linux__
-   pid = (int)getpid();
-#endif
-
    Evas_Object *conformant = (Evas_Object *)data;
    ELM_CONFORMANT_DATA_GET(conformant, sd);
+
    if ((ev->atom == ECORE_X_ATOM_NET_WM_STATE) && !sd->win_hidden)
      {
         unsigned int i, num;
@@ -867,7 +859,7 @@ _on_prop_change(void *data,
 
    if (ev->atom == ECORE_X_ATOM_E_ILLUME_ZONE)
      {
-        DBG("pid=%d, win=0x%x, ECORE_X_ATOM_E_ILLUME_ZONE.\n", pid, ev->win);
+        DBG("win=0x%x, ECORE_X_ATOM_E_ILLUME_ZONE.\n", ev->win);
         Conformant_Part_Type part_type;
 
         part_type = (ELM_CONFORMANT_INDICATOR_PART |
@@ -879,32 +871,32 @@ _on_prop_change(void *data,
      }
    else if (ev->atom == ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY)
      {
-        DBG("pid=%d, win=0x%x, ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY.", pid, ev->win);
+        DBG("win=0x%x, ECORE_X_ATOM_E_ILLUME_INDICATOR_GEOMETRY.", ev->win);
         _conformant_part_sizing_eval(data, ELM_CONFORMANT_INDICATOR_PART);
      }
    else if (ev->atom == ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY)
      {
-        DBG("pid=%d, win=0x%x, ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY.", pid, ev->win);
+        DBG("win=0x%x, ECORE_X_ATOM_E_ILLUME_SOFTKEY_GEOMETRY.", ev->win);
         _conformant_part_sizing_eval(data, ELM_CONFORMANT_SOFTKEY_PART);
      }
    else if (ev->atom == ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY)
      {
-        DBG("[KEYPAD]:pid=%d, win=0x%x, ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY.", pid, ev->win);
+        DBG("[KEYPAD]:win=0x%x, ECORE_X_ATOM_E_ILLUME_KEYBOARD_GEOMETRY.", ev->win);
         _conformant_part_sizing_eval(data, ELM_CONFORMANT_VIRTUAL_KEYPAD_PART);
      }
    else if (ev->atom == ECORE_X_ATOM_E_ILLUME_CLIPBOARD_GEOMETRY)
      {
-        DBG("pid=%d, win=0x%x, ECORE_X_ATOM_E_ILLUME_CLIPBOARD_GEOMETRY.", pid, ev->win);
+        DBG("win=0x%x, ECORE_X_ATOM_E_ILLUME_CLIPBOARD_GEOMETRY.", ev->win);
         _conformant_part_sizing_eval(data, ELM_CONFORMANT_CLIPBOARD_PART);
      }
    else if (ev->atom == ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE)
      {
-        DBG("[KEYPAD]:pid=%d, win=0x%x, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE.", pid, ev->win);
+        DBG("[KEYPAD]:win=0x%x, ECORE_X_ATOM_E_VIRTUAL_KEYBOARD_STATE.", ev->win);
         _virtualkeypad_state_change(data, ev);
      }
    else if (ev->atom == ECORE_X_ATOM_E_ILLUME_CLIPBOARD_STATE)
      {
-        DBG("pid=%d, win=0x%x, ECORE_X_ATOM_E_ILLUME_CLIPBOARD_STATE.", pid, ev->win);
+        DBG("win=0x%x, ECORE_X_ATOM_E_ILLUME_CLIPBOARD_STATE.", ev->win);
         _clipboard_state_change(data, ev);
      }