Skip to content

Commit

Permalink
Changed logging macro for libraries from LOG to ALOG
Browse files Browse the repository at this point in the history
Change-Id: I44503b64c7e7a46ede40a10fcb3d867b26b3d088
  • Loading branch information
tlusk committed Jul 11, 2012
1 parent abfea79 commit 96cadc5
Show file tree
Hide file tree
Showing 17 changed files with 691 additions and 691 deletions.
12 changes: 6 additions & 6 deletions bdaddr_read/bdaddr_read.c
Original file line number Diff line number Diff line change
Expand Up @@ -26,7 +26,7 @@ int main() {

if ( stat("/data/bdaddr", &st) == 0 ) {
printf("bdaddr has previously been written, exiting\n");
LOGE("bdaddr has previously been written, exiting\n");
ALOGE("bdaddr has previously been written, exiting\n");
return -1;
}

Expand All @@ -38,28 +38,28 @@ int main() {

if (buf[0] == 0) {
printf("Unable to read default bdaddr from ril.bt_macaddr, reverting\n");
LOGE("Unable to read default bdaddr from ril.bt_macaddr, reverting\n");
ALOGE("Unable to read default bdaddr from ril.bt_macaddr, reverting\n");
return -1;
}

printf("Read default bdaddr from ril.bt_macaddr: %s\n", buf);
LOGE("Read default bdaddr from ril.bt_macaddr: %s\n", buf);
ALOGE("Read default bdaddr from ril.bt_macaddr: %s\n", buf);

sprintf(addr_from_ril, "%2.2s:%2.2s:%2.2s:%2.2s:%2.2s:%2.2s\0",
buf, buf+2, buf+4, buf+6, buf+8, buf+10);

printf("Converted to formatted mac: %s\n", addr_from_ril);
LOGE("Converted to formatted mac: %s\n", addr_from_ril);
ALOGE("Converted to formatted mac: %s\n", addr_from_ril);

fd = open(BDADDR_PATH, O_WRONLY|O_CREAT|O_TRUNC, 00600|00060|00006);
if (fd < 0) {
printf("Unable to open bdaddr, bailing\n");
LOGE("Unable to open bdaddr, bailing\n");
ALOGE("Unable to open bdaddr, bailing\n");
return -2;
}

write(fd, addr_from_ril, 18);
close(fd);
LOGE("System will now read mac on reboot.\n");
ALOGE("System will now read mac on reboot.\n");
return (0);
}
6 changes: 3 additions & 3 deletions include/sec_utils.h
Original file line number Diff line number Diff line change
Expand Up @@ -130,7 +130,7 @@ inline int HAL_PIXEL_FORMAT_2_V4L2_PIX(int HAL_PIXEL_FORMAT)
break;

default:
LOGE("%s::unmatched HAL_PIXEL_FORMAT color_space(0x%x)\n",
ALOGE("%s::unmatched HAL_PIXEL_FORMAT color_space(0x%x)\n",
__func__, HAL_PIXEL_FORMAT);
break;
}
Expand Down Expand Up @@ -219,7 +219,7 @@ inline int V4L2_PIX_2_HAL_PIXEL_FORMAT(int V4L2_PIX)
break;

default:
LOGE("%s::unmatched V4L2_PIX color_space(%d)\n",
ALOGE("%s::unmatched V4L2_PIX color_space(%d)\n",
__func__, V4L2_PIX);
break;
}
Expand Down Expand Up @@ -320,7 +320,7 @@ inline unsigned int FRAME_SIZE(int HAL_PIXEL_FORMAT, int w, int h)
break;

default:
LOGD("%s::no matching source colorformat(0x%x), w(%d), h(%d) fail\n",
ALOGD("%s::no matching source colorformat(0x%x), w(%d), h(%d) fail\n",
__func__, HAL_PIXEL_FORMAT, w, h);
break;
}
Expand Down
Loading

0 comments on commit 96cadc5

Please sign in to comment.