break;
}
if (i == type_len) {
- _E("Invalid type (%d)", type);
+ _E("Invalid type(%d).", type);
return;
}
else if (type == 1)
ret = app_control_set_app_id(app_control, GALLERY_APPNAME);
else {
- _E("No matched type(%d)", type);
+ _E("No matched type(%d).", type);
goto out;
}
if (ret != APP_CONTROL_ERROR_NONE) {
- _E("Fail to set app id");
+ _E("Failed to set app id.");
goto out;
}
ret = app_control_send_launch_request(app_control, NULL, NULL);
if (ret != APP_CONTROL_ERROR_NONE)
- _E("Fail to send launch request");
+ _E("Fail to send launch request.");
out:
if (app_control) {
DEVICED_IFACE_USBHOST,
SIGNAL_NAME_UNMOUNT, "s", param);
if (ret < 0)
- _E("FAIL: broadcast_dbus_signal()");
+ _E("Failed to broadcast_dbus_signal().");
memset(removed_path, 0, sizeof(removed_path));
path = (char *)bundle_get_val(b, USB_MOUNT_PATH);
if (!path) {
- _E("Failed to get mount path");
+ _E("Failed to get mount path.");
return -2;
}
- _I("USB storage mount path (%s)", path);
+ _I("USB storage mount path(%s).", path);
snprintf(added_path, sizeof(added_path), "%s", path);
return 0;
}
path = (char *)bundle_get_val(b, USB_MOUNT_PATH);
if (!path) {
- _E("Failed to get mount path");
+ _E("Failed to get mount path.");
return -2;
}
path = (char *)bundle_get_val(b, USB_MOUNT_PATH);
if (!path) {
- _E("Failed to get mount path");
+ _E("Failed to get mount path.");
return -ENOENT;
}