add build date/time to startup log output

This commit is contained in:
Gered 2025-02-08 22:25:38 -05:00
parent 3c96d30f7a
commit e16eaca30c

View file

@ -3,7 +3,7 @@
*/ */
#include "log_level.h" #include "log_level.h"
#define DEFAULT_LOG_LEVEL LOG_ERROR #define DEFAULT_LOG_LEVEL LOG_INFO
#define LOG_CHANNEL LOG_CHANNEL_UART0 #define LOG_CHANNEL LOG_CHANNEL_UART0
#include <ctype.h> #include <ctype.h>
@ -84,7 +84,7 @@ void initialize() {
/* Setup logging early */ /* Setup logging early */
log_init(); log_init();
log_setlevel(DEFAULT_LOG_LEVEL); log_setlevel(DEFAULT_LOG_LEVEL);
INFO3("\n\rFoenix Toolbox v%d.%02d.%04d starting up...", VER_MAJOR, VER_MINOR, VER_BUILD); INFO5("\n\rFoenix Toolbox v%d.%02d.%04d built on %s %s starting up...", VER_MAJOR, VER_MINOR, VER_BUILD, __DATE__, __TIME__);
/* Fill out the system information */ /* Fill out the system information */
sys_get_information(&info); sys_get_information(&info);