mirror of https://github.com/ipxe/ipxe.git
Added more debug messages
parent
d9f32726b4
commit
16b81e442f
|
@ -70,6 +70,7 @@ static int nvo_load ( struct nvo_block *nvo ) {
|
||||||
data += fragment->len;
|
data += fragment->len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBG ( "NVO %p loaded from non-volatile storage\n", nvo );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -99,6 +100,7 @@ int nvo_save ( struct nvo_block *nvo ) {
|
||||||
data += fragment->len;
|
data += fragment->len;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBG ( "NVO %p saved to non-volatile storage\n", nvo );
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
@ -187,6 +189,7 @@ int nvo_register ( struct nvo_block *nvo ) {
|
||||||
|
|
||||||
ugly_nvo_hack = nvo;
|
ugly_nvo_hack = nvo;
|
||||||
|
|
||||||
|
DBG ( "NVO %p registered\n", nvo );
|
||||||
return 0;
|
return 0;
|
||||||
|
|
||||||
err:
|
err:
|
||||||
|
@ -201,11 +204,14 @@ int nvo_register ( struct nvo_block *nvo ) {
|
||||||
* @v nvo Non-volatile options block
|
* @v nvo Non-volatile options block
|
||||||
*/
|
*/
|
||||||
void nvo_unregister ( struct nvo_block *nvo ) {
|
void nvo_unregister ( struct nvo_block *nvo ) {
|
||||||
|
|
||||||
if ( nvo->options ) {
|
if ( nvo->options ) {
|
||||||
unregister_dhcp_options ( nvo->options );
|
unregister_dhcp_options ( nvo->options );
|
||||||
free_dhcp_options ( nvo->options );
|
free_dhcp_options ( nvo->options );
|
||||||
nvo->options = NULL;
|
nvo->options = NULL;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
DBG ( "NVO %p unregistered\n", nvo );
|
||||||
|
|
||||||
ugly_nvo_hack = NULL;
|
ugly_nvo_hack = NULL;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue