*
**/
+#define LOG_TAG "HdapsSensors"
+
#include <stdint.h>
#include <string.h>
#include <unistd.h>
ret = read(dev->fd, &event, sizeof(event));
#ifdef DEBUG_SENSOR
- LOGD("hdaps event %d - %d - %d\n", event.type, event.code, event.value);
+ ALOGD("hdaps event %d - %d - %d\n", event.type, event.code, event.value);
#endif
if (event.type == EV_ABS) {
switch (event.code) {
if (!strcmp(name, SENSOR_NAME)) {
#ifdef DEBUG_SENSOR
- LOGI("devname is %s \n", devname);
+ ALOGI("devname is %s \n", devname);
#endif
} else {
close(fd);
static struct hw_module_methods_t sensors_module_methods = {
.open = open_sensors };
-const struct sensors_module_t HAL_MODULE_INFO_SYM = {
+struct sensors_module_t HAL_MODULE_INFO_SYM = {
.common = {
.tag = HARDWARE_MODULE_TAG,
.version_major = 1,
dev->device.poll = device__poll;
if ((dev->fd = open_input_device()) < 0) {
- LOGE("g sensor get class path error \n");
+ ALOGE("g sensor get class path error \n");
} else {
*device = &dev->device.common;
status = 0;