diff options
| author | Steve Block <steveblock@google.com> | 2012-01-06 14:13:42 +0000 |
|---|---|---|
| committer | Steve Block <steveblock@google.com> | 2012-01-08 11:03:26 +0000 |
| commit | 01dda204cd28fe181691b4a44a51be7e5666d0c8 (patch) | |
| tree | 99ef6d14b55ebf4e2752cd182052caad6eddc20a /nexus/PropertyManager.cpp | |
| parent | 36afde3387fff9eac0e6d54854b8d43fe1ebb0cc (diff) | |
| download | system_core-01dda204cd28fe181691b4a44a51be7e5666d0c8.tar.gz system_core-01dda204cd28fe181691b4a44a51be7e5666d0c8.tar.bz2 system_core-01dda204cd28fe181691b4a44a51be7e5666d0c8.zip | |
Rename (IF_)LOGE(_IF) to (IF_)ALOGE(_IF) DO NOT MERGE
Bug: 5449033
Change-Id: Ibcffdcf620ebae1c389446ce8e9d908f11ac039c
Diffstat (limited to 'nexus/PropertyManager.cpp')
| -rw-r--r-- | nexus/PropertyManager.cpp | 18 |
1 files changed, 9 insertions, 9 deletions
diff --git a/nexus/PropertyManager.cpp b/nexus/PropertyManager.cpp index 1caaba62..41cdb41f 100644 --- a/nexus/PropertyManager.cpp +++ b/nexus/PropertyManager.cpp @@ -77,7 +77,7 @@ int PropertyManager::attachProperty(const char *ns_name, Property *p) { if (lookupProperty_UNLOCKED(ns, p->getName())) { errno = EADDRINUSE; pthread_mutex_unlock(&mLock); - LOGE("Failed to register property %s.%s (%s)", + ALOGE("Failed to register property %s.%s (%s)", ns_name, p->getName(), strerror(errno)); return -1; } @@ -94,7 +94,7 @@ int PropertyManager::detachProperty(const char *ns_name, Property *p) { pthread_mutex_lock(&mLock); if (!(ns = lookupNamespace_UNLOCKED(ns_name))) { pthread_mutex_unlock(&mLock); - LOGE("Namespace '%s' not found", ns_name); + ALOGE("Namespace '%s' not found", ns_name); return -1; } @@ -110,7 +110,7 @@ int PropertyManager::detachProperty(const char *ns_name, Property *p) { } } - LOGE("Property %s.%s not found", ns_name, p->getName()); + ALOGE("Property %s.%s not found", ns_name, p->getName()); pthread_mutex_unlock(&mLock); errno = ENOENT; return -1; @@ -130,7 +130,7 @@ int PropertyManager::doSet(Property *p, int idx, const char *value) { errno = 0; tmp = strtol(value, (char **) NULL, 10); if (errno) { - LOGE("Failed to convert '%s' to int", value); + ALOGE("Failed to convert '%s' to int", value); errno = EINVAL; return -1; } @@ -138,13 +138,13 @@ int PropertyManager::doSet(Property *p, int idx, const char *value) { } else if (p->getType() == Property::Type_IPV4) { struct in_addr tmp; if (!inet_aton(value, &tmp)) { - LOGE("Failed to convert '%s' to ipv4", value); + ALOGE("Failed to convert '%s' to ipv4", value); errno = EINVAL; return -1; } return p->set(idx, &tmp); } else { - LOGE("Property '%s' has an unknown type (%d)", p->getName(), + ALOGE("Property '%s' has an unknown type (%d)", p->getName(), p->getType()); errno = EINVAL; return -1; @@ -179,7 +179,7 @@ int PropertyManager::doGet(Property *p, int idx, char *buffer, size_t max) { } strncpy(buffer, inet_ntoa(tmp), max); } else { - LOGE("Property '%s' has an unknown type (%d)", p->getName(), + ALOGE("Property '%s' has an unknown type (%d)", p->getName(), p->getType()); errno = EINVAL; return -1; @@ -215,7 +215,7 @@ int PropertyManager::set(const char *name, const char *value) { } } - LOGE("Property %s not found", name); + ALOGE("Property %s not found", name); pthread_mutex_unlock(&mLock); errno = ENOENT; return -1; @@ -246,7 +246,7 @@ const char *PropertyManager::get(const char *name, char *buffer, size_t max) { } } - LOGE("Property %s not found", name); + ALOGE("Property %s not found", name); pthread_mutex_unlock(&mLock); errno = ENOENT; return NULL; |
