Movatterモバイル変換


[0]ホーム

URL:


Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Commit339025c

Browse files
committed
Replace printf format %i by %d
see alsoce8d7bb
1 parent01a07e6 commit339025c

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
returnnamebuf.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)

[8]ページ先頭

©2009-2025 Movatter.jp