X-Git-Url: https://asedeno.scripts.mit.edu/gitweb/?a=blobdiff_plain;f=builtin-fast-export.c;h=75132bacfac08591ccb70eca0260be23d0e04a92;hb=3df6499c227c28310b545edc42cdbd713ee0898a;hp=170b82e6ef18481430b5f83fd069b1726791e2de;hpb=6991357513bf8bfbb71a4675e271b386cc273476;p=git.git diff --git a/builtin-fast-export.c b/builtin-fast-export.c index 170b82e6e..75132bacf 100644 --- a/builtin-fast-export.c +++ b/builtin-fast-export.c @@ -116,7 +116,7 @@ static void handle_object(const unsigned char *sha1) mark_next_object(object); - printf("blob\nmark :%d\ndata %lu\n", last_idnum, size); + printf("blob\nmark :%"PRIu32"\ndata %lu\n", last_idnum, size); if (size && fwrite(buf, size, 1, stdout) != 1) die ("Could not write blob %s", sha1_to_hex(sha1)); printf("\n"); @@ -204,7 +204,7 @@ static void handle_commit(struct commit *commit, struct rev_info *rev) reencoded = reencode_string(message, "UTF-8", encoding); if (!commit->parents) printf("reset %s\n", (const char*)commit->util); - printf("commit %s\nmark :%d\n%.*s\n%.*s\ndata %u\n%s", + printf("commit %s\nmark :%"PRIu32"\n%.*s\n%.*s\ndata %u\n%s", (const char *)commit->util, last_idnum, (int)(author_end - author), author, (int)(committer_end - committer), committer,