Преглед изворни кода

Made debug messages more consistent.

tags/v0.9.3
Michael Brown пре 19 година
родитељ
комит
ed7b9109be
2 измењених фајлова са 8 додато и 4 уклоњено
  1. 7
    3
      src/drivers/bus/eisa.c
  2. 1
    1
      src/drivers/bus/pci.c

+ 7
- 3
src/drivers/bus/eisa.c Прегледај датотеку

@@ -63,6 +63,7 @@ int find_eisa_device ( struct eisa_device *eisa, struct eisa_driver *driver ) {
63 63
 	/* Iterate through all possible EISA slots, starting where we
64 64
 	 * left off.
65 65
 	 */
66
+	DBG ( "EISA searching for device matching driver %s\n", driver->name );
66 67
 	for ( ; eisa->slot <= EISA_MAX_SLOT ; eisa->slot++ ) {
67 68
 		/* If we've already used this device, skip it */
68 69
 		if ( eisa->already_tried ) {
@@ -82,10 +83,12 @@ int find_eisa_device ( struct eisa_device *eisa, struct eisa_driver *driver ) {
82 83
 			if ( ( eisa->mfg_id == id->mfg_id ) &&
83 84
 			     ( ISA_PROD_ID ( eisa->prod_id ) ==
84 85
 			       ISA_PROD_ID ( id->prod_id ) ) ) {
85
-				DBG ( "Device %s (driver %s) matches ID %s\n",
86
-				      id->name, driver->name,
86
+				DBG ( "EISA found ID %hx:%hx (\"%s\") "
87
+				      "(device %s) matching driver %s\n",
88
+				      eisa->mfg_id, eisa->prod_id,
87 89
 				      isa_id_string ( eisa->mfg_id,
88
-						      eisa->prod_id ) );
90
+						      eisa->prod_id ),
91
+				      id->name, driver->name );
89 92
 				eisa->name = id->name;
90 93
 				eisa->already_tried = 1;
91 94
 				return 1;
@@ -94,6 +97,7 @@ int find_eisa_device ( struct eisa_device *eisa, struct eisa_driver *driver ) {
94 97
 	}
95 98
 
96 99
 	/* No device found */
100
+	DBG ( "EISA found no device matching driver %s\n", driver->name );
97 101
 	eisa->slot = EISA_MIN_SLOT;
98 102
 	return 0;
99 103
 }

+ 1
- 1
src/drivers/bus/pci.c Прегледај датотеку

@@ -180,9 +180,9 @@ int find_pci_device ( struct pci_device *pci,
180 180
 			}
181 181
 		}
182 182
 	} while ( ++pci->busdevfn );
183
-	DBG ( "PCI failed to find device matching driver %s\n", driver->name );
184 183
 
185 184
 	/* No device found */
185
+	DBG ( "PCI found no device matching driver %s\n", driver->name );
186 186
 	return 0;
187 187
 }
188 188
 

Loading…
Откажи
Сачувај