summaryrefslogtreecommitdiffstats
path: root/bdaddr_read
diff options
context:
space:
mode:
authorPawit Pornkitprasan <p.pawit@gmail.com>2012-07-14 19:40:13 +0700
committerPawit Pornkitprasan <p.pawit@gmail.com>2012-07-14 19:40:13 +0700
commit9e9cbf2798ae64f48b25a5716bbdeb43e36e32cf (patch)
tree78decdc46aa76a0fd3cf00bbb371966571cf902e /bdaddr_read
parent83f873cb99c5827c794c31b6e0003e12b05069e3 (diff)
downloaddevice_samsung_aries-common-9e9cbf2798ae64f48b25a5716bbdeb43e36e32cf.zip
device_samsung_aries-common-9e9cbf2798ae64f48b25a5716bbdeb43e36e32cf.tar.gz
device_samsung_aries-common-9e9cbf2798ae64f48b25a5716bbdeb43e36e32cf.tar.bz2
jellybean bring up
Change-Id: I19a95c3c8613a81d02f1146941fcb2f9ecc4efae
Diffstat (limited to 'bdaddr_read')
-rw-r--r--bdaddr_read/bdaddr_read.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/bdaddr_read/bdaddr_read.c b/bdaddr_read/bdaddr_read.c
index c6e08c9..b795e92 100644
--- a/bdaddr_read/bdaddr_read.c
+++ b/bdaddr_read/bdaddr_read.c
@@ -22,19 +22,19 @@ int main() {
fd = open(SAMSUNG_BDADDR_PATH, O_RDONLY);
if(fd < 0) {
fprintf(stderr, "open(%s) failed\n", SAMSUNG_BDADDR_PATH);
- LOGE("Can't open %s\n", SAMSUNG_BDADDR_PATH);
+ ALOGE("Can't open %s\n", SAMSUNG_BDADDR_PATH);
return -1;
}
count = read(fd, tmpbdaddr, sizeof(tmpbdaddr));
if (count < 0) {
fprintf(stderr, "read(%s) failed\n", SAMSUNG_BDADDR_PATH);
- LOGE("Can't read %s\n", SAMSUNG_BDADDR_PATH);
+ ALOGE("Can't read %s\n", SAMSUNG_BDADDR_PATH);
return -1;
}
else if (count != sizeof(tmpbdaddr)) {
fprintf(stderr, "read(%s) unexpected size %d\n", SAMSUNG_BDADDR_PATH, count);
- LOGE("Error reading %s (unexpected size %d)\n", SAMSUNG_BDADDR_PATH, count);
+ ALOGE("Error reading %s (unexpected size %d)\n", SAMSUNG_BDADDR_PATH, count);
return -1;
}
@@ -44,7 +44,7 @@ int main() {
fd = open(BDADDR_PATH, O_WRONLY|O_CREAT|O_TRUNC, 00600|00060|00006);
if (fd < 0) {
fprintf(stderr, "open(%s) failed\n", BDADDR_PATH);
- LOGE("Can't open %s\n", BDADDR_PATH);
+ ALOGE("Can't open %s\n", BDADDR_PATH);
return -2;
}
write(fd, bdaddr, 18);