[init] Show startup and shutdown function names in debug messages

Signed-off-by: Michael Brown <mcb30@ipxe.org>
This commit is contained in:
Michael Brown
2019-01-25 14:53:43 +00:00
parent de4565cbe7
commit 36a4c85f91
19 changed files with 31 additions and 2 deletions

View File

@@ -127,6 +127,7 @@ struct init_fn cachedhcp_init_fn __init_fn ( INIT_NORMAL ) = {
/** Cached DHCPACK startup function */
struct startup_fn cachedhcp_startup_fn __startup_fn ( STARTUP_LATE ) = {
.name = "cachedhcp",
.startup = cachedhcp_startup,
};

View File

@@ -265,5 +265,6 @@ static void runtime_init ( void ) {
/** Command line and initrd initialisation function */
struct startup_fn runtime_startup_fn __startup_fn ( STARTUP_NORMAL ) = {
.name = "runtime",
.startup = runtime_init,
};

View File

@@ -141,5 +141,6 @@ static void undionly_shutdown ( int booting ) {
}
struct startup_fn startup_undionly __startup_fn ( STARTUP_LATE ) = {
.name = "undionly",
.shutdown = undionly_shutdown,
};

View File

@@ -300,5 +300,6 @@ static void initrd_startup ( void ) {
/** initrd startup function */
struct startup_fn startup_initrd __startup_fn ( STARTUP_LATE ) = {
.name = "initrd",
.startup = initrd_startup,
};

View File

@@ -547,6 +547,7 @@ static void bios_inject_shutdown ( int booting __unused ) {
/** Keypress injection startup function */
struct startup_fn bios_inject_startup_fn __startup_fn ( STARTUP_NORMAL ) = {
.name = "bios_inject",
.startup = bios_inject_startup,
.shutdown = bios_inject_shutdown,
};

View File

@@ -229,6 +229,7 @@ static void unhide_etherboot ( int flags __unused ) {
/** Hide Etherboot startup function */
struct startup_fn hide_etherboot_startup_fn __startup_fn ( STARTUP_EARLY ) = {
.name = "hidemem",
.startup = hide_etherboot,
.shutdown = unhide_etherboot,
};