Browse Source

[pxe] Colourise debug output

Signed-off-by: Michael Brown <mcb30@ipxe.org>
tags/v1.20.1
Michael Brown 8 years ago
parent
commit
07e14bfb8a
1 changed files with 3 additions and 3 deletions
  1. 3
    3
      src/arch/i386/interface/pxe/pxe_call.c

+ 3
- 3
src/arch/i386/interface/pxe/pxe_call.c View File

307
 		if ( ( rc = unhook_bios_interrupt ( 0x1a,
307
 		if ( ( rc = unhook_bios_interrupt ( 0x1a,
308
 						    (unsigned int) pxe_int_1a,
308
 						    (unsigned int) pxe_int_1a,
309
 						    &pxe_int_1a_vector ))!= 0){
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
 			return rc;
312
 			return rc;
313
 		}
313
 		}
314
 		devices_put();
314
 		devices_put();
334
 	/* Allow restarting NBP via PXENV_RESTART_TFTP */
334
 	/* Allow restarting NBP via PXENV_RESTART_TFTP */
335
 	jmp = rmsetjmp ( pxe_restart_nbp );
335
 	jmp = rmsetjmp ( pxe_restart_nbp );
336
 	if ( jmp )
336
 	if ( jmp )
337
-		DBG ( "Restarting NBP (%x)\n", jmp );
337
+		DBGC ( &pxe_netdev, "PXE NBP restarting (%x)\n", jmp );
338
 
338
 
339
 	/* Far call to PXE NBP */
339
 	/* Far call to PXE NBP */
340
 	__asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */
340
 	__asm__ __volatile__ ( REAL_CODE ( "pushl %%ebp\n\t" /* gcc bug */

Loading…
Cancel
Save