X-Git-Url: https://git.tokkee.org/?a=blobdiff_plain;f=show-index.c;h=45bb535773fd9c36f73502df9462f7de800009c8;hb=b71fdc590d660f81e8e2ebfdab989feb60e86dde;hp=57ed9e87b7fca6c899d4c23d709a97dabce28106;hpb=fdcb769916c93b53517ef1b4cae447a3333c9b86;p=git.git diff --git a/show-index.c b/show-index.c index 57ed9e87b..45bb53577 100644 --- a/show-index.c +++ b/show-index.c @@ -68,7 +68,8 @@ int main(int argc, char **argv) ntohl(off64[1]); off64_nr++; } - printf("%llu %s (%08x)\n", (unsigned long long) offset, + printf("%" PRIuMAX " %s (%08"PRIx32")\n", + (uintmax_t) offset, sha1_to_hex(entries[i].sha1), ntohl(entries[i].crc)); }