From 5f92797fbf381468e78b27bc729caca7ee6f1a02 Mon Sep 17 00:00:00 2001 From: Donald Chai Date: Tue, 2 Jan 2018 19:20:27 -0800 Subject: AAPT: Render resource ID values with 0x%08x in "dump xmltree" output as is done elsewhere. Test: N/A Change-Id: I7ff686425fec447ae43b364e592b81bfcbc1df30 --- tools/aapt/XMLNode.cpp | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) (limited to 'tools/aapt/XMLNode.cpp') 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, -- cgit v1.2.3-59-g8ed1b