diff options
author | jy910.yun <jy910.yun@samsung.com> | 2014-11-05 21:42:00 +0900 |
---|---|---|
committer | jy910.yun <jy910.yun@samsung.com> | 2014-11-06 21:55:21 +0900 |
commit | dab55ee02cbae6318ff69494a4977adae8c6d245 (patch) | |
tree | c13e5a8593663e0394eeba6aa0e529a371b24096 /src | |
parent | 25f730f660c4193863d2c7c3304e6b4ada048c36 (diff) | |
download | libdevice-node-dab55ee02cbae6318ff69494a4977adae8c6d245.tar.gz libdevice-node-dab55ee02cbae6318ff69494a4977adae8c6d245.tar.bz2 libdevice-node-dab55ee02cbae6318ff69494a4977adae8c6d245.zip |
device-node: Rename the logging macros
Change DEVERR/DEVLOG macros to _E/_D macros
Signed-off-by: jy910.yun <jy910.yun@samsung.com>
Change-Id: Idd4593e6b271addfb2f0ee8a091223b0267161cf
Diffstat (limited to 'src')
-rw-r--r-- | src/device-node.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/src/device-node.c b/src/device-node.c index 4612778..52c74fb 100644 --- a/src/device-node.c +++ b/src/device-node.c @@ -63,31 +63,31 @@ API int device_get_property(enum device_type devtype, int property, int *value) type = find_device(devtype); if (type == NULL) { - DEVERR("devtype cannot find"); + _E("devtype cannot find"); errno = EPERM; return -1; } dev = container_of(type, struct device, type); if (dev == NULL) { - DEVERR("device cannot find"); + _E("device cannot find"); errno = EPERM; return -1; } if (dev->get_prop == NULL) { - DEVERR("devtype doesn't have getter function"); + _E("devtype doesn't have getter function"); errno = EPERM; return -1; } r = dev->get_prop(property, value); if (r == -ENODEV) { - DEVERR("Not support driver"); + _E("Not support driver"); errno = ENODEV; return -1; } else if (r == -1) { - DEVERR("get_prop of %s(%d) return failes", dev->name, property); + _E("get_prop of %s(%d) return failes", dev->name, property); errno = EPERM; return -1; } @@ -104,31 +104,31 @@ API int device_set_property(enum device_type devtype, int property, int value) type = find_device(devtype); if (type == NULL) { - DEVERR("devtype cannot find"); + _E("devtype cannot find"); errno = EPERM; return -1; } dev = container_of(type, struct device, type); if (dev == NULL) { - DEVERR("device cannot find"); + _E("device cannot find"); errno = EPERM; return -1; } if (dev->set_prop == NULL) { - DEVERR("devtype doesn't have setter function"); + _E("devtype doesn't have setter function"); errno = EPERM; return -1; } r = dev->set_prop(property, value); if (r == -ENODEV) { - DEVERR("Not support driver"); + _E("Not support driver"); errno = ENODEV; return -1; } else if (r == -1) { - DEVERR("set_prop of %s(%d) return failes", dev->name, property); + _E("set_prop of %s(%d) return failes", dev->name, property); errno = EPERM; return -1; } @@ -144,19 +144,19 @@ static void __CONSTRUCTOR__ module_init(void) dlopen_handle = dlopen(DEVMAN_PLUGIN_PATH, RTLD_NOW); if (!dlopen_handle) { - DEVERR("dlopen() failed"); + _E("dlopen() failed"); goto ERROR; } OEM_sys_get_devman_plugin_interface = dlsym(dlopen_handle, "OEM_sys_get_devman_plugin_interface"); if ((error = dlerror()) != NULL) { - DEVERR("dlsym() failed: %s", error); + _E("dlsym() failed: %s", error); goto ERROR; } plugin_intf = OEM_sys_get_devman_plugin_interface(); if (!plugin_intf) { - DEVERR("get_devman_plugin_interface() failed"); + _E("get_devman_plugin_interface() failed"); goto ERROR; } |