Skip to content
Snippets Groups Projects
Commit 6ca1b1cd authored by Tom Lane's avatar Tom Lane
Browse files

Fix compiler warning (unportable sprintf usage)

parent d1af2694
No related branches found
No related tags found
No related merge requests found
...@@ -8,7 +8,7 @@ ...@@ -8,7 +8,7 @@
* Portions Copyright (c) 1994, Regents of the University of California * Portions Copyright (c) 1994, Regents of the University of California
* *
* IDENTIFICATION * 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: * NOTES:
...@@ -382,7 +382,8 @@ fsm_space_needed_to_cat(Size needed) ...@@ -382,7 +382,8 @@ fsm_space_needed_to_cat(Size needed)
/* Can't ask for more space than the highest category represents */ /* Can't ask for more space than the highest category represents */
if (needed > MaxFSMRequestSize) if (needed > MaxFSMRequestSize)
elog(ERROR, "invalid FSM request size %d", needed); elog(ERROR, "invalid FSM request size %lu",
(unsigned long) needed);
if (needed == 0) if (needed == 0)
return 1; return 1;
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment