[lib][version] if any debuglevel is set, dump the build id on boot
This commit is contained in:
@@ -24,6 +24,7 @@
|
||||
|
||||
#include <debug.h>
|
||||
#include <stdio.h>
|
||||
#include <lk/init.h>
|
||||
|
||||
/* generated for us */
|
||||
#include <buildid.h>
|
||||
@@ -71,3 +72,8 @@ STATIC_COMMAND_END(version);
|
||||
|
||||
#endif // WITH_LIB_CONSOLE
|
||||
|
||||
#if LK_DEBUGLEVEL > 0
|
||||
// print the version string if any level of debug is set
|
||||
LK_INIT_HOOK(version, (void *)&print_version, LK_INIT_LEVEL_HEAP - 1);
|
||||
#endif
|
||||
|
||||
|
||||
Reference in New Issue
Block a user