Skip to content

Commit

Permalink
fixup! pack-objects: output debug info about deltas
Browse files Browse the repository at this point in the history
  • Loading branch information
dscho committed Sep 15, 2024
1 parent d82ad78 commit ea0fde9
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions builtin/pack-objects.c
Original file line number Diff line number Diff line change
Expand Up @@ -549,7 +549,7 @@ static unsigned long write_no_reuse_object(struct hashfile *f, struct object_ent
hdrlen += sizeof(dheader) - pos;
if (delta_file) {
fprintf(delta_file, "\t\t\t\"delta_type\" : \"OFS\",\n");
fprintf(delta_file, "\t\t\t\"offset\" : %"PRIuMAX",\n", ofs);
fprintf(delta_file, "\t\t\t\"offset\" : %"PRIuMAX",\n", (uintmax_t)ofs);
fprintf(delta_file, "\t\t\t\"delta_base\" : \"%s\",\n", oid_to_hex(&DELTA(entry)->idx.oid));
}
} else if (type == OBJ_REF_DELTA) {
Expand Down Expand Up @@ -668,7 +668,7 @@ static off_t write_reuse_object(struct hashfile *f, struct object_entry *entry,

if (delta_file) {
fprintf(delta_file, "\t\t\t\"delta_type\" : \"OFS\",\n");
fprintf(delta_file, "\t\t\t\"offset\" : %"PRIuMAX",\n", ofs);
fprintf(delta_file, "\t\t\t\"offset\" : %"PRIuMAX",\n", (uintmax_t)ofs);
fprintf(delta_file, "\t\t\t\"delta_base\" : \"%s\",\n", oid_to_hex(&DELTA(entry)->idx.oid));
}
} else if (type == OBJ_REF_DELTA) {
Expand Down

0 comments on commit ea0fde9

Please sign in to comment.