From: Nicholas Nethercote Date: Sun, 24 Apr 2005 00:21:01 +0000 (+0000) Subject: Inline function that's only used once. X-Git-Tag: svn/VALGRIND_3_0_0~768 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=a12089811a3969610b92dba380460784bb686afe;p=thirdparty%2Fvalgrind.git Inline function that's only used once. git-svn-id: svn://svn.valgrind.org/valgrind/trunk@3550 --- diff --git a/cachegrind/cg_main.c b/cachegrind/cg_main.c index 9913606aba..6400205964 100644 --- a/cachegrind/cg_main.c +++ b/cachegrind/cg_main.c @@ -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; }