From fb600d60c06192f1a5b1c09bc86f92a80894a6c1 Mon Sep 17 00:00:00 2001 From: Adam Lesinski Date: Wed, 18 Jun 2014 12:56:28 -0700 Subject: [PATCH] Fix build break in log statement For logging purposes, a uint32_t was being converted into a void pointer, which on certain systems would be a conversion to a different size. Change-Id: I90af69ab975d84c9c8cbb1cce94ff4e9cc6edcf2 --- libs/androidfw/TypeWrappers.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/libs/androidfw/TypeWrappers.cpp b/libs/androidfw/TypeWrappers.cpp index 8929b66bbdc41..06b40405f4040 100644 --- a/libs/androidfw/TypeWrappers.cpp +++ b/libs/androidfw/TypeWrappers.cpp @@ -48,7 +48,7 @@ const ResTable_entry* TypeVariant::iterator::operator*() const { } if ((entryOffset & 0x3) != 0) { - ALOGE("Index %u points to entry with unaligned offset %p", mIndex, (void*) entryOffset); + ALOGE("Index %u points to entry with unaligned offset 0x%08x", mIndex, entryOffset); return NULL; }