vcs-svn/fast_export: fix timestamp fmt specifiers
Two instances of %ld being used for unsigned longs Signed-off-by: Mike Ralphson <mike.ralphson@gmail.com> Signed-off-by: Junio C Hamano <gitster@pobox.com>
This commit is contained in:

committed by
Junio C Hamano

parent
282616c72d
commit
5efc60c12f
@ -73,7 +73,7 @@ void fast_export_begin_note(uint32_t revision, const char *author,
|
|||||||
static int firstnote = 1;
|
static int firstnote = 1;
|
||||||
size_t loglen = strlen(log);
|
size_t loglen = strlen(log);
|
||||||
printf("commit %s\n", note_ref);
|
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);
|
printf("data %"PRIuMAX"\n", (uintmax_t)loglen);
|
||||||
fwrite(log, loglen, 1, stdout);
|
fwrite(log, loglen, 1, stdout);
|
||||||
if (firstnote) {
|
if (firstnote) {
|
||||||
@ -107,7 +107,7 @@ void fast_export_begin_commit(uint32_t revision, const char *author,
|
|||||||
}
|
}
|
||||||
printf("commit %s\n", local_ref);
|
printf("commit %s\n", local_ref);
|
||||||
printf("mark :%"PRIu32"\n", revision);
|
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",
|
||||||
*author ? author : "nobody",
|
*author ? author : "nobody",
|
||||||
*uuid ? uuid : "local", timestamp);
|
*uuid ? uuid : "local", timestamp);
|
||||||
|
Reference in New Issue
Block a user