summaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
authortegge <tegge@FreeBSD.org>2000-08-06 01:17:39 +0000
committertegge <tegge@FreeBSD.org>2000-08-06 01:17:39 +0000
commit70fee7556af897b3e5daa5f5a385581e7cb7006d (patch)
tree3d4e5c6cc074f5d44356172ad1d3f3154e9c73f7
parenta83353f91aca54c41c4c861b026dd2e1c2a95cbe (diff)
downloadFreeBSD-src-70fee7556af897b3e5daa5f5a385581e7cb7006d.zip
FreeBSD-src-70fee7556af897b3e5daa5f5a385581e7cb7006d.tar.gz
Remove 3 off by 128 errors.
-rw-r--r--usr.sbin/mptable/mptable.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/usr.sbin/mptable/mptable.c b/usr.sbin/mptable/mptable.c
index cd0561e..a40d2ff 100644
--- a/usr.sbin/mptable/mptable.c
+++ b/usr.sbin/mptable/mptable.c
@@ -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 );
}
OpenPOWER on IntegriCloud