input.value = libinput_event_keyboard_get_key_state(k);
fd = libinput_get_fd(li);
- _D("time %d.%d type %d code %d value %d fd %d",
+ _D("time %ld.%06ld type %d code %d value %d fd %d",
input.time.tv_sec, input.time.tv_usec, input.type,
input.code, input.value, fd);
input.value = libinput_event_keyboard_get_key_state(k);
fd = libinput_get_fd(li);
- _D("time %d.%d type %d code %d value %d fd %d",
+ _D("time %ld.%06ld type %d code %d value %d fd %d",
input.time.tv_sec, input.time.tv_usec, input.type,
input.code, input.value, fd);
input.value = libinput_event_keyboard_get_key_state(k);
fd = libinput_get_fd(li);
- _D("time %d.%d type %d code %d value %d fd %d",
+ _D("time %ld.%06ld type %d code %d value %d fd %d",
input.time.tv_sec, input.time.tv_usec, input.type,
input.code, input.value, fd);
input.value = libinput_event_keyboard_get_key_state(k);
fd = libinput_get_fd(li);
- _D("time %d.%d type %d code %d value %d fd %d",
+ _D("time %ld.%06ld type %d code %d value %d fd %d",
input.time.tv_sec, input.time.tv_usec, input.type,
input.code, input.value, fd);
{
struct lowbat_process_entry *scenario;
- _D("%d %d, %x", old, now, func);
+ _D("%d %d, %p", old, now, func);
if (!func) {
_E("invalid func address!");
gettimeofday(&tv, NULL);
ret = localtime_r(&(tv.tv_sec), &tm);
if (ret)
- _D("%s --> %d:%02d:%02d %d",
+ _D("%s --> %d:%02d:%02d %06ld",
prefix, tm.tm_hour, tm.tm_min, tm.tm_sec, tv.tv_usec);
}
dd_list *n;
struct device_notifier *notifier;
- _I("%d, %x", status, func);
+ _I("%d, %p", status, func);
if (!func) {
_E("invalid func address!");
}
FIND_NOTIFIER(device_notifier_list, n, notifier, status, func) {
- _E("function is already registered! [%d, %x]",
+ _E("function is already registered! [%d, %p]",
status, func);
return -EINVAL;
}
}
FIND_NOTIFIER(device_notifier_list, n, notifier, status, func) {
- _I("[%d, %x]", status, func);
+ _I("[%d, %p]", status, func);
notifier->deleted = true;
}
ret = execvp(file, argv);
/* If failed... */
- _E("exec. error: %s", errno);
+ _E("exec. error: %d", errno);
return -2;
}
if (offset > handle->file_info->uncompressed_size || offset < 0) {
- _E("Invalid Offset (%jd) for file size (%d)", offset, handle->file_info->uncompressed_size);
+ _E("Invalid Offset (%jd) for file size (%lu)", offset, handle->file_info->uncompressed_size);
return -EINVAL;
}
/* store current zip position for subsequent read */
handle->offset = offset + bytes_read;
- _D("bytes_read : %d [offset : %jd, total size : %d]", bytes_read, handle->offset, handle->file_info->uncompressed_size);
+ _D("bytes_read : %d [offset : %jd, total size : %lu]", bytes_read, handle->offset, handle->file_info->uncompressed_size);
return bytes_read;
}
int ret;
if (!dh_get_param_from_var(param, "(uoss)", &id, NULL, &unit, NULL)) {
- _E("failed to get params grom gvariant. expected:%s, type:%s", "uoss", g_variant_get_type(param));
+ _E("failed to get params grom gvariant. expected:%s, type:%s", "uoss", g_variant_get_type_string(param));
return ;
}
usbg_gadget *g;
if (!dh_get_param_from_var(param, "(uoss)", &id, NULL, &unit, NULL)) {
- _E("failed to get params grom gvariant. expected:%s, type:%s", "uoss", g_variant_get_type(param));
+ _E("failed to get params grom gvariant. expected:%s, type:%s", "uoss", g_variant_get_type_string(param));
return ;
}
ret = usb_change_mode(mode);
if (ret < 0)
- _E("Failed to change usb mode to (%s)", mode);
+ _E("Failed to change usb mode to (%d)", mode);
return ret;
}
ret = usb_change_mode(mode);
if (ret < 0)
- _E("Failed to change usb mode to (%s)", mode);
+ _E("Failed to change usb mode to (%d)", mode);
return ret;
}
if (usb_state_get_connection() == USB_CONNECTED) {
ret = usb_enable(mode);
if (ret < 0) {
- _E("Failed to enable usb mode (%d)");
+ _E("Failed to enable usb mode (%d)", ret);
return ret;
}
}