From 8e73a3ed4c43a7cde321ac3b3f21b93bd8f0b9d4 Mon Sep 17 00:00:00 2001 From: YAMAMOTO Takashi Date: Mon, 23 Nov 2020 13:25:44 +0900 Subject: [PATCH] drivers/rwbuffer.c: Fix syslog formats --- drivers/rwbuffer.c | 7 +++++-- 1 file changed, 5 insertions(+), 2 deletions(-) diff --git a/drivers/rwbuffer.c b/drivers/rwbuffer.c index 106592ab9b..3fa71d54b7 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)