public inbox for linux-xfs@vger.kernel.org
 help / color / mirror / Atom feed
* [PATCH] libxfs: fix printing of cache.c_maxcount.
@ 2026-03-20 13:27 tbecker
  2026-03-20 14:17 ` Andrey Albershteyn
  0 siblings, 1 reply; 2+ messages in thread
From: tbecker @ 2026-03-20 13:27 UTC (permalink / raw)
  To: linux-xfs; +Cc: Thiago Becker

From: Thiago Becker <tbecker@redhat.com>

c_maxcount is usigned, but is being printed as signed.

Signed-off-by: Thiago Becker <tbecker@redhat.com>
---
 libxfs/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/libxfs/cache.c b/libxfs/cache.c
index af20f385..e6443fa6 100644
--- a/libxfs/cache.c
+++ b/libxfs/cache.c
@@ -85,7 +85,7 @@ cache_expand(
 {
 	pthread_mutex_lock(&cache->c_mutex);
 #ifdef CACHE_DEBUG
-	fprintf(stderr, "doubling cache size to %d\n", 2 * cache->c_maxcount);
+	fprintf(stderr, "doubling cache size to %u\n", 2 * cache->c_maxcount);
 #endif
 	cache->c_maxcount *= 2;
 	pthread_mutex_unlock(&cache->c_mutex);
-- 
2.53.0


^ permalink raw reply related	[flat|nested] 2+ messages in thread

* Re: [PATCH] libxfs: fix printing of cache.c_maxcount.
  2026-03-20 13:27 [PATCH] libxfs: fix printing of cache.c_maxcount tbecker
@ 2026-03-20 14:17 ` Andrey Albershteyn
  0 siblings, 0 replies; 2+ messages in thread
From: Andrey Albershteyn @ 2026-03-20 14:17 UTC (permalink / raw)
  To: tbecker; +Cc: linux-xfs

On 2026-03-20 10:27:34, tbecker@redhat.com wrote:
> From: Thiago Becker <tbecker@redhat.com>
> 
> c_maxcount is usigned, but is being printed as signed.
> 
> Signed-off-by: Thiago Becker <tbecker@redhat.com>
> ---
>  libxfs/cache.c | 2 +-
>  1 file changed, 1 insertion(+), 1 deletion(-)
> 
> diff --git a/libxfs/cache.c b/libxfs/cache.c
> index af20f385..e6443fa6 100644
> --- a/libxfs/cache.c
> +++ b/libxfs/cache.c
> @@ -85,7 +85,7 @@ cache_expand(
>  {
>  	pthread_mutex_lock(&cache->c_mutex);
>  #ifdef CACHE_DEBUG
> -	fprintf(stderr, "doubling cache size to %d\n", 2 * cache->c_maxcount);
> +	fprintf(stderr, "doubling cache size to %u\n", 2 * cache->c_maxcount);
>  #endif
>  	cache->c_maxcount *= 2;
>  	pthread_mutex_unlock(&cache->c_mutex);
> -- 
> 2.53.0
> 
> 

looks good to me
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>

-- 
- Andrey


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2026-03-20 14:18 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2026-03-20 13:27 [PATCH] libxfs: fix printing of cache.c_maxcount tbecker
2026-03-20 14:17 ` Andrey Albershteyn

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox