From: tbecker@redhat.com
To: linux-xfs@vger.kernel.org
Cc: Thiago Becker <tbecker@redhat.com>
Subject: [PATCH] libxfs: fix printing of cache.c_maxcount.
Date: Fri, 20 Mar 2026 10:27:34 -0300 [thread overview]
Message-ID: <20260320132734.2621943-1-tbecker@redhat.com> (raw)
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
next reply other threads:[~2026-03-20 13:27 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2026-03-20 13:27 tbecker [this message]
2026-03-20 14:17 ` [PATCH] libxfs: fix printing of cache.c_maxcount Andrey Albershteyn
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20260320132734.2621943-1-tbecker@redhat.com \
--to=tbecker@redhat.com \
--cc=linux-xfs@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox