|
From: <sv...@va...> - 2005-04-24 00:21:06
|
Author: njn
Date: 2005-04-24 01:21:01 +0100 (Sun, 24 Apr 2005)
New Revision: 3550
Modified:
trunk/cachegrind/cg_main.c
Log:
Inline function that's only used once.
Modified: trunk/cachegrind/cg_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/cachegrind/cg_main.c 2005-04-24 00:04:42 UTC (rev 3549)
+++ trunk/cachegrind/cg_main.c 2005-04-24 00:21:01 UTC (rev 3550)
@@ -779,15 +779,6 @@
=20
static Char* cachegrind_out_file;
=20
-static void file_err ( void )
-{
- VG_(message)(Vg_UserMsg,
- "error: can't open cache simulation output file `%s'",
- cachegrind_out_file );
- VG_(message)(Vg_UserMsg,
- " ... so simulation results will be missing.");
-}
-
static void fprint_lineCC(Int fd, lineCC* n)
{
Char buf[512];
@@ -819,7 +810,11 @@
if (fd < 0) {
// If the file can't be opened for whatever reason (conflict
// between multiple cachegrinded processes?), give up now.
- file_err();=20
+ VG_(message)(Vg_UserMsg,
+ "error: can't open cache simulation output file `%s'",
+ cachegrind_out_file );
+ VG_(message)(Vg_UserMsg,
+ " ... so simulation results will be missing.");
return;
}
=20
|