Skip to content

Commit

Permalink
Clarify LFS build info is its size (#3022)
Browse files Browse the repository at this point in the history
  • Loading branch information
mk-pmb authored Feb 1, 2020
1 parent 1c83f02 commit 49f25bd
Show file tree
Hide file tree
Showing 2 changed files with 4 additions and 4 deletions.
2 changes: 1 addition & 1 deletion app/modules/node.c
Original file line number Diff line number Diff line change
Expand Up @@ -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");
Expand Down
6 changes: 3 additions & 3 deletions tools/update_buildinfo.sh
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand Down Expand Up @@ -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
Expand Down

0 comments on commit 49f25bd

Please sign in to comment.