diff options
author | Steve Block | 2012-01-06 08:13:42 -0600 |
---|---|---|
committer | Steve Block | 2012-01-08 05:03:26 -0600 |
commit | 01dda204cd28fe181691b4a44a51be7e5666d0c8 (patch) | |
tree | 99ef6d14b55ebf4e2752cd182052caad6eddc20a /libcutils/sockets.c | |
parent | 36afde3387fff9eac0e6d54854b8d43fe1ebb0cc (diff) | |
download | platform-system-core-01dda204cd28fe181691b4a44a51be7e5666d0c8.tar.gz platform-system-core-01dda204cd28fe181691b4a44a51be7e5666d0c8.tar.xz platform-system-core-01dda204cd28fe181691b4a44a51be7e5666d0c8.zip |
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
Bug: 5449033
Change-Id: Ibcffdcf620ebae1c389446ce8e9d908f11ac039c
Diffstat (limited to 'libcutils/sockets.c')
-rw-r--r-- | libcutils/sockets.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/libcutils/sockets.c b/libcutils/sockets.c index 101a382f2..b5a1b3d47 100644 --- a/libcutils/sockets.c +++ b/libcutils/sockets.c | |||
@@ -30,12 +30,12 @@ bool socket_peer_is_trusted(int fd) | |||
30 | int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len); | 30 | int n = getsockopt(fd, SOL_SOCKET, SO_PEERCRED, &cr, &len); |
31 | 31 | ||
32 | if (n != 0) { | 32 | if (n != 0) { |
33 | LOGE("could not get socket credentials: %s\n", strerror(errno)); | 33 | ALOGE("could not get socket credentials: %s\n", strerror(errno)); |
34 | return false; | 34 | return false; |
35 | } | 35 | } |
36 | 36 | ||
37 | if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) { | 37 | if ((cr.uid != AID_ROOT) && (cr.uid != AID_SHELL)) { |
38 | LOGE("untrusted userid on other end of socket: userid %d\n", cr.uid); | 38 | ALOGE("untrusted userid on other end of socket: userid %d\n", cr.uid); |
39 | return false; | 39 | return false; |
40 | } | 40 | } |
41 | #endif | 41 | #endif |