X-Git-Url: https://pd.if.org/git/?p=uuid;a=blobdiff_plain;f=postgres%2Fuuid.c;h=d63c1f423b926fa6e59f6ae76b264da96bc5fe60;hp=eb5539986c80dc705ecfddcef2d6217a4a2955ad;hb=3f27952816b29942ca1353b917c278addd68336c;hpb=551571c44e02d06fc41adb148e843a6f3b6326b2 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);