From f240aa8089ea1574a7d799720efb66528f6ceb99 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Tue, 16 Sep 2014 23:34:20 -0700 Subject: [PATCH] Fix 64bit build Change-Id: I6ef55b5951270c46ee5e9a11385bd09e33a9f969 --- linker/linker.cpp | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/linker/linker.cpp b/linker/linker.cpp index c46c1e251..6dfa768cc 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -1877,7 +1877,7 @@ bool soinfo::PrelinkImage() { break; case DT_SYMENT: if (d->d_un.d_val != sizeof(ElfW(Sym))) { - DL_ERR("invalid DT_SYMENT: %d", d->d_un.d_val); + DL_ERR("invalid DT_SYMENT: %zd", static_cast(d->d_un.d_val)); return false; } break; @@ -1932,7 +1932,7 @@ bool soinfo::PrelinkImage() { break; case DT_RELAENT: if (d->d_un.d_val != sizeof(ElfW(Rela))) { - DL_ERR("invalid DT_RELAENT: %d", d->d_un.d_val); + DL_ERR("invalid DT_RELAENT: %zd", static_cast(d->d_un.d_val)); return false; } break; @@ -1954,7 +1954,7 @@ bool soinfo::PrelinkImage() { break; case DT_RELENT: if (d->d_un.d_val != sizeof(ElfW(Rel))) { - DL_ERR("invalid DT_RELENT: %d", d->d_un.d_val); + DL_ERR("invalid DT_RELENT: %zd", static_cast(d->d_un.d_val)); return false; } break;