2
0
Fork 0

[lua] fix usage of lua_typename

This commit is contained in:
Stefan Bühler 2013-08-21 13:49:49 +02:00
parent 8a0a8715d0
commit 9f9fe72d97
2 changed files with 4 additions and 4 deletions

View File

@ -56,7 +56,7 @@ static liValue* li_value_from_lua_table(liServer *srv, lua_State *L, int ndx) {
break;
default:
ERROR(srv, "Unexpted key type in table: %s (%i) - skipping entry", lua_typename(L, -1), lua_type(L, -1));
ERROR(srv, "Unexpted key type in table: %s (%i) - skipping entry", lua_typename(L, lua_type(L, -1)), lua_type(L, -1));
lua_pop(L, 1);
break;
}
@ -130,7 +130,7 @@ liValue* li_value_from_lua(liServer *srv, lua_State *L) {
case LUA_TTHREAD:
case LUA_TNONE:
default:
ERROR(srv, "Unexpected lua type: %s (%i)", lua_typename(L, -1), lua_type(L, -1));
ERROR(srv, "Unexpected lua type: %s (%i)", lua_typename(L, lua_type(L, -1)), lua_type(L, -1));
lua_pop(L, 1);
return NULL;
}

View File

@ -412,7 +412,7 @@ static luaPlugin* lua_plugin_create_data(liServer *srv, lua_State *L) {
break;
default:
ERROR(srv, "Unexpted key type in table 'actions': %s (%i) - skipping entry", lua_typename(L, -1), lua_type(L, -1));
ERROR(srv, "Unexpted key type in table 'actions': %s (%i) - skipping entry", lua_typename(L, lua_type(L, -1)), lua_type(L, -1));
lua_pop(L, 1);
break;
}
@ -438,7 +438,7 @@ static luaPlugin* lua_plugin_create_data(liServer *srv, lua_State *L) {
break;
default:
ERROR(srv, "Unexpted key type in table 'setups': %s (%i) - skipping entry", lua_typename(L, -1), lua_type(L, -1));
ERROR(srv, "Unexpted key type in table 'setups': %s (%i) - skipping entry", lua_typename(L, lua_type(L, -1)), lua_type(L, -1));
lua_pop(L, 1);
break;
}