From: Julian Seward Date: Wed, 3 May 2006 13:52:17 +0000 (+0000) Subject: Print a slightly more helpful error message if the log file creation fails. X-Git-Tag: svn/VALGRIND_3_2_0~83 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=5771e24833707db37acdf2c494bf47fb1a1bfd27;p=thirdparty%2Fvalgrind.git Print a slightly more helpful error message if the log file creation fails. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5876 --- diff --git a/coregrind/m_main.c b/coregrind/m_main.c index 8b5a1d3e07..3b542fe9ba 100644 --- a/coregrind/m_main.c +++ b/coregrind/m_main.c @@ -1392,8 +1392,8 @@ static Bool process_cmd_line_options( UInt* client_auxv, const char* toolname ) // was some other file error, we give up. if (sres.val != VKI_EEXIST) { VG_(message)(Vg_UserMsg, - "Can't create/open log file '%s.%d'; giving up!", - VG_(clo_log_name), pid); + "Can't create log file '%s' (%s); giving up!", + logfilename, VG_(strerror)(sres.val)); VG_(bad_option)( "--log-file= (didn't work out for some reason.)"); /*NOTREACHED*/