From: Johan Hedberg <johan.hedberg@gmail.com>
To: Pavel Raiskup <praiskup@redhat.com>
Cc: linux-bluetooth@vger.kernel.org, ovasik@redhat.com, stlman@poczta.fm
Subject: Re: [PATCH 1/8] Off-by-one(two) error in form factor detection
Date: Mon, 22 Aug 2011 11:29:33 +0300 [thread overview]
Message-ID: <20110822082933.GD11306@dell> (raw)
In-Reply-To: <op.v0avzhpah52hc0@dhcp-25-209.brq.redhat.com>
Hi Pavel,
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:
Applying: Off-by-one(two) error in form factor detection
fatal: corrupt patch at line 10
Patch failed at 0001 Off-by-one(two) error in form factor detection
I also added Łukasz to CC since he sent a patch to this very same line a
month ago or so (and introduced the "+ 1). Łukasz, did you really verify
the correctness of your patch? (it seems you didn't)
Johan
next prev parent reply other threads:[~2011-08-22 8:29 UTC|newest]
Thread overview: 4+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-08-16 9:43 [PATCH 1/8] Off-by-one(two) error in form factor detection Pavel Raiskup
2011-08-22 8:29 ` Johan Hedberg [this message]
2011-08-23 5:07 ` Pavel Raiskup
2011-08-23 15:36 ` Anderson Lizardo
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20110822082933.GD11306@dell \
--to=johan.hedberg@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
--cc=ovasik@redhat.com \
--cc=praiskup@redhat.com \
--cc=stlman@poczta.fm \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).