Преглед на файлове

Debug message fixes.

tags/v0.9.3
Michael Brown преди 19 години
родител
ревизия
db3a44b66d
променени са 3 файла, в които са добавени 7 реда и са изтрити 3 реда
  1. 3
    0
      src/drivers/bus/eisa.c
  2. 3
    2
      src/drivers/bus/isapnp.c
  3. 1
    1
      src/drivers/bus/mca.c

+ 3
- 0
src/drivers/bus/eisa.c Целия файл

@@ -171,4 +171,7 @@ void eisa_device_enabled ( struct eisa_device *eisa, int enabled ) {
171 171
 	outb ( enabled ? EISA_CMD_ENABLE : 0,
172 172
 	       eisa->ioaddr + EISA_GLOBAL_CONFIG );
173 173
 	udelay ( 1000 ); /* Must wait 800 */
174
+
175
+	DBG ( "EISA %s device %hhx\n", ( enabled ? "enabled" : "disabled" ),
176
+	      eisa->slot );
174 177
 }

+ 3
- 2
src/drivers/bus/isapnp.c Целия файл

@@ -555,7 +555,7 @@ static int isapnp_check_driver ( struct bus_dev *bus_dev,
555 555
 			      isapnp->prod_id,
556 556
 			      isa_id_string( isapnp->vendor_id,
557 557
 					     isapnp->prod_id ),
558
-			      id->name, driver->name );
558
+			      id->name, device_driver->name );
559 559
 			isapnp->name = id->name;
560 560
 			return 1;
561 561
 		}
@@ -622,7 +622,8 @@ void isapnp_device_activation ( struct isapnp_device *isapnp,
622 622
 	/* Return all cards to Wait for Key state */
623 623
 	isapnp_wait_for_key ();
624 624
 
625
-	DBG ( "ISAPnP activated device %hhx.%hhx\n",
625
+	DBG ( "ISAPnP %s device %hhx.%hhx\n",
626
+	      ( activation ? "activated" : "deactivated" ),
626 627
 	      isapnp->csn, isapnp->logdev );
627 628
 }
628 629
 

+ 1
- 1
src/drivers/bus/mca.c Целия файл

@@ -96,7 +96,7 @@ static int mca_check_driver ( struct bus_dev *bus_dev,
96 96
 		if ( MCA_ID ( mca ) == id->id ) {
97 97
 			DBG ( "MCA found ID %hx (device %s) "
98 98
 			      "matching driver %s\n",
99
-			      id->name, id->id, driver->name );
99
+			      id->name, id->id, device_driver->name );
100 100
 			mca->name = id->name;
101 101
 			return 1;
102 102
 		}

Loading…
Отказ
Запис