]> pd.if.org Git - uuid/commitdiff
fix sprintf format
authorNathan Wagner <nw@hydaspes.if.org>
Sun, 24 Jan 2016 11:41:21 +0000 (11:41 +0000)
committerNathan Wagner <nw@hydaspes.if.org>
Sun, 24 Jan 2016 11:41:21 +0000 (11:41 +0000)
postgres/uuid.c

index eb5539986c80dc705ecfddcef2d6217a4a2955ad..d63c1f423b926fa6e59f6ae76b264da96bc5fe60 100644 (file)
@@ -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);