Browse Source

Added more debug messages

tags/v0.9.3
Michael Brown 17 years ago
parent
commit
16b81e442f
1 changed files with 8 additions and 2 deletions
  1. 8
    2
      src/core/nvo.c

+ 8
- 2
src/core/nvo.c View File

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

Loading…
Cancel
Save