From 2792b8946e70f7136319b81a266bb8413b1f55ad Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Tue, 15 Oct 2019 21:07:44 +0200 Subject: [PATCH 1/2] Replace printf() with dmLogInfo() --- lfs/src/lfs.cpp | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/lfs/src/lfs.cpp b/lfs/src/lfs.cpp index f5066b7..35b3746 100644 --- a/lfs/src/lfs.cpp +++ b/lfs/src/lfs.cpp @@ -984,8 +984,8 @@ dmExtension::Result AppInitializeLFSExtension(dmExtension::AppParams* params) { dmExtension::Result InitializeLFSExtension(dmExtension::Params* params) { LuaInit(params->m_L); - printf("Registered %s Extension\n", MODULE_NAME); return dmExtension::RESULT_OK; + dmLogInfo("Registered %s Extension\n", MODULE_NAME); } dmExtension::Result AppFinalizeLFSExtension(dmExtension::AppParams* params) { From fb91cdf0439a27932c576cfdb87c2ae4b86b225b Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Bj=C3=B6rn=20Ritzl?= Date: Tue, 15 Oct 2019 21:07:57 +0200 Subject: [PATCH 2/2] Fixed mixed indentation --- lfs/src/lfs.cpp | 16 ++++++++-------- 1 file changed, 8 insertions(+), 8 deletions(-) diff --git a/lfs/src/lfs.cpp b/lfs/src/lfs.cpp index 35b3746..28288de 100644 --- a/lfs/src/lfs.cpp +++ b/lfs/src/lfs.cpp @@ -966,34 +966,34 @@ static const struct luaL_Reg fslib[] = { static void LuaInit(lua_State* L) { - int top = lua_gettop(L); + int top = lua_gettop(L); dir_create_meta (L); lock_create_meta (L); - luaL_register(L, MODULE_NAME, fslib); + luaL_register(L, MODULE_NAME, fslib); lua_pop(L, 1); lua_pop(L, 1); lua_pop(L, 1); - assert(top == lua_gettop(L)); + assert(top == lua_gettop(L)); } dmExtension::Result AppInitializeLFSExtension(dmExtension::AppParams* params) { - return dmExtension::RESULT_OK; + return dmExtension::RESULT_OK; } dmExtension::Result InitializeLFSExtension(dmExtension::Params* params) { - LuaInit(params->m_L); - return dmExtension::RESULT_OK; + LuaInit(params->m_L); dmLogInfo("Registered %s Extension\n", MODULE_NAME); + return dmExtension::RESULT_OK; } dmExtension::Result AppFinalizeLFSExtension(dmExtension::AppParams* params) { - return dmExtension::RESULT_OK; + return dmExtension::RESULT_OK; } dmExtension::Result FinalizeLFSExtension(dmExtension::Params* params) { - return dmExtension::RESULT_OK; + return dmExtension::RESULT_OK; }