Browse Source

Add some trace messages for important events

tags/v0.9.3
Michael Brown 18 years ago
parent
commit
d0f4e9a54b
1 changed files with 6 additions and 0 deletions
  1. 6
    0
      src/arch/i386/drivers/net/undinet.c

+ 6
- 0
src/arch/i386/drivers/net/undinet.c View File

527
 				   sizeof ( undi_open ) ) ) != 0 )
527
 				   sizeof ( undi_open ) ) ) != 0 )
528
 		goto err;
528
 		goto err;
529
 
529
 
530
+	DBGC ( undinic, "UNDINIC %p opened\n", undinic );
530
 	return 0;
531
 	return 0;
531
 
532
 
532
  err:
533
  err:
570
 	/* Disable interrupt and unhook ISR */
571
 	/* Disable interrupt and unhook ISR */
571
 	disable_irq ( undinic->irq );
572
 	disable_irq ( undinic->irq );
572
 	undinet_unhook_isr ( undinic->irq );
573
 	undinet_unhook_isr ( undinic->irq );
574
+
575
+	DBGC ( undinic, "UNDINIC %p closed\n", undinic );
573
 }
576
 }
574
 
577
 
575
 /**
578
 /**
648
 	if ( ( rc = register_netdev ( netdev ) ) != 0 )
651
 	if ( ( rc = register_netdev ( netdev ) ) != 0 )
649
 		goto err_register;
652
 		goto err_register;
650
 
653
 
654
+	DBGC ( undinic, "UNDINIC %p added\n", undinic );
651
 	return 0;
655
 	return 0;
652
 
656
 
653
  err_register:
657
  err_register:
702
 
706
 
703
 	/* Free network device */
707
 	/* Free network device */
704
 	free_netdev ( netdev );
708
 	free_netdev ( netdev );
709
+
710
+	DBGC ( undinic, "UNDINIC %p removed\n", undinic );
705
 }
711
 }

Loading…
Cancel
Save