aboutsummaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorAndrew Jeffery <andrew@aj.id.au>2018-11-09 11:03:13 +1030
committerStewart Smith <stewart@linux.ibm.com>2018-11-09 17:01:01 +1100
commit353040cfc500d39be4e552258c830f65d03fa80c (patch)
treec8d8a84ff5ff7639a14f88bba28cb813d174077f
parentd0f50f9166c50846095f00ac807a91836837cc4b (diff)
downloadskiboot-353040cfc500d39be4e552258c830f65d03fa80c.zip
skiboot-353040cfc500d39be4e552258c830f65d03fa80c.tar.gz
skiboot-353040cfc500d39be4e552258c830f65d03fa80c.tar.bz2
libflash/ipmi-hiomap: Fix argument type warning on x86-64
[ Upstream commit 97f839beffb512faebc456dff67a4d83353348ed ] libflash/ipmi-hiomap.c: In function ‘hiomap_window_move’: libflash/ipmi-hiomap.c:17:21: error: format ‘%llu’ expects argument of type ‘long long unsigned int’, but argument 3 has type ‘uint64_t’ {aka ‘long unsigned int’} [-Werror=format=] #define pr_fmt(fmt) "HIOMAP: " fmt ^~~~~~~~~~ include/skiboot.h:93:41: note: in expansion of macro ‘pr_fmt’ #define prlog(l, f, ...) do { _prlog(l, pr_fmt(f), ##__VA_ARGS__); } while(0) ^~~~~~ include/skiboot.h:94:30: note: in expansion of macro ‘prlog’ #define prerror(fmt...) do { prlog(PR_ERR, fmt); } while(0) ^~~~~ libflash/ipmi-hiomap.c:291:3: note: in expansion of macro ‘prerror’ prerror("Invalid window properties: len: %llu, size: %llu\n", ^~~~~~~ libflash/ipmi-hiomap.c:291:47: note: format string is defined here prerror("Invalid window properties: len: %llu, size: %llu\n", ~~~^ %lu Signed-off-by: Andrew Jeffery <andrew@aj.id.au> Signed-off-by: Stewart Smith <stewart@linux.ibm.com>
-rw-r--r--libflash/ipmi-hiomap.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/libflash/ipmi-hiomap.c b/libflash/ipmi-hiomap.c
index 850fb3d..ae4b310 100644
--- a/libflash/ipmi-hiomap.c
+++ b/libflash/ipmi-hiomap.c
@@ -318,7 +318,7 @@ static bool hiomap_window_move(struct ipmi_hiomap *ctx, uint8_t command,
*size = (ctx->current.cur_pos + ctx->current.size) - pos;
if (len != 0 && *size == 0) {
- prerror("Invalid window properties: len: %llu, size: %llu\n",
+ prerror("Invalid window properties: len: %"PRIu64", size: %"PRIu64"\n",
len, *size);
return false;
}