From 49f25bd8955f88df518451b28fb8dfb24963f8ce Mon Sep 17 00:00:00 2001 From: "M.K" Date: Sat, 1 Feb 2020 22:12:14 +0100 Subject: [PATCH] Clarify LFS build info is its size (#3022) --- app/modules/node.c | 2 +- tools/update_buildinfo.sh | 6 +++--- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/app/modules/node.c b/app/modules/node.c index 6714a6b874..6746517401 100644 --- a/app/modules/node.c +++ b/app/modules/node.c @@ -163,7 +163,7 @@ static int node_info( lua_State* L ) int table_index = lua_gettop(L); lua_pushboolean(L, BUILDINFO_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_pushstring(L, BUILDINFO_MODULES); lua_setfield(L, table_index, "modules"); diff --git a/tools/update_buildinfo.sh b/tools/update_buildinfo.sh index 66370a90d3..7caa09e5d5 100755 --- a/tools/update_buildinfo.sh +++ b/tools/update_buildinfo.sh @@ -22,9 +22,9 @@ cat > $TEMPFILE << EndOfMessage #define BUILDINFO_TO_STR(x) BUILDINFO_STR_HELPER(x) #ifdef LUA_FLASH_STORE -#define BUILDINFO_LFS LUA_FLASH_STORE +#define BUILDINFO_LFS_SIZE LUA_FLASH_STORE #else -#define BUILDINFO_LFS 0 +#define BUILDINFO_LFS_SIZE 0 #endif #ifdef CLIENT_SSL_ENABLE @@ -57,7 +57,7 @@ cat > $TEMPFILE << EndOfMessage "\trelease DTS: " BUILDINFO_RELEASE_DTS "\n" \\ "\tSSL: " BUILDINFO_SSL_STR "\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" EndOfMessage