From 2277fdd00175e6158b6863c3c57a5bf73082333c Mon Sep 17 00:00:00 2001
From: Jianghua Yang <yjhjstz@gmail.com>
Date: Mon, 23 Mar 2026 18:29:49 -0700
Subject: [PATCH v1] Fix wrong variable and format specifier in
 test_bloomfilter error message

When checking for an invalid number of elements, the error message
incorrectly reported the value of the 'tests' variable instead of
'nelements'.  Additionally, 'nelements' is of type int64, so the
format specifier should be INT64_FORMAT rather than %d.

Author: Jianghua Yang <yjhjstz@gmail.com>
---
 src/test/modules/test_bloomfilter/test_bloomfilter.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/src/test/modules/test_bloomfilter/test_bloomfilter.c b/src/test/modules/test_bloomfilter/test_bloomfilter.c
index 4e072183604..df41066138c 100644
--- a/src/test/modules/test_bloomfilter/test_bloomfilter.c
+++ b/src/test/modules/test_bloomfilter/test_bloomfilter.c
@@ -125,7 +125,7 @@ test_bloomfilter(PG_FUNCTION_ARGS)
 		elog(ERROR, "invalid number of tests: %d", tests);
 
 	if (nelements < 0)
-		elog(ERROR, "invalid number of elements: %d", tests);
+		elog(ERROR, "invalid number of elements: " INT64_FORMAT, nelements);
 
 	for (i = 0; i < tests; i++)
 	{
-- 
2.50.1 (Apple Git-155)

