diff options
author | msmith <msmith@FreeBSD.org> | 1997-10-21 07:40:22 +0000 |
---|---|---|
committer | msmith <msmith@FreeBSD.org> | 1997-10-21 07:40:22 +0000 |
commit | 0d9f4e4f4d9be94433a510e48a56a4d199bf1ac0 (patch) | |
tree | 7489d19d0617a7553b4e638e7fd47b7d092cfa31 | |
parent | 1c795f36be1b1f30bf74e798752e87e32934aad0 (diff) | |
download | FreeBSD-src-0d9f4e4f4d9be94433a510e48a56a4d199bf1ac0.zip FreeBSD-src-0d9f4e4f4d9be94433a510e48a56a4d199bf1ac0.tar.gz |
Reference the DMI table inside the SMBIOS table correctly, not using a variable
that won't be initialised until a later test.
Submitted by: bde via -Wunused
-rw-r--r-- | sys/amd64/amd64/bios.c | 4 | ||||
-rw-r--r-- | sys/i386/i386/bios.c | 4 |
2 files changed, 4 insertions, 4 deletions
diff --git a/sys/amd64/amd64/bios.c b/sys/amd64/amd64/bios.c index 2259d8e..ec48c42 100644 --- a/sys/amd64/amd64/bios.c +++ b/sys/amd64/amd64/bios.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bios.c,v 1.5 1997/09/01 01:12:50 bde Exp $ + * $Id: bios.c,v 1.6 1997/09/24 07:47:43 phk Exp $ */ /* @@ -118,7 +118,7 @@ bios32_init(void *junk) printf("SMIBIOS header at %p\n", sbt); printf("Version %d.%d\n", sbt->major, sbt->minor); printf("Table at 0x%x, %d entries, %d bytes, largest entry %d bytes\n", - dmit->st_base, (int)dmit->st_entries, (int)dmit->st_size, + sbt->dmi.st_base, (int)sbt->dmi.st_entries, (int)sbt->dmi.st_size, (int)sbt->st_maxsize); } } else { diff --git a/sys/i386/i386/bios.c b/sys/i386/i386/bios.c index 2259d8e..ec48c42 100644 --- a/sys/i386/i386/bios.c +++ b/sys/i386/i386/bios.c @@ -23,7 +23,7 @@ * OUT OF THE USE OF THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF * SUCH DAMAGE. * - * $Id: bios.c,v 1.5 1997/09/01 01:12:50 bde Exp $ + * $Id: bios.c,v 1.6 1997/09/24 07:47:43 phk Exp $ */ /* @@ -118,7 +118,7 @@ bios32_init(void *junk) printf("SMIBIOS header at %p\n", sbt); printf("Version %d.%d\n", sbt->major, sbt->minor); printf("Table at 0x%x, %d entries, %d bytes, largest entry %d bytes\n", - dmit->st_base, (int)dmit->st_entries, (int)dmit->st_size, + sbt->dmi.st_base, (int)sbt->dmi.st_entries, (int)sbt->dmi.st_size, (int)sbt->st_maxsize); } } else { |