mirror of
https://github.com/postgres/postgres.git
synced 2025-04-22 23:02:54 +03:00
Replace printf format %i by %d
see also ce8d7bb6440710058503d213b2aafcdf56a5b481
This commit is contained in:
parent
01a07e6c11
commit
339025c68f
@ -436,7 +436,7 @@ tuple_data_split(PG_FUNCTION_ARGS)
|
|||||||
if (!t_bits_str)
|
if (!t_bits_str)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_DATA_CORRUPTED),
|
(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_len * 8)));
|
||||||
|
|
||||||
bits_str_len = strlen(t_bits_str);
|
bits_str_len = strlen(t_bits_str);
|
||||||
@ -448,7 +448,7 @@ tuple_data_split(PG_FUNCTION_ARGS)
|
|||||||
if (bits_len * 8 != bits_str_len)
|
if (bits_len * 8 != bits_str_len)
|
||||||
ereport(ERROR,
|
ereport(ERROR,
|
||||||
(errcode(ERRCODE_DATA_CORRUPTED),
|
(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)));
|
bits_str_len, bits_len * 8)));
|
||||||
|
|
||||||
/* do the conversion */
|
/* do the conversion */
|
||||||
|
@ -531,7 +531,7 @@ make_temptable_name_n(char *tempname, int n)
|
|||||||
|
|
||||||
initStringInfo(&namebuf);
|
initStringInfo(&namebuf);
|
||||||
appendStringInfoString(&namebuf, tempname);
|
appendStringInfoString(&namebuf, tempname);
|
||||||
appendStringInfo(&namebuf, "_%i", n);
|
appendStringInfo(&namebuf, "_%d", n);
|
||||||
return namebuf.data;
|
return namebuf.data;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -112,7 +112,7 @@ isolation_init(int argc, char **argv)
|
|||||||
argv0_len = strlcpy(saved_argv0, argv[0], MAXPGPATH);
|
argv0_len = strlcpy(saved_argv0, argv[0], MAXPGPATH);
|
||||||
if (argv0_len >= 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));
|
(int) (MAXPGPATH - 1));
|
||||||
exit(2);
|
exit(2);
|
||||||
}
|
}
|
||||||
|
Loading…
x
Reference in New Issue
Block a user