Merge pull request #116 from MasahikoSawada/fix_format_ident
Change format identifier %lu to UINT64_FORMAT for portability.
This commit is contained in:
commit
b16886d4ea
@ -1307,7 +1307,7 @@ pgut_malloc(size_t size)
|
|||||||
if ((ret = malloc(size)) == NULL)
|
if ((ret = malloc(size)) == NULL)
|
||||||
ereport(FATAL,
|
ereport(FATAL,
|
||||||
(errcode_errno(),
|
(errcode_errno(),
|
||||||
errmsg("could not allocate memory (%lu bytes): ",
|
errmsg("could not allocate memory (" UINT64_FORMAT " bytes): ",
|
||||||
(unsigned long) size)));
|
(unsigned long) size)));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
@ -1320,7 +1320,7 @@ pgut_realloc(void *p, size_t size)
|
|||||||
if ((ret = realloc(p, size)) == NULL)
|
if ((ret = realloc(p, size)) == NULL)
|
||||||
ereport(FATAL,
|
ereport(FATAL,
|
||||||
(errcode_errno(),
|
(errcode_errno(),
|
||||||
errmsg("could not re-allocate memory (%lu bytes): ",
|
errmsg("could not re-allocate memory (" UINT64_FORMAT " bytes): ",
|
||||||
(unsigned long) size)));
|
(unsigned long) size)));
|
||||||
return ret;
|
return ret;
|
||||||
}
|
}
|
||||||
|
@ -1306,7 +1306,7 @@ repack_index_swap(PG_FUNCTION_ARGS)
|
|||||||
orig_idx_oid);
|
orig_idx_oid);
|
||||||
execute(SPI_OK_SELECT, str.data);
|
execute(SPI_OK_SELECT, str.data);
|
||||||
if (SPI_processed != 1)
|
if (SPI_processed != 1)
|
||||||
elog(ERROR, "Could not find index 'index_%u', found %lu matches",
|
elog(ERROR, "Could not find index 'index_%u', found " UINT64_FORMAT " matches",
|
||||||
orig_idx_oid, (uint64) SPI_processed);
|
orig_idx_oid, (uint64) SPI_processed);
|
||||||
|
|
||||||
tuptable = SPI_tuptable;
|
tuptable = SPI_tuptable;
|
||||||
|
Loading…
x
Reference in New Issue
Block a user