From 4ab8f9383d1bda8e3b9efeea43df5dc00cbea875 Mon Sep 17 00:00:00 2001 From: Michael Jung Date: Fri, 29 Jul 2022 09:22:09 +0200 Subject: [PATCH] w25qxxxjv.c: Use PRIxOFF to format off_t Signed-off-by: Michael Jung --- drivers/mtd/w25qxxxjv.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/drivers/mtd/w25qxxxjv.c b/drivers/mtd/w25qxxxjv.c index b84fb9f971..ad331edcd7 100644 --- a/drivers/mtd/w25qxxxjv.c +++ b/drivers/mtd/w25qxxxjv.c @@ -34,6 +34,7 @@ #include #include #include +#include #include #include @@ -1006,8 +1007,8 @@ static int w25qxxxjv_write_page(struct w25qxxxjv_dev_s *priv, if (ret < 0) { - ferr("ERROR: QSPI_MEMORY failed writing address=%06jx\n", - (uintmax_t)address); + ferr("ERROR: QSPI_MEMORY failed writing address=%06"PRIxOFF"\n", + address); return ret; }