|
@@ -69,7 +69,8 @@ static int nvo_load ( struct nvo_block *nvo ) {
|
69
|
69
|
}
|
70
|
70
|
data += fragment->len;
|
71
|
71
|
}
|
72
|
|
-
|
|
72
|
+
|
|
73
|
+ DBG ( "NVO %p loaded from non-volatile storage\n", nvo );
|
73
|
74
|
return 0;
|
74
|
75
|
}
|
75
|
76
|
|
|
@@ -98,7 +99,8 @@ int nvo_save ( struct nvo_block *nvo ) {
|
98
|
99
|
}
|
99
|
100
|
data += fragment->len;
|
100
|
101
|
}
|
101
|
|
-
|
|
102
|
+
|
|
103
|
+ DBG ( "NVO %p saved to non-volatile storage\n", nvo );
|
102
|
104
|
return 0;
|
103
|
105
|
}
|
104
|
106
|
|
|
@@ -187,6 +189,7 @@ int nvo_register ( struct nvo_block *nvo ) {
|
187
|
189
|
|
188
|
190
|
ugly_nvo_hack = nvo;
|
189
|
191
|
|
|
192
|
+ DBG ( "NVO %p registered\n", nvo );
|
190
|
193
|
return 0;
|
191
|
194
|
|
192
|
195
|
err:
|
|
@@ -201,11 +204,14 @@ int nvo_register ( struct nvo_block *nvo ) {
|
201
|
204
|
* @v nvo Non-volatile options block
|
202
|
205
|
*/
|
203
|
206
|
void nvo_unregister ( struct nvo_block *nvo ) {
|
|
207
|
+
|
204
|
208
|
if ( nvo->options ) {
|
205
|
209
|
unregister_dhcp_options ( nvo->options );
|
206
|
210
|
free_dhcp_options ( nvo->options );
|
207
|
211
|
nvo->options = NULL;
|
208
|
212
|
}
|
209
|
213
|
|
|
214
|
+ DBG ( "NVO %p unregistered\n", nvo );
|
|
215
|
+
|
210
|
216
|
ugly_nvo_hack = NULL;
|
211
|
217
|
}
|