From: Jonathan Nieder Date: Sun, 27 Mar 2011 17:19:14 +0000 (-0500) Subject: vcs-svn: add missing cast to printf argument X-Git-Tag: v1.7.5-rc0~3^2~3 X-Git-Url: http://git.tremily.us/?a=commitdiff_plain;h=41e6b91f01bc9bb7e1679542a8cce9bd4252fd2e;p=git.git vcs-svn: add missing cast to printf argument gcc -m32 correctly warns: vcs-svn/fast_export.c: In function 'fast_export_commit': vcs-svn/fast_export.c:54:2: warning: format '%llu' expects argument of type 'long long unsigned int', but argument 2 has type 'unsigned int' [-Wformat] Fix it. Signed-off-by: Jonathan Nieder --- diff --git a/vcs-svn/fast_export.c b/vcs-svn/fast_export.c index 2e5bb6725..99ed70b88 100644 --- a/vcs-svn/fast_export.c +++ b/vcs-svn/fast_export.c @@ -51,7 +51,8 @@ void fast_export_commit(uint32_t revision, const char *author, *author ? author : "nobody", *author ? author : "nobody", *uuid ? uuid : "local", timestamp); - printf("data %"PRIuMAX"\n", log->len + strlen(gitsvnline)); + printf("data %"PRIuMAX"\n", + (uintmax_t) (log->len + strlen(gitsvnline))); fwrite(log->buf, log->len, 1, stdout); printf("%s\n", gitsvnline); if (!first_commit_done) {