From a6f19bc782bf488360175afe21ac53d0904968e4 Mon Sep 17 00:00:00 2001 From: Alexander Aring Date: Sun, 9 Feb 2014 10:35:58 +0100 Subject: [PATCH] bpkfs: fix compiler warning MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit 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 Signed-off-by: Sascha Hauer --- fs/bpkfs.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/fs/bpkfs.c b/fs/bpkfs.c index ae7681afa..8352307e5 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);