Skip to content

Commit

Permalink
Merge branch 'mr/vcs-svn-printf-ulong' into maint
Browse files Browse the repository at this point in the history
Code cleanup.

* mr/vcs-svn-printf-ulong:
  vcs-svn/fast_export: fix timestamp fmt specifiers
  • Loading branch information
gitster committed Sep 29, 2016
2 parents 633212b + 5efc60c commit 7333629
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions vcs-svn/fast_export.c
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ void fast_export_begin_note(uint32_t revision, const char *author,
static int firstnote = 1;
size_t loglen = strlen(log);
printf("commit %s\n", note_ref);
printf("committer %s <%s@%s> %ld +0000\n", author, author, "local", timestamp);
printf("committer %s <%s@%s> %lu +0000\n", author, author, "local", timestamp);
printf("data %"PRIuMAX"\n", (uintmax_t)loglen);
fwrite(log, loglen, 1, stdout);
if (firstnote) {
Expand Down Expand Up @@ -107,7 +107,7 @@ void fast_export_begin_commit(uint32_t revision, const char *author,
}
printf("commit %s\n", local_ref);
printf("mark :%"PRIu32"\n", revision);
printf("committer %s <%s@%s> %ld +0000\n",
printf("committer %s <%s@%s> %lu +0000\n",
*author ? author : "nobody",
*author ? author : "nobody",
*uuid ? uuid : "local", timestamp);
Expand Down

0 comments on commit 7333629

Please sign in to comment.