Apply consistent log messages.
[platform/core/system/system-popup.git] / src / power / power.c
old mode 100755 (executable)
new mode 100644 (file)
index 7bdd2ac..20e3231
@@ -60,7 +60,7 @@ static void send_result(int result)
                        METHOD_LOCK_TIMEOUT_INPUT,
                        "si", param);
        if (ret < 0)
-               _E("Failed to deliver the result (%d)", ret);
+               _E("Failed to deliver the result: %d", ret);
 }
 
 static int power_lock_expired_get_content(const struct popup_ops *ops, char *content, unsigned int len)
@@ -75,19 +75,19 @@ static int power_lock_expired_get_content(const struct popup_ops *ops, char *con
 
        ret = get_object_by_ops(ops, &obj);
        if (ret < 0) {
-               _E("Failed to get object (%d)", ret);
+               _E("Failed to get object: %d", ret);
                return -ENOENT;
        }
 
        pid_str = (char *)bundle_get_val(obj->b, APP_PID);
        if (!pid_str) {
-               _E("Failed to get app pid");
+               _E("Failed to get app pid.");
                return -ENOENT;
        }
 
        request_id = (char *)bundle_get_val(obj->b, REQ_ID);
        if (!request_id) {
-               _E("Failed to get request id");
+               _E("Failed to get request id.");
                return -ENOENT;
        }
 
@@ -96,7 +96,7 @@ static int power_lock_expired_get_content(const struct popup_ops *ops, char *con
        if (ret != APP_MANAGER_ERROR_NONE) {
                name = (char *)bundle_get_val(obj->b, APP_COMM);
                if (!name) {
-                       _E("Failed to get app command");
+                       _E("Failed to get app command.");
                return -ENOENT;
        }
        }
@@ -111,7 +111,7 @@ static int power_lock_expired_get_content(const struct popup_ops *ops, char *con
 
 static void power_lock_expired_allow_app(const struct popup_ops *ops)
 {
-       _I("Allow is selected");
+       _I("Allow is selected.");
 
        unload_simple_popup(ops);
 
@@ -122,7 +122,7 @@ static void power_lock_expired_allow_app(const struct popup_ops *ops)
 
 static void power_lock_expired_close_app(const struct popup_ops *ops)
 {
-       _I("Close is selected");
+       _I("Close is selected.");
 
        unload_simple_popup(ops);
 
@@ -139,6 +139,7 @@ static void power_lock_expired_terminate(const struct popup_ops *ops)
 
 static const struct popup_ops power_lock_expired_ops = {
        .name                   = "power_lock_expired",
+       .pattern                = FEEDBACK_PATTERN_LOWBATT,
        .show                   = load_simple_popup,
        .get_content    = power_lock_expired_get_content,
        .left_text              = "IDS_COM_SK_CANCEL",