summary | shortlog | log | commit | commitdiff | tree
raw | patch | inline | side by side (parent: 8ac069a)
raw | patch | inline | side by side (parent: 8ac069a)
author | Junio C Hamano <junkio@cox.net> | |
Tue, 10 May 2005 06:48:21 +0000 (23:48 -0700) | ||
committer | Junio C Hamano <junkio@cox.net> | |
Tue, 10 May 2005 06:48:21 +0000 (23:48 -0700) |
Reporting st.st_size with %ld is simply wrong, as H Peter Anvin
says. No other pull drivers report the failure with size
anyway, so yank it out. This is a cop-out patch but should be
good enough.
Signed-off-by: Junio C Hamano <junkio@cox.net>
says. No other pull drivers report the failure with size
anyway, so yank it out. This is a cop-out patch but should be
good enough.
Signed-off-by: Junio C Hamano <junkio@cox.net>
local-pull.c | patch | blob | history |
diff --git a/local-pull.c b/local-pull.c
index acfcbb69f570d2e4cd6cfb2e2fed030ff9065ef0..3a342ab18390d7ce0df1f970a4961b31548a9417 100644 (file)
--- a/local-pull.c
+++ b/local-pull.c
munmap(map, st.st_size);
close(ofd);
if (status)
- fprintf(stderr, "cannot write %s (%ld bytes)\n",
- dest_filename, st.st_size);
+ fprintf(stderr, "cannot write %s\n", dest_filename);
else
pull_say("copy %s\n", hex);
return status;