Skip to contentSkip to conversation

libxfs: fix printing of cache.c_maxcount.

PATCH In review [email protected] 2 participants 2 messages Mar 20

lore
Share & tools
lore
#0 lore raw

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.

---
 libxfs/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libxfs/cache.c +1 -1
index af20f385..e6443fa6 100644
@@ -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
Reviewed-by on v1 1/1
#1 lore raw
Quoted 26 lines · On 2026-03-20 10:27:34, [email protected] wrote:

From: Thiago Becker <[email protected]>

c_maxcount is usigned, but is being printed as signed.

---
 libxfs/cache.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
libxfs/cache.c +1 -1
index af20f385..e6443fa6 100644
@@ -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

Signature · 1 line
- Andrey