diff options
author | khali <khali> | 2003-10-17 16:15:17 +0000 |
---|---|---|
committer | khali <khali> | 2003-10-17 16:15:17 +0000 |
commit | fe93f991190927ea6834da39b01845dd4c1d5e87 (patch) | |
tree | e6eb5f5889ac5aa2f10b8923046e517976cdc23c | |
parent | e2962339491688925390454d4132a212ffcbf878 (diff) | |
download | dmidecode-fe93f991190927ea6834da39b01845dd4c1d5e87.tar.gz |
Remove useless comparison in dmi_system_boot_status.
Fix typo.
-rw-r--r-- | dmidecode.c | 6 |
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; } |