mirror of
https://git.FreeBSD.org/src.git
synced 2024-12-17 10:26:15 +00:00
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
This commit is contained in:
parent
b493c70c4f
commit
9deacac371
Notes:
svn2git
2020-12-20 02:59:44 +00:00
svn path=/head/; revision=30623
@ -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 {
|
||||
|
@ -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 {
|
||||
|
Loading…
Reference in New Issue
Block a user