]> git-server-git.apps.pok.os.sepia.ceph.com Git - xfsprogs-dev.git/commitdiff
libxfs: fix printing of cache.c_maxcount.
authorThiago Becker <tbecker@redhat.com>
Fri, 20 Mar 2026 13:27:34 +0000 (10:27 -0300)
committerAndrey Albershteyn <aalbersh@kernel.org>
Wed, 8 Apr 2026 19:39:57 +0000 (21:39 +0200)
c_maxcount is usigned, but is being printed as signed.

Signed-off-by: Thiago Becker <tbecker@redhat.com>
Reviewed-by: Andrey Albershteyn <aalbersh@kernel.org>
libxfs/cache.c

index 389afeff4a1f169d47dc8a8de2e92f76268937fb..d5d9ba560b63b15c63bd6f70563a35cc0bbf5ebf 100644 (file)
@@ -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);