diff options
author | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2000-02-25 17:12:57 +0000 |
---|---|---|
committer | tradke <tradke@ebee0441-1374-4afa-a3b5-247f3ba15b9a> | 2000-02-25 17:12:57 +0000 |
commit | 0e96493692789d2492379290fdbf2e4a7e72aceb (patch) | |
tree | c662ec7528fd06bda4482ae58a6669cfdf046175 /src/ioFlexGH.h | |
parent | 5c5bb01905900966cc2aef4c9ba424694a63194b (diff) |
More stuff for steering parameters.
Thomas
git-svn-id: http://svn.cactuscode.org/arrangements/CactusPUGHIO/IOFlexIO/trunk@94 ebee0441-1374-4afa-a3b5-247f3ba15b9a
Diffstat (limited to 'src/ioFlexGH.h')
-rw-r--r-- | src/ioFlexGH.h | 13 |
1 files changed, 4 insertions, 9 deletions
diff --git a/src/ioFlexGH.h b/src/ioFlexGH.h index cbc1614..ee0b947 100644 --- a/src/ioFlexGH.h +++ b/src/ioFlexGH.h @@ -60,15 +60,10 @@ \ int error_code = fn_call; \ \ - if (error_code < 0) { \ - char *msg = (char*) malloc(strlen(__FILE__) + strlen(#fn_call) + 160);\ - \ - sprintf (msg, \ - "IEEEIO call %s returned error code %d, file %s, line %d\n", \ - #fn_call, error_code, __FILE__, __LINE__); \ - CCTK_WARN (1, msg); \ - free (msg); \ - } \ + if (error_code < 0) \ + CCTK_VWarn (1, __LINE__, __FILE__, CCTK_THORNSTRING, \ + "IEEEIO call '%s' returned error code %d\n", \ + #fn_call, error_code); \ } while (0) |