Skip to content

Commit 5ee5f5a

Browse files
Ramsay Jonesgitster
authored andcommitted
svndump.c: Fix a printf format compiler warning
In particular, on systems that define uint32_t as an unsigned long, gcc complains as follows: CC vcs-svn/svndump.o vcs-svn/svndump.c: In function `svndump_read': vcs-svn/svndump.c:215: warning: int format, uint32_t arg (arg 2) In order to suppress the warning we use the C99 format specifier macro PRIu32 from <inttypes.h>. Signed-off-by: Ramsay Jones <[email protected]> Acked-by: Jonathan Nieder <[email protected]> Signed-off-by: Junio C Hamano <[email protected]>
1 parent 60a2e33 commit 5ee5f5a

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

vcs-svn/svndump.c

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -211,7 +211,7 @@ void svndump_read(const char *url)
211211
if (key == keys.svn_fs_dump_format_version) {
212212
dump_ctx.version = atoi(val);
213213
if (dump_ctx.version > 2)
214-
die("expected svn dump format version <= 2, found %d",
214+
die("expected svn dump format version <= 2, found %"PRIu32,
215215
dump_ctx.version);
216216
} else if (key == keys.uuid) {
217217
dump_ctx.uuid = pool_intern(val);

0 commit comments

Comments
 (0)