X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=index-pack.c;h=b4ec7361748640c7ced04c10e9087e12c553d928;hb=e75bf76f5462af4185d8260f6feecf24dd24a516;hp=c359f8c9dfda90344277a0c4f0cc8098d6936f3e;hpb=92392b4a4530056918174988200d7c10286a4acd;p=git.git diff --git a/index-pack.c b/index-pack.c index c359f8c9d..b4ec73617 100644 --- a/index-pack.c +++ b/index-pack.c @@ -200,7 +200,8 @@ static void parse_pack_header(void) if (hdr->hdr_signature != htonl(PACK_SIGNATURE)) die("pack signature mismatch"); if (!pack_version_ok(hdr->hdr_version)) - die("pack version %d unsupported", ntohl(hdr->hdr_version)); + die("pack version %"PRIu32" unsupported", + ntohl(hdr->hdr_version)); nr_objects = ntohl(hdr->hdr_entries); use(sizeof(struct pack_header)); @@ -855,7 +856,8 @@ static int git_index_pack_config(const char *k, const char *v, void *cb) if (!strcmp(k, "pack.indexversion")) { pack_idx_default_version = git_config_int(k, v); if (pack_idx_default_version > 2) - die("bad pack.indexversion=%d", pack_idx_default_version); + die("bad pack.indexversion=%"PRIu32, + pack_idx_default_version); return 0; } return git_default_config(k, v, cb);