Use %zd to print size_t arguments. Signed-off-by: Sascha Hauer <s.hauer@xxxxxxxxxxxxxx> --- fs/fat/fat.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fs/fat/fat.c b/fs/fat/fat.c index e65ef58..f8094d0 100644 --- a/fs/fat/fat.c +++ b/fs/fat/fat.c @@ -167,7 +167,7 @@ static int fat_write(struct device_d *_dev, FILE *f, const void *buf, size_t ins ret = f_write(f_file, buf, insize, &outsize); - debug("%s: %d %d %d %p\n", __func__, ret, insize, outsize, f_file); + debug("%s: %d %zd %d %p\n", __func__, ret, insize, outsize, f_file); if (ret) return ret; @@ -260,7 +260,7 @@ static int fat_read(struct device_d *_dev, FILE *f, void *buf, size_t insize) ret = f_read(f_file, buf, insize, &outsize); - debug("%s: %d %d %d %p\n", __func__, ret, insize, outsize, f_file); + debug("%s: %d %zd %d %p\n", __func__, ret, insize, outsize, f_file); if (ret) return ret; -- 2.0.0 _______________________________________________ barebox mailing list barebox@xxxxxxxxxxxxxxxxxxx http://lists.infradead.org/mailman/listinfo/barebox