Skip to content

Commit

Permalink
Merge pull request #2 from britzl/printf-to-log-fix
Browse files Browse the repository at this point in the history
Printf to log fix
  • Loading branch information
britzl authored Oct 15, 2019
2 parents c1b3001 + fb91cdf commit a66a751
Showing 1 changed file with 9 additions and 9 deletions.
18 changes: 9 additions & 9 deletions lfs/src/lfs.cpp
Original file line number Diff line number Diff line change
Expand Up @@ -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);
printf("Registered %s Extension\n", MODULE_NAME);
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;
}


Expand Down

0 comments on commit a66a751

Please sign in to comment.