diff --git a/drivers/rwbuffer.c b/drivers/rwbuffer.c index 106592ab9b4..3fa71d54b7f 100644 --- a/drivers/rwbuffer.c +++ b/drivers/rwbuffer.c @@ -25,6 +25,7 @@ #include #include +#include #include #include #include @@ -535,7 +536,8 @@ int rwb_invalidate_writebuffer(FAR struct rwbuffer_s *rwb, off_t wrbend; off_t invend; - finfo("startblock=%d blockcount=%p\n", startblock, blockcount); + finfo("startblock=%jd blockcount=%zu\n", + (intmax_t)startblock, blockcount); ret = rwb_semtake(&rwb->wrsem); if (ret < 0) @@ -676,7 +678,8 @@ int rwb_invalidate_readahead(FAR struct rwbuffer_s *rwb, off_t rhbend; off_t invend; - finfo("startblock=%d blockcount=%p\n", startblock, blockcount); + finfo("startblock=%jd blockcount=%zu\n", + (intmax_t)startblock, blockcount); ret = rwb_semtake(&rwb->rhsem); if (ret < 0)