[PATCH 2/2] bpkfs: fix compiler warning
Alexander Aring
alex.aring at gmail.com
Sun Feb 9 04:35:58 EST 2014
Correct formatstring of size_t is %zu otherwise we get:
fs/bpkfs.c: In function ‘bpkfs_probe’:
fs/bpkfs.c:440:3: warning: format ‘%d’ expects argument of type ‘int’,
but argument 5 has type ‘size_t’ [-Wformat=]
dev_dbg(dev, "%d: offset = %d\n", i, d->offset);
Signed-off-by: Alexander Aring <alex.aring at gmail.com>
---
fs/bpkfs.c | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/fs/bpkfs.c b/fs/bpkfs.c
index ae7681a..8352307 100644
--- a/fs/bpkfs.c
+++ b/fs/bpkfs.c
@@ -437,7 +437,7 @@ static int bpkfs_probe(struct device_d *dev)
dev_dbg(dev, "%d: type = 0x%x => %s\n", i, d->type, d->name);
dev_dbg(dev, "%d: size = %llu\n", i, d->size);
- dev_dbg(dev, "%d: offset = %d\n", i, d->offset);
+ dev_dbg(dev, "%d: offset = %zu\n", i, d->offset);
dev_dbg(dev, "%d: hw_id = 0x%x => %s\n", i, h->hw_id, h->name);
--
1.8.5.4
More information about the barebox
mailing list