From 84d30fd9dee6dd4f22a58b55f93ca39d30266c4f Mon Sep 17 00:00:00 2001 From: Alasdair Armstrong Date: Mon, 4 Feb 2019 21:30:33 +0000 Subject: Fix some warnings --- lib/elf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) (limited to 'lib/elf.c') diff --git a/lib/elf.c b/lib/elf.c index 888169f5..397c8f3f 100644 --- a/lib/elf.c +++ b/lib/elf.c @@ -468,7 +468,7 @@ int lookupSymbol(const char *buffer, const int total_file_size, const char *symn Elf64_Ehdr *ehdr = (Elf64_Ehdr*) &buffer[0]; if (total_file_size < rdOff64(le, ehdr->e_shoff) + rdHalf64(le, ehdr->e_shnum)*sizeof(Elf64_Shdr)) { - fprintf(stderr, "File too small for %d sections from offset %llu\n", + fprintf(stderr, "File too small for %d sections from offset %" PRIu64 "\n", rdHalf64(le, ehdr->e_shnum), rdOff64(le, ehdr->e_shoff)); exit(EXIT_FAILURE); } -- cgit v1.2.3