Clarify LFS build info is its size (#3022)
This commit is contained in:
parent
2ae9af58fc
commit
3aba085f82
|
@ -163,7 +163,7 @@ static int node_info( lua_State* L )
|
||||||
int table_index = lua_gettop(L);
|
int table_index = lua_gettop(L);
|
||||||
lua_pushboolean(L, BUILDINFO_SSL);
|
lua_pushboolean(L, BUILDINFO_SSL);
|
||||||
lua_setfield(L, table_index, "ssl");
|
lua_setfield(L, table_index, "ssl");
|
||||||
lua_pushnumber(L, BUILDINFO_LFS);
|
lua_pushnumber(L, BUILDINFO_LFS_SIZE);
|
||||||
lua_setfield(L, table_index, "lfs_size");
|
lua_setfield(L, table_index, "lfs_size");
|
||||||
lua_pushstring(L, BUILDINFO_MODULES);
|
lua_pushstring(L, BUILDINFO_MODULES);
|
||||||
lua_setfield(L, table_index, "modules");
|
lua_setfield(L, table_index, "modules");
|
||||||
|
|
|
@ -22,9 +22,9 @@ cat > $TEMPFILE << EndOfMessage
|
||||||
#define BUILDINFO_TO_STR(x) BUILDINFO_STR_HELPER(x)
|
#define BUILDINFO_TO_STR(x) BUILDINFO_STR_HELPER(x)
|
||||||
|
|
||||||
#ifdef LUA_FLASH_STORE
|
#ifdef LUA_FLASH_STORE
|
||||||
#define BUILDINFO_LFS LUA_FLASH_STORE
|
#define BUILDINFO_LFS_SIZE LUA_FLASH_STORE
|
||||||
#else
|
#else
|
||||||
#define BUILDINFO_LFS 0
|
#define BUILDINFO_LFS_SIZE 0
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
#ifdef CLIENT_SSL_ENABLE
|
#ifdef CLIENT_SSL_ENABLE
|
||||||
|
@ -57,7 +57,7 @@ cat > $TEMPFILE << EndOfMessage
|
||||||
"\trelease DTS: " BUILDINFO_RELEASE_DTS "\n" \\
|
"\trelease DTS: " BUILDINFO_RELEASE_DTS "\n" \\
|
||||||
"\tSSL: " BUILDINFO_SSL_STR "\n" \\
|
"\tSSL: " BUILDINFO_SSL_STR "\n" \\
|
||||||
"\tbuild type: " BUILDINFO_BUILD_TYPE "\n" \\
|
"\tbuild type: " BUILDINFO_BUILD_TYPE "\n" \\
|
||||||
"\tLFS: " BUILDINFO_TO_STR(BUILDINFO_LFS) "\n" \\
|
"\tLFS: " BUILDINFO_TO_STR(BUILDINFO_LFS_SIZE) " bytes total capacity\n" \\
|
||||||
"\tmodules: " BUILDINFO_MODULES "\n"
|
"\tmodules: " BUILDINFO_MODULES "\n"
|
||||||
|
|
||||||
EndOfMessage
|
EndOfMessage
|
||||||
|
|
Loading…
Reference in New Issue