summaryrefslogtreecommitdiffstats
path: root/fs
diff options
context:
space:
mode:
authorLucas Stach <l.stach@pengutronix.de>2019-10-30 12:11:49 +0100
committerSascha Hauer <s.hauer@pengutronix.de>2019-11-04 09:08:35 +0100
commit5c06691a321c9f0d9e143c52b143366d0428391b (patch)
treedefddf44bd3fec61705d26f8379f7bf4cc1aacfe /fs
parent660041ba309268c3f5404da4ae1b7eba201f4c4c (diff)
downloadbarebox-5c06691a321c9f0d9e143c52b143366d0428391b.tar.gz
fs: ubootvarfs: use correct format specifier for pointer diff
The difference between two pointers is represented as a ptrdiff_t, use the correct format specifier when printing to get rid of the following warning in a 64bit build: warning: format '%x' expects argument of type 'unsigned int', but argument 3 has type 'long int' [-Wformat=] Signed-off-by: Lucas Stach <l.stach@pengutronix.de> Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'fs')
-rw-r--r--fs/ubootvarfs.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/fs/ubootvarfs.c b/fs/ubootvarfs.c
index 81ec05d..475e4b7 100644
--- a/fs/ubootvarfs.c
+++ b/fs/ubootvarfs.c
@@ -409,7 +409,7 @@ static void ubootvarfs_parse(struct ubootvarfs_data *data, char *blob,
list_add_tail(&var->list, &data->var_list);
} else {
- pr_err("No separator in data @ 0x%08x. Skipped.",
+ pr_err("No separator in data @ 0x%08tx. Skipped.",
blob - start);
free(var);
}