summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorkhali <khali>2003-10-17 16:15:17 +0000
committerkhali <khali>2003-10-17 16:15:17 +0000
commitfe93f991190927ea6834da39b01845dd4c1d5e87 (patch)
treee6eb5f5889ac5aa2f10b8923046e517976cdc23c
parente2962339491688925390454d4132a212ffcbf878 (diff)
downloaddmidecode-fe93f991190927ea6834da39b01845dd4c1d5e87.tar.gz
Remove useless comparison in dmi_system_boot_status.
Fix typo.
-rw-r--r--dmidecode.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/dmidecode.c b/dmidecode.c
index 4026a0f..09c73ba 100644
--- a/dmidecode.c
+++ b/dmidecode.c
@@ -236,7 +236,7 @@ static void dmi_dump(struct dmi_header *h, const char *prefix)
int row, i;
const char *s;
- printf("%sHeader And Data:\n", prefix);
+ printf("%sHeader and Data:\n", prefix);
for(row=0; row<((h->length-1)>>4)+1; row++)
{
printf("%s\t", prefix);
@@ -246,7 +246,7 @@ static void dmi_dump(struct dmi_header *h, const char *prefix)
}
if(((u8 *)h)[h->length] || ((u8 *)h)[h->length+1])
- {
+ {
printf("%sStrings:\n", prefix);
i=1;
while((s=dmi_string(h, i++))!=bad_index)
@@ -2635,7 +2635,7 @@ static const char *dmi_system_boot_status(u8 code)
return status[code];
if(code>=128 && code<=191)
return "OEM-specific";
- if(code>=192 && code<=255)
+ if(code>=192)
return "Product-specific";
return out_of_spec;
}