From 06d63a8c0e087e40c60f32aa8d9401a9ef563891 Mon Sep 17 00:00:00 2001 From: Philippe Teuwen Date: Tue, 1 Oct 2024 13:46:31 +0200 Subject: [PATCH] Unify Py/Lua versions in hw version --- client/src/cmdhw.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/client/src/cmdhw.c b/client/src/cmdhw.c index 6b7ac6843..b3ec7d43a 100644 --- a/client/src/cmdhw.c +++ b/client/src/cmdhw.c @@ -1677,17 +1677,17 @@ void pm3_version(bool verbose, bool oneliner) { #else PrintAndLogEx(NORMAL, " Python script support..... " _YELLOW_("absent")); #endif -#ifdef HAVE_LUA_SWIG - PrintAndLogEx(NORMAL, " Lua SWIG support.......... " _GREEN_("present")); -#else - PrintAndLogEx(NORMAL, " Lua SWIG support.......... " _YELLOW_("absent")); -#endif - PrintAndLogEx(NORMAL, " Lua runtime version....... " _GREEN_(LUA_RELEASE)); #ifdef HAVE_PYTHON_SWIG PrintAndLogEx(NORMAL, " Python SWIG support....... " _GREEN_("present")); #else PrintAndLogEx(NORMAL, " Python SWIG support....... " _YELLOW_("absent")); #endif + PrintAndLogEx(NORMAL, " Lua script support........ " _GREEN_("present") " (" _YELLOW_("%s.%s.%s") ")", LUA_VERSION_MAJOR, LUA_VERSION_MINOR, LUA_VERSION_RELEASE); +#ifdef HAVE_LUA_SWIG + PrintAndLogEx(NORMAL, " Lua SWIG support.......... " _GREEN_("present")); +#else + PrintAndLogEx(NORMAL, " Lua SWIG support.......... " _YELLOW_("absent")); +#endif if (g_session.pm3_present) { PrintAndLogEx(NORMAL, "\n [ " _YELLOW_("Proxmark3") " ]");