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@xxxxxxxxx> --- 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 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox