Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit 6dfd218f authored by Kenny Root's avatar Kenny Root Committed by Android (Google) Code Review
Browse files

Merge "Add better debug output for ResourceType errors" into gingerbread

parents f1fa4add 45162448
Loading
Loading
Loading
Loading
+2 −2
Original line number Original line Diff line number Diff line
@@ -1934,8 +1934,8 @@ ssize_t ResTable::getResource(uint32_t resID, Res_value* outValue, bool mayBeBag
        ssize_t offset = getEntry(package, t, e, &mParams, &type, &entry, &typeClass);
        ssize_t offset = getEntry(package, t, e, &mParams, &type, &entry, &typeClass);
        if (offset <= 0) {
        if (offset <= 0) {
            if (offset < 0) {
            if (offset < 0) {
                LOGW("Failure getting entry for 0x%08x (t=%d e=%d) in package %d: 0x%08x\n",
                LOGW("Failure getting entry for 0x%08x (t=%d e=%d) in package %zd (error %d)\n",
                        resID, t, e, (int)ip, (int)offset);
                        resID, t, e, ip, (int)offset);
                return offset;
                return offset;
            }
            }
            continue;
            continue;