Remove 3 off by 128 errors.
This commit is contained in:
parent
e666f57c3e
commit
386fd02622
@ -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 );
|
||||
}
|
||||
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user