]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Print a slightly more helpful error message if the log file creation fails.
authorJulian Seward <jseward@acm.org>
Wed, 3 May 2006 13:52:17 +0000 (13:52 +0000)
committerJulian Seward <jseward@acm.org>
Wed, 3 May 2006 13:52:17 +0000 (13:52 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@5876

coregrind/m_main.c

index 8b5a1d3e07c0ef3ade6dc1818dc6aaa06c920b8c..3b542fe9ba0ad2bea778b7af86987798fad77e00 100644 (file)
@@ -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=<file> (didn't work out for some reason.)");
                   /*NOTREACHED*/