summaryrefslogtreecommitdiff
path: root/fast-import.c
diff options
context:
space:
mode:
authorLibravatar Johannes Sixt <j6t@kdbg.org>2010-03-06 16:40:39 +0100
committerLibravatar Junio C Hamano <gitster@pobox.com>2010-03-07 00:37:35 -0800
commitebaa79f462c48e0ed0341d9c8f9c97de557afcfd (patch)
treef3657097f459f1446ec6dce275aeac8101261f50 /fast-import.c
parentModernize t5530-upload-pack-error. (diff)
downloadtgif-ebaa79f462c48e0ed0341d9c8f9c97de557afcfd.tar.xz
Make report() from usage.c public as vreportf() and use it.
There exist already a number of static functions named 'report', therefore, the function name was changed. Signed-off-by: Johannes Sixt <j6t@kdbg.org> Signed-off-by: Junio C Hamano <gitster@pobox.com>
Diffstat (limited to 'fast-import.c')
-rw-r--r--fast-import.c8
1 files changed, 3 insertions, 5 deletions
diff --git a/fast-import.c b/fast-import.c
index 309f2c58a2..f2ef20cbf0 100644
--- a/fast-import.c
+++ b/fast-import.c
@@ -483,14 +483,12 @@ static void dump_marks(void);
static NORETURN void die_nicely(const char *err, va_list params)
{
static int zombie;
- char message[2 * PATH_MAX];
- vsnprintf(message, sizeof(message), err, params);
- fputs("fatal: ", stderr);
- fputs(message, stderr);
- fputc('\n', stderr);
+ vreportf("fatal: ", err, params);
if (!zombie) {
+ char message[2 * PATH_MAX];
+
zombie = 1;
write_crash_report(message);
end_packfile();