Remove 3 off by 128 errors.

This commit is contained in:
tegge 2000-08-06 01:17:39 +00:00
parent a83353f91a
commit 70fee7556a

View File

@ -1024,7 +1024,7 @@ sasEntry( void )
/* read it into local memory */
readEntry( &entry, sizeof( entry ) );
printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name );
printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name );
printf( " bus ID: %d", entry.busID );
printf( " address type: " );
switch ( entry.addressType ) {
@ -1055,10 +1055,10 @@ bhdEntry( void )
/* read it into local memory */
readEntry( &entry, sizeof( entry ) );
printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name );
printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name );
printf( " bus ID: %d", entry.busID );
printf( " bus info: 0x%02x", entry.busInfo );
printf( " parent bus ID: %d", entry.busParent );
printf( " parent bus ID: %d\n", entry.busParent );
}
@ -1070,11 +1070,11 @@ cbasmEntry( void )
/* read it into local memory */
readEntry( &entry, sizeof( entry ) );
printf( "--\n%s\n", extendedtableEntryTypes[ entry.type ].name );
printf( "--\n%s\n", extendedtableEntryTypes[entry.type - 128].name );
printf( " bus ID: %d", entry.busID );
printf( " address modifier: %s\n", (entry.addressMod & 0x01) ?
"subtract" : "add" );
printf( " predefined range: 0x%08x", entry.predefinedRange );
printf( " predefined range: 0x%08x\n", entry.predefinedRange );
}