From: Peter Eisentraut <peter_e@gmx.net>
Date: Fri, 8 Apr 2016 16:40:15 +0000 (-0400)
Subject: Replace printf format %i by %d
X-Git-Tag: REL9_6_BETA1~238
X-Git-Url: https://granicus.if.org/sourcecode?a=commitdiff_plain;h=339025c68f95d3cb2c42478109cafeaf414c7fe0;p=postgresql

Replace printf format %i by %d

see also ce8d7bb6440710058503d213b2aafcdf56a5b481
---

diff --git a/contrib/pageinspect/heapfuncs.c b/contrib/pageinspect/heapfuncs.c
index 38eb9783a5..b7d75b0e75 100644
--- a/contrib/pageinspect/heapfuncs.c
+++ b/contrib/pageinspect/heapfuncs.c
@@ -436,7 +436,7 @@ tuple_data_split(PG_FUNCTION_ARGS)
 		if (!t_bits_str)
 			ereport(ERROR,
 					(errcode(ERRCODE_DATA_CORRUPTED),
-					 errmsg("argument of t_bits is null, but it is expected to be null and %i character long",
+					 errmsg("argument of t_bits is null, but it is expected to be null and %d character long",
 							bits_len * 8)));
 
 		bits_str_len = strlen(t_bits_str);
@@ -448,7 +448,7 @@ tuple_data_split(PG_FUNCTION_ARGS)
 		if (bits_len * 8 != bits_str_len)
 			ereport(ERROR,
 					(errcode(ERRCODE_DATA_CORRUPTED),
-					 errmsg("unexpected length of t_bits %u, expected %i",
+					 errmsg("unexpected length of t_bits %u, expected %d",
 							bits_str_len, bits_len * 8)));
 
 		/* do the conversion */
diff --git a/src/backend/commands/matview.c b/src/backend/commands/matview.c
index 43acec295d..f00aab39e7 100644
--- a/src/backend/commands/matview.c
+++ b/src/backend/commands/matview.c
@@ -531,7 +531,7 @@ make_temptable_name_n(char *tempname, int n)
 
 	initStringInfo(&namebuf);
 	appendStringInfoString(&namebuf, tempname);
-	appendStringInfo(&namebuf, "_%i", n);
+	appendStringInfo(&namebuf, "_%d", n);
 	return namebuf.data;
 }
 
diff --git a/src/test/isolation/isolation_main.c b/src/test/isolation/isolation_main.c
index ac951f2df2..7a51cc1656 100644
--- a/src/test/isolation/isolation_main.c
+++ b/src/test/isolation/isolation_main.c
@@ -112,7 +112,7 @@ isolation_init(int argc, char **argv)
 	argv0_len = strlcpy(saved_argv0, argv[0], MAXPGPATH);
 	if (argv0_len >= MAXPGPATH)
 	{
-		fprintf(stderr, _("path for isolationtester executable is longer than %i bytes\n"),
+		fprintf(stderr, _("path for isolationtester executable is longer than %d bytes\n"),
 				(int) (MAXPGPATH - 1));
 		exit(2);
 	}