From 3f27952816b29942ca1353b917c278addd68336c Mon Sep 17 00:00:00 2001 From: Nathan Wagner Date: Sun, 24 Jan 2016 11:41:21 +0000 Subject: [PATCH] fix sprintf format --- postgres/uuid.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/postgres/uuid.c b/postgres/uuid.c index eb55399..d63c1f4 100644 --- a/postgres/uuid.c +++ b/postgres/uuid.c @@ -292,7 +292,7 @@ Datum uuid_cast_from_bytea(PG_FUNCTION_ARGS) { bytea *bit = PG_GETARG_BYTEA_P(0); if (VARSIZE_ANY_EXHDR(bit) != 16) { - elog(ERROR, "invalid length of bytea for cast to uuid, need 16, attempted %d", VARSIZE_ANY_EXHDR(bit)); + elog(ERROR, "invalid length of bytea for cast to uuid, need 16, attempted %ld", VARSIZE_ANY_EXHDR(bit)); } uuid = palloc(UUID_LEN_BIN); -- 2.40.0