From: lokilee73 Date: Fri, 7 Dec 2018 05:27:11 +0000 (+0900) Subject: Fix build errors X-Git-Tag: accepted/tizen/unified/20181207.175428^0 X-Git-Url: http://review.tizen.org/git/?a=commitdiff_plain;h=refs%2Fchanges%2F26%2F194726%2F1;p=platform%2Fcore%2Fsystem%2Fdeviced.git Fix build errors Change-Id: Idb1ad4f63f9571531201469b95ecab01c4f923e6 Signed-off-by: lokilee73 --- diff --git a/plugins/iot/display/input.c b/plugins/iot/display/input.c old mode 100644 new mode 100755 index 95714ac..a986504 --- a/plugins/iot/display/input.c +++ b/plugins/iot/display/input.c @@ -75,7 +75,7 @@ static inline void process_event(struct libinput_event *ev) 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); diff --git a/plugins/mobile/display/input.c b/plugins/mobile/display/input.c old mode 100644 new mode 100755 index 95714ac..a986504 --- a/plugins/mobile/display/input.c +++ b/plugins/mobile/display/input.c @@ -75,7 +75,7 @@ static inline void process_event(struct libinput_event *ev) 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); diff --git a/plugins/tv/display/input.c b/plugins/tv/display/input.c old mode 100644 new mode 100755 index 95714ac..a986504 --- a/plugins/tv/display/input.c +++ b/plugins/tv/display/input.c @@ -75,7 +75,7 @@ static inline void process_event(struct libinput_event *ev) 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); diff --git a/plugins/wearable/display/input.c b/plugins/wearable/display/input.c old mode 100644 new mode 100755 index 95714ac..a986504 --- a/plugins/wearable/display/input.c +++ b/plugins/wearable/display/input.c @@ -75,7 +75,7 @@ static inline void process_event(struct libinput_event *ev) 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); diff --git a/src/battery/lowbat-handler.c b/src/battery/lowbat-handler.c index cdedc60..4452836 100755 --- a/src/battery/lowbat-handler.c +++ b/src/battery/lowbat-handler.c @@ -148,7 +148,7 @@ static int lowbat_add_scenario(int old, int now, int (*func)(void *data)) { 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!"); diff --git a/src/core/common.c b/src/core/common.c index 1d66785..1ffd895 100755 --- a/src/core/common.c +++ b/src/core/common.c @@ -495,7 +495,7 @@ void print_time(const char *prefix) 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); } diff --git a/src/core/device-notifier.c b/src/core/device-notifier.c old mode 100644 new mode 100755 index 7b8e9f3..0a50f87 --- a/src/core/device-notifier.c +++ b/src/core/device-notifier.c @@ -40,7 +40,7 @@ int register_notifier(enum device_notifier_type status, int (*func)(void *data)) dd_list *n; struct device_notifier *notifier; - _I("%d, %x", status, func); + _I("%d, %p", status, func); if (!func) { _E("invalid func address!"); @@ -48,7 +48,7 @@ int register_notifier(enum device_notifier_type status, int (*func)(void *data)) } 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; } @@ -78,7 +78,7 @@ int unregister_notifier(enum device_notifier_type status, int (*func)(void *data } FIND_NOTIFIER(device_notifier_list, n, notifier, status, func) { - _I("[%d, %x]", status, func); + _I("[%d, %p]", status, func); notifier->deleted = true; } diff --git a/src/core/launch.c b/src/core/launch.c old mode 100644 new mode 100755 index c5a90fc..57f4f88 --- a/src/core/launch.c +++ b/src/core/launch.c @@ -169,7 +169,7 @@ int launch_app_with_nice(const char *file, char *const argv[], pid_t *pid, int _ ret = execvp(file, argv); /* If failed... */ - _E("exec. error: %s", errno); + _E("exec. error: %d", errno); return -2; } diff --git a/src/tzip/tzip-utility.c b/src/tzip/tzip-utility.c old mode 100644 new mode 100755 index bfbd3b9..6cd5335 --- a/src/tzip/tzip-utility.c +++ b/src/tzip/tzip-utility.c @@ -649,7 +649,7 @@ int read_zipfile(struct tzip_handle *handle, char *buf, 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; } @@ -790,7 +790,7 @@ int read_zipfile(struct tzip_handle *handle, char *buf, /* 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; } diff --git a/src/usb-host-test/usb-host-test.c b/src/usb-host-test/usb-host-test.c index 1c7345c..e83811b 100755 --- a/src/usb-host-test/usb-host-test.c +++ b/src/usb-host-test/usb-host-test.c @@ -243,7 +243,7 @@ static void service_started_handler(GDBusConnection *conn, 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 ; } @@ -280,7 +280,7 @@ static void service_stopped_handler(GDBusConnection *conn, 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 ; } diff --git a/src/usb/usb-debug.c b/src/usb/usb-debug.c old mode 100644 new mode 100755 index a647cae..6310ef5 --- a/src/usb/usb-debug.c +++ b/src/usb/usb-debug.c @@ -85,7 +85,7 @@ static int usb_debug_mode_changed(void *data) 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; } diff --git a/src/usb/usb-tethering.c b/src/usb/usb-tethering.c old mode 100644 new mode 100755 index b7834ec..911a3b7 --- a/src/usb/usb-tethering.c +++ b/src/usb/usb-tethering.c @@ -76,7 +76,7 @@ static int usb_tethering_mode_changed(void *data) 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; } diff --git a/src/usb/usb.c b/src/usb/usb.c index 65c2b7b..a171007 100755 --- a/src/usb/usb.c +++ b/src/usb/usb.c @@ -336,7 +336,7 @@ int usb_change_mode(unsigned mode) 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; } }