diff options
author | Donald Chai <dchai@google.com> | 2018-01-02 19:20:27 -0800 |
---|---|---|
committer | Donald Chai <dchai@google.com> | 2018-08-20 17:11:27 +0000 |
commit | 5f92797fbf381468e78b27bc729caca7ee6f1a02 (patch) | |
tree | 333c4bb5c236cfd0fd745901d929f2491221e1f6 /tools/aapt/XMLNode.cpp | |
parent | e0936a1fda17fe5e6bbbd739a284cdb61ffb5021 (diff) |
AAPT: Render resource ID values with 0x%08x in "dump xmltree" output as
is done elsewhere.
Test: N/A
Change-Id: I7ff686425fec447ae43b364e592b81bfcbc1df30
Diffstat (limited to 'tools/aapt/XMLNode.cpp')
-rw-r--r-- | tools/aapt/XMLNode.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/tools/aapt/XMLNode.cpp b/tools/aapt/XMLNode.cpp index 861efd5077fe..69392d66e21f 100644 --- a/tools/aapt/XMLNode.cpp +++ b/tools/aapt/XMLNode.cpp @@ -474,9 +474,9 @@ void printXMLBlock(ResXMLTree* block) if (value.dataType == Res_value::TYPE_NULL) { printf("=(null)"); } else if (value.dataType == Res_value::TYPE_REFERENCE) { - printf("=@0x%x", (int)value.data); + printf("=@0x%08x", (int)value.data); } else if (value.dataType == Res_value::TYPE_ATTRIBUTE) { - printf("=?0x%x", (int)value.data); + printf("=?0x%08x", (int)value.data); } else if (value.dataType == Res_value::TYPE_STRING) { printf("=\"%s\"", ResTable::normalizeForOutput(String8(block->getAttributeStringValue(i, |