PRItime: introduce a new "printf format" for timestamps
[gitweb.git] / refs / files-backend.c
index dae0522673b9eebb34a60b3b346c0f7dac4b9083..ecbb13dc4b8a07bd79dac43aa7f152a460480347 100644 (file)
@@ -4131,7 +4131,7 @@ static int expire_reflog_ent(struct object_id *ooid, struct object_id *noid,
                        printf("prune %s", message);
        } else {
                if (cb->newlog) {
-                       fprintf(cb->newlog, "%s %s %s %lu %+05d\t%s",
+                       fprintf(cb->newlog, "%s %s %s %"PRItime" %+05d\t%s",
                                oid_to_hex(ooid), oid_to_hex(noid),
                                email, timestamp, tz, message);
                        oidcpy(&cb->last_kept_oid, noid);