|
From: <sv...@va...> - 2005-12-19 19:40:16
|
Author: njn
Date: 2005-12-19 19:40:12 +0000 (Mon, 19 Dec 2005)
New Revision: 5382
Log:
Fix a minor --gen-suppressions output bug.
Modified:
trunk/coregrind/m_errormgr.c
Modified: trunk/coregrind/m_errormgr.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_errormgr.c 2005-12-19 19:38:43 UTC (rev 5381)
+++ trunk/coregrind/m_errormgr.c 2005-12-19 19:40:12 UTC (rev 5382)
@@ -404,19 +404,21 @@
if (stop_at > VG_MAX_SUPP_CALLERS) stop_at =3D VG_MAX_SUPP_CALLERS;
vg_assert(stop_at > 0);
=20
- VG_(printf)("{\n");
- VG_(printf)(" <insert a suppression name here>\n");
-
if (ThreadErr =3D=3D err->ekind || MutexErr =3D=3D err->ekind) {
+ VG_(printf)("{\n");
+ VG_(printf)(" <insert a suppression name here>\n");
VG_(printf)(" core:PThread\n");
=20
} else {
Char* name =3D VG_TDICT_CALL(tool_get_error_name, err);
if (NULL =3D=3D name) {
VG_(message)(Vg_UserMsg,=20
- "(tool does not allow error to be suppressed)");
+ "(%s does not allow error to be suppressed)",
+ VG_(details).name);
return;
}
+ VG_(printf)("{\n");
+ VG_(printf)(" <insert a suppression name here>\n");
VG_(printf)(" %s:%s\n", VG_(details).name, name);
VG_TDICT_CALL(tool_print_extra_suppression_info, err);
}
|