summaryrefslogtreecommitdiffstats
path: root/libs
diff options
context:
space:
mode:
authorKenny Root <kroot@google.com>2010-09-02 14:58:47 -0700
committerAlex Ray <aray@google.com>2013-07-30 13:56:54 -0700
commit6bdd470cf1a74d136c911294f8c380bc13e9f3a2 (patch)
tree5c25563b857ec45101e11dca20d423a75f874caa /libs
parent2349ee0996dea0168ff3ff9b504b328e7c2be105 (diff)
downloadsystem_core-6bdd470cf1a74d136c911294f8c380bc13e9f3a2.zip
system_core-6bdd470cf1a74d136c911294f8c380bc13e9f3a2.tar.gz
system_core-6bdd470cf1a74d136c911294f8c380bc13e9f3a2.tar.bz2
Add better debug output for ResourceType errors
An error code is returned as -ESOMETHING, but the debug code was printing out 0x%08x for these codes making -74 print out as 0xffffffb5 which is kind of silly. Change-Id: I7d77fb3da2e146845949f121404f662b47288e61
Diffstat (limited to 'libs')
-rw-r--r--libs/utils/ResourceTypes.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/libs/utils/ResourceTypes.cpp b/libs/utils/ResourceTypes.cpp
index 4362d14..91e7df3 100644
--- a/libs/utils/ResourceTypes.cpp
+++ b/libs/utils/ResourceTypes.cpp
@@ -1946,8 +1946,8 @@ ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag
ssize_t offset = getEntry(package, t, e, &mParams, &type, &entry, &typeClass);
if (offset <= 0) {
if (offset < 0) {
- LOGW("Failure getting entry for 0x%08x (t=%d e=%d) in package %d: 0x%08x\n",
- resID, t, e, (int)ip, (int)offset);
+ LOGW("Failure getting entry for 0x%08x (t=%d e=%d) in package %zd (error %d)\n",
+ resID, t, e, ip, (int)offset);
return offset;
}
continue;