X-Git-Url: http://bilbo.iut-bm.univ-fcomte.fr/pub/gitweb/simgrid.git/blobdiff_plain/0af9fb9273bace6930214d00b1000a58ec55742d..5930585fb6f11543a87e4c5c72356ac89222237c:/src/bindings/lua/simgrid_lua.cpp diff --git a/src/bindings/lua/simgrid_lua.cpp b/src/bindings/lua/simgrid_lua.cpp index 63d3dd900a..4fa39db576 100644 --- a/src/bindings/lua/simgrid_lua.cpp +++ b/src/bindings/lua/simgrid_lua.cpp @@ -1,4 +1,4 @@ -/* Copyright (c) 2010-2019. The SimGrid Team. +/* Copyright (c) 2010-2020. The SimGrid Team. * All rights reserved. */ /* This program is free software; you can redistribute it and/or modify it @@ -26,8 +26,8 @@ extern "C" int luaopen_simgrid(lua_State* L); * * - Argument 1 (string): the text to print */ -static int debug(lua_State* L) { - +static int debug(lua_State* L) +{ const char* str = luaL_checkstring(L, 1); XBT_DEBUG("%s", str); return 0; @@ -85,7 +85,7 @@ static int dump(lua_State* L) lua_pushvalue(L, -2); /* table key val key */ - XBT_DEBUG("%s", sglua_keyvalue_tostring(L, -1, -2)); + XBT_DEBUG("%s", sglua_keyvalue_tostring(L, -1, -2).c_str()); } lua_settop(L, argc); // Remove everything except the initial arguments