diff options
author | Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org> | 2014-11-30 11:04:10 +0100 |
---|---|---|
committer | Chih-Hung Hsieh <chh@google.com> | 2014-12-05 16:14:07 -0800 |
commit | 46c82b4cd241a447834ed2f5a6be16777b7a990b (patch) | |
tree | afb199f10ef684e20579058a416c6d8eaa3f83e1 /cmds/idmap | |
parent | 8c9283f41083a20a82ae37eac44b79de6eb3158e (diff) | |
download | frameworks_base-46c82b4cd241a447834ed2f5a6be16777b7a990b.zip frameworks_base-46c82b4cd241a447834ed2f5a6be16777b7a990b.tar.gz frameworks_base-46c82b4cd241a447834ed2f5a6be16777b7a990b.tar.bz2 |
Adjust format strings to work on both 32-bit and 64-bit builds
Adjust format strings to not produce Clang warnings in both 32-bit and
64-bit builds
Change-Id: I76c29d8d5d0fb4b5e9d9518077652370ffe9e871
Signed-off-by: Bernhard Rosenkränzer <Bernhard.Rosenkranzer@linaro.org>
Diffstat (limited to 'cmds/idmap')
-rw-r--r-- | cmds/idmap/scan.cpp | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/cmds/idmap/scan.cpp b/cmds/idmap/scan.cpp index 7b25f73..bbe6eef 100644 --- a/cmds/idmap/scan.cpp +++ b/cmds/idmap/scan.cpp @@ -146,13 +146,13 @@ namespace { } char *buf = new char[uncompLen]; if (NULL == buf) { - ALOGW("%s: failed to allocate %d byte\n", __FUNCTION__, uncompLen); + ALOGW("%s: failed to allocate %zd byte\n", __FUNCTION__, uncompLen); dataMap->release(); return -1; } StreamingZipInflater inflater(dataMap, uncompLen); if (inflater.read(buf, uncompLen) < 0) { - ALOGW("%s: failed to inflate %d byte\n", __FUNCTION__, uncompLen); + ALOGW("%s: failed to inflate %zd byte\n", __FUNCTION__, uncompLen); delete[] buf; dataMap->release(); return -1; |