diff options
author | Doug Anderson <dianders@chromium.org> | 2011-05-25 11:22:59 -0700 |
---|---|---|
committer | Doug Anderson <dianders@chromium.org> | 2011-05-25 13:21:11 -0700 |
commit | cbc86f786c34a608b347f492551f172b281d784b (patch) | |
tree | c10f69e8255a50bb6beb12b1a3c03089428ba1ea /host | |
parent | a7b612a29d3565dd2b2f3ff98b4bdde0d91ca85b (diff) | |
download | vboot-cbc86f786c34a608b347f492551f172b281d784b.tar.gz |
Fixed compiler warning in v-boot reference.
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 <dianders@chromium.org>
Reviewed-by: Bill Richardson <wfrichar@chromium.org>
Diffstat (limited to 'host')
-rw-r--r-- | host/arch/arm/lib/crossystem_arch.c | 4 |
1 files 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; } |