From eca6defda6dae30818c4c1cd9eea09544fd6b652 Mon Sep 17 00:00:00 2001 From: kris Date: Fri, 19 Mar 2010 05:21:06 +0000 Subject: [PATCH] a couple more __func__ changes --- nse_main.cc | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/nse_main.cc b/nse_main.cc index e614c9f77..b96addb4c 100644 --- a/nse_main.cc +++ b/nse_main.cc @@ -502,7 +502,7 @@ void nse_restore (lua_State *L, int number) /* Call WAITING_TO_RUNNING (defined in nse_main.lua) on the thread and any other arguments. */ if (lua_pcall(L, number+1, 0, 0) != 0) - fatal("nse_restore: WAITING_TO_RUNNING error!\n%s", lua_tostring(L, -1)); + fatal("%s: WAITING_TO_RUNNING error!\n%s", __func__, lua_tostring(L, -1)); } /* void nse_destructor (lua_State *L, char what) [-(1|2), +0, e] @@ -532,7 +532,7 @@ void nse_destructor (lua_State *L, char what) lua_pushnil(L); /* no destructor, we are removing */ } if (lua_pcall(L, 4, 0, 0) != 0) - fatal("nse_destructor: NSE_DESTRUCTOR error!\n%s", lua_tostring(L, -1)); + fatal("%s: NSE_DESTRUCTOR error!\n%s", __func__, lua_tostring(L, -1)); lua_pop(L, what == 'a' ? 2 : 1); }