Browse Source

Made debug messages more consistent.

tags/v0.9.3
Michael Brown 20 years ago
parent
commit
ed7b9109be
2 changed files with 8 additions and 4 deletions
  1. 7
    3
      src/drivers/bus/eisa.c
  2. 1
    1
      src/drivers/bus/pci.c

+ 7
- 3
src/drivers/bus/eisa.c View File

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

+ 1
- 1
src/drivers/bus/pci.c View File

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

Loading…
Cancel
Save