Hi Johan,
On Tue, Aug 16, 2011, Pavel Raiskup wrote:Indexing of chassis_map array has to be done like that: chassis_map[chassis_type * 2 - 1] because if not, everything is shifted by one. When (e.g.) chassis_type is 0x04 result should be "Low Profile Desktop" => "desktop" (not a "Pizza Box" => "server"). Lets see the 2.6.1 document on: http://www.dmtf.org/standards/smbios --- plugins/formfactor.c | 2 +- 1 files changed, 1 insertions(+), 1 deletions(-)The patch doesn't apply (probably due to your email client splitting lines). You might want to consider using git send-email instead:
sorry for that, I'll use send-email for the next time. For now I'm sending patches again as attachment because I don't want to break this thread.
Attachment:
0001-Off-by-one-two-error-in-form-factor-detection.patch
Description: Binary data