From cbc86f786c34a608b347f492551f172b281d784b Mon Sep 17 00:00:00 2001 From: Doug Anderson Date: Wed, 25 May 2011 11:22:59 -0700 Subject: Fixed compiler warning in v-boot reference. MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The error was: arch/arm/lib/crossystem_arch.c: In function ‘VbReadSharedMemory’: arch/arm/lib/crossystem_arch.c:134: error: format ‘%d’ expects type ‘int’, but argument 5 has type ‘long unsigned int’ BUG=none TEST=(outside choot): cd src/platform/vboot_reference; make Change-Id: I5e1f69abd125fe06cf6ae04a7946568bdbcef83e Reviewed-on: http://gerrit.chromium.org/gerrit/1547 Tested-by: Doug Anderson Reviewed-by: Bill Richardson --- host/arch/arm/lib/crossystem_arch.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/host/arch/arm/lib/crossystem_arch.c b/host/arch/arm/lib/crossystem_arch.c index b0a71555..2858fc5a 100644 --- a/host/arch/arm/lib/crossystem_arch.c +++ b/host/arch/arm/lib/crossystem_arch.c @@ -127,10 +127,10 @@ static int VbReadSharedMemory(void) { size = fread(&shared_memory, 1, sizeof(shared_memory), data_file); if ((size != sizeof(shared_memory)) || (size != shared_memory.total_size)) { fprintf(stderr, "%s: failed to read shared memory: got %d bytes, " - "expected %d, should have been %d\n", + "expected %lu, should have been %d\n", __FUNCTION__, size, - sizeof(shared_memory), + (unsigned long)sizeof(shared_memory), shared_memory.total_size); break; } -- cgit v1.2.1