Bläddra i källkod

[pxe] Colourise debug output

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 år sedan
förälder
incheckning
07e14bfb8a
1 ändrade filer med 3 tillägg och 3 borttagningar
  1. 3
    3
      src/arch/i386/interface/pxe/pxe_call.c

+ 3
- 3
src/arch/i386/interface/pxe/pxe_call.c Visa fil

@@ -307,8 +307,8 @@ int pxe_deactivate ( void ) {
307 307
 		if ( ( rc = unhook_bios_interrupt ( 0x1a,
308 308
 						    (unsigned int) pxe_int_1a,
309 309
 						    &pxe_int_1a_vector ))!= 0){
310
-			DBG ( "Could not unhook INT 1A: %s\n",
311
-			      strerror ( rc ) );
310
+			DBGC ( &pxe_netdev, "PXE could not unhook INT 1A: %s\n",
311
+			       strerror ( rc ) );
312 312
 			return rc;
313 313
 		}
314 314
 		devices_put();
@@ -334,7 +334,7 @@ int pxe_start_nbp ( void ) {
334 334
 	/* Allow restarting NBP via PXENV_RESTART_TFTP */
335 335
 	jmp = rmsetjmp ( pxe_restart_nbp );
336 336
 	if ( jmp )
337
-		DBG ( "Restarting NBP (%x)\n", jmp );
337
+		DBGC ( &pxe_netdev, "PXE NBP restarting (%x)\n", jmp );
338 338
 
339 339
 	/* Far call to PXE NBP */
340 340
 	__asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */

Laddar…
Avbryt
Spara