[lib][version] if any debuglevel is set, dump the build id on boot

This commit is contained in:
Travis Geiselbrecht
2015-11-02 11:55:09 -08:00
parent 2b1cd10693
commit a80775c207

View File

@@ -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