]> git.ipfire.org Git - thirdparty/valgrind.git/commitdiff
Inline function that's only used once.
authorNicholas Nethercote <njn@valgrind.org>
Sun, 24 Apr 2005 00:21:01 +0000 (00:21 +0000)
committerNicholas Nethercote <njn@valgrind.org>
Sun, 24 Apr 2005 00:21:01 +0000 (00:21 +0000)
git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3550

cachegrind/cg_main.c

index 9913606abad70424e864acb5eb9263c9da49638d..640020596490b15301e9db0df2fc6ba9a2b27b48 100644 (file)
@@ -779,15 +779,6 @@ static CC Dw_total;
 
 static Char* cachegrind_out_file;
 
-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 @@ static void fprint_CC_table_and_calc_totals(void)
    if (fd < 0) {
       // If the file can't be opened for whatever reason (conflict
       // between multiple cachegrinded processes?), give up now.
-      file_err(); 
+      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;
    }