|
From: <sv...@va...> - 2006-05-03 13:52:35
|
Author: sewardj
Date: 2006-05-03 14:52:17 +0100 (Wed, 03 May 2006)
New Revision: 5876
Log:
Print a slightly more helpful error message if the log file creation fail=
s.
Modified:
trunk/coregrind/m_main.c
Modified: trunk/coregrind/m_main.c
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=
=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D=3D
--- trunk/coregrind/m_main.c 2006-05-03 00:43:20 UTC (rev 5875)
+++ trunk/coregrind/m_main.c 2006-05-03 13:52:17 UTC (rev 5876)
@@ -1392,8 +1392,8 @@
// was some other file error, we give up.
if (sres.val !=3D VKI_EEXIST) {
VG_(message)(Vg_UserMsg,=20
- "Can't create/open log file '%s.%d'; giving up!",=20
- VG_(clo_log_name), pid);
+ "Can't create log file '%s' (%s); giving up!",=20
+ logfilename, VG_(strerror)(sres.val));
VG_(bad_option)(
"--log-file=3D<file> (didn't work out for some reason.)");
/*NOTREACHED*/
|