git/list[1] front-page[2] threads[3] people[4] search[5] about
 

Re: [PATCH] vcs-svn/fast_export: fix timestamp fmt specifiers

From
Junio C Hamano <gitster@pobox.com>
Date
Sep 14, 2016, 15:56 UTC
Message-ID
<xmqqeg4mscf1.fsf@gitster.mtv.corp.google.com>
In-Reply-To
<01020157276d4d1f-9c995462-4aea-4949-8d29-3dbdbec77dd7-000000@eu-west-1.amazonses.com>
Mike Ralphson <mike.ralphson@gmail.com> writes:
> Two instances of %ld being used for unsigned longs.
>
> Signed-off-by: Mike Ralphson <mike.ralphson@gmail.com>
> ---
Good eyes.  Thanks for spotting.
Show 28 quoted lines
>  vcs-svn/fast_export.c | 4 ++--
>  1 file changed, 2 insertions(+), 2 deletions(-)
>
> diff --git a/vcs-svn/fast_export.c b/vcs-svn/fast_export.c
> index bd0f2c2..97cba39 100644
> --- a/vcs-svn/fast_export.c
> +++ b/vcs-svn/fast_export.c
> @@ -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) {
> @@ -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);
>
> --
> https://github.com/git/git/pull/293
Previous: Mike RalphsonNext: Jeff King
Message 2 of 3 in “vcs-svn/fast_export: fix timestamp fmt specifiers”
  1. vcs-svn/fast_export: fix timestamp fmt specifiersMike Ralphson, Sep 14, 2016
  2. Junio C HamanoSep 14, 2016
  3. Jeff KingSep 14, 2016

Read the whole thread, see it on lore, or plain text.

$ cat FOOTERMessages come from the public archive at lore.kernel.org/git, fetched every hour. The front page is chosen and written each morning by an AI editor and can be wrong; the threads themselves are the record. About and API. For agents: an MCP server at https://gitlist.dev/mcp, and any thread, story or person page as Markdown by adding .md to its URL (or sending Accept: text/markdown). Details in /llms.txt.