Location via proxy:   [ UP ]  
[Report a bug]   [Manage cookies]                
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

+2-2
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

+1-1
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

+1-1
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)