libxfs: fix printing of cache.c_maxcount.
PATCH 1/1 libxfs: fix printing of cache.c_maxcount.
From: Thiago Becker <[email protected]>
c_maxcount is usigned, but is being printed as signed.
Signed-off-by Thiago Becker <[email protected]>
--- libxfs/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)
libxfs/cache.c +1 -1
@@ -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);
Signature · 1 line
2.53.0
Quoted 26 lines · On 2026-03-20 10:27:34, [email protected] wrote:
From: Thiago Becker <[email protected]>
c_maxcountis usigned, but is being printed as signed.Signed-off-by Thiago Becker <[email protected]>--- libxfs/cache.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-)libxfs/cache.c +1
-1@@ -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);Signature · 1 line
2.53.0
looks good to me
Reviewed-by Andrey Albershteyn <[email protected]>
Signature · 1 line
- Andrey