mirror of
https://git.postgresql.org/git/postgresql.git
synced 2024-12-27 08:39:28 +08:00
Fix compiler warning (unportable sprintf usage)
This commit is contained in:
parent
d1af2694e5
commit
6ca1b1cd95
@ -8,7 +8,7 @@
|
||||
* Portions Copyright (c) 1994, Regents of the University of California
|
||||
*
|
||||
* IDENTIFICATION
|
||||
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.61 2008/09/30 10:52:13 heikki Exp $
|
||||
* $PostgreSQL: pgsql/src/backend/storage/freespace/freespace.c,v 1.62 2008/09/30 14:15:58 tgl Exp $
|
||||
*
|
||||
*
|
||||
* NOTES:
|
||||
@ -382,7 +382,8 @@ fsm_space_needed_to_cat(Size needed)
|
||||
|
||||
/* Can't ask for more space than the highest category represents */
|
||||
if (needed > MaxFSMRequestSize)
|
||||
elog(ERROR, "invalid FSM request size %d", needed);
|
||||
elog(ERROR, "invalid FSM request size %lu",
|
||||
(unsigned long) needed);
|
||||
|
||||
if (needed == 0)
|
||||
return 1;
|
||||
|
Loading…
Reference in New Issue
Block a user