Skip to content

Commit 339025c

Browse files
committed
Replace printf format %i by %d
see also ce8d7bb
1 parent 01a07e6 commit 339025c

File tree

3 files changed

+4
-4
lines changed

3 files changed

+4
-4
lines changed

contrib/pageinspect/heapfuncs.c

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -436,7 +436,7 @@ tuple_data_split(PG_FUNCTION_ARGS)
436436
if (!t_bits_str)
437437
ereport(ERROR,
438438
(errcode(ERRCODE_DATA_CORRUPTED),
439-
errmsg("argument of t_bits is null, but it is expected to be null and %i character long",
439+
errmsg("argument of t_bits is null, but it is expected to be null and %d character long",
440440
bits_len * 8)));
441441

442442
bits_str_len = strlen(t_bits_str);
@@ -448,7 +448,7 @@ tuple_data_split(PG_FUNCTION_ARGS)
448448
if (bits_len * 8 != bits_str_len)
449449
ereport(ERROR,
450450
(errcode(ERRCODE_DATA_CORRUPTED),
451-
errmsg("unexpected length of t_bits %u, expected %i",
451+
errmsg("unexpected length of t_bits %u, expected %d",
452452
bits_str_len, bits_len * 8)));
453453

454454
/* do the conversion */

src/backend/commands/matview.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -531,7 +531,7 @@ make_temptable_name_n(char *tempname, int n)
531531

532532
initStringInfo(&namebuf);
533533
appendStringInfoString(&namebuf, tempname);
534-
appendStringInfo(&namebuf, "_%i", n);
534+
appendStringInfo(&namebuf, "_%d", n);
535535
return namebuf.data;
536536
}
537537

src/test/isolation/isolation_main.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -112,7 +112,7 @@ isolation_init(int argc, char **argv)
112112
argv0_len = strlcpy(saved_argv0, argv[0], MAXPGPATH);
113113
if (argv0_len >= MAXPGPATH)
114114
{
115-
fprintf(stderr, _("path for isolationtester executable is longer than %i bytes\n"),
115+
fprintf(stderr, _("path for isolationtester executable is longer than %d bytes\n"),
116116
(int) (MAXPGPATH - 1));
117117
exit(2);
118118
}

0 commit comments

Comments
 (0)
pFad - Phonifier reborn

Pfad - The Proxy pFad of © 2024 Garber Painting. All rights reserved.

Note: This service is not intended for secure transactions such as banking, social media, email, or purchasing. Use at your own risk. We assume no liability whatsoever for broken pages.


Alternative Proxies:

Alternative Proxy

pFad Proxy

pFad v3 Proxy

pFad v4 Proxy