From 3a8646fc5d9f1a9304251a1d1c8ff9e523d81b40 Mon Sep 17 00:00:00 2001 From: Dmitriy Ivanov Date: Tue, 8 Jul 2014 11:21:56 -0700 Subject: [PATCH] Change android_dlextinfo flags to uint64_t Change-Id: Id27e8f8e58dbcf6ae79644f2ad3af3dd0aef9ae7 --- libc/include/android/dlext.h | 2 +- linker/linker.cpp | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/libc/include/android/dlext.h b/libc/include/android/dlext.h index 616e08ed3..5c3a206a4 100644 --- a/libc/include/android/dlext.h +++ b/libc/include/android/dlext.h @@ -63,7 +63,7 @@ enum { }; typedef struct { - int flags; + uint64_t flags; void* reserved_addr; size_t reserved_size; int relro_fd; diff --git a/linker/linker.cpp b/linker/linker.cpp index 506c3f2df..04ffe5996 100644 --- a/linker/linker.cpp +++ b/linker/linker.cpp @@ -856,7 +856,7 @@ soinfo* do_dlopen(const char* name, int flags, const android_dlextinfo* extinfo) return NULL; } if (extinfo != NULL && ((extinfo->flags & ~(ANDROID_DLEXT_VALID_FLAG_BITS)) != 0)) { - DL_ERR("invalid extended flags to android_dlopen_ext: %x", extinfo->flags); + DL_ERR("invalid extended flags to android_dlopen_ext: %" PRIx64, extinfo->flags); return NULL; } protect_data(PROT_READ | PROT_WRITE);