am 55d69a96: am 032be7a4: Merge "Log an error if property pool is exhausted"

* commit '55d69a9681061b97d6bdcc0b1b92a7de63d0a07b':
  Log an error if property pool is exhausted
This commit is contained in:
Colin Cross 2013-04-30 21:13:46 -07:00 committed by Android Git Automerger
commit 51ef5882e7

View file

@ -353,7 +353,11 @@ int property_set(const char *name, const char *value)
__futex_wake(&pa->serial, INT32_MAX);
} else {
pa = __system_property_area__;
if(pa->count == PA_COUNT_MAX) return -1;
if(pa->count == PA_COUNT_MAX) {
ERROR("Failed to set '%s'='%s', property pool is exhausted at %d entries",
name, value, PA_COUNT_MAX);
return -1;
}
pi = pa_info_array + pa->count;
pi->serial = (valuelen << 24);