* [PATCH] ata_id: fix identify string fixup
@ 2012-01-30 10:51 Andreas Schwab
0 siblings, 0 replies; 2+ messages in thread
From: Andreas Schwab @ 2012-01-30 10:51 UTC (permalink / raw)
To: linux-hotplug
---
| 4 ++--
1 files changed, 2 insertions(+), 2 deletions(-)
--git a/src/extras/ata_id/ata_id.c b/src/extras/ata_id/ata_id.c
index 924d479..c8ffe86 100644
--- a/src/extras/ata_id/ata_id.c
+++ b/src/extras/ata_id/ata_id.c
@@ -307,8 +307,8 @@ static void disk_identify_get_string (uint8_t identify[512],
assert ((dest_len & 1) = 0);
while (dest_len > 0) {
- c1 = ((uint16_t *) identify)[offset_words] >> 8;
- c2 = ((uint16_t *) identify)[offset_words] & 0xff;
+ c1 = identify[offset_words * 2 + 1];
+ c2 = identify[offset_words * 2];
*dest = c1;
dest++;
*dest = c2;
--
1.7.9
--
Andreas Schwab, schwab@linux-m68k.org
GPG Key fingerprint = 58CA 54C7 6D53 942B 1756 01D3 44D5 214B 8276 4ED5
"And now for something completely different."
^ permalink raw reply related [flat|nested] 2+ messages in thread
* Re: [PATCH] ata_id: fix identify string fixup
@ 2012-02-01 13:00 Kay Sievers
0 siblings, 0 replies; 2+ messages in thread
From: Kay Sievers @ 2012-02-01 13:00 UTC (permalink / raw)
To: linux-hotplug
On Mon, Jan 30, 2012 at 11:51, Andreas Schwab <schwab@linux-m68k.org> wrote:
> ---
> src/extras/ata_id/ata_id.c | 4 ++--
> 1 files changed, 2 insertions(+), 2 deletions(-)
Applied. Thanks, Kay
^ permalink raw reply [flat|nested] 2+ messages in thread
end of thread, other threads:[~2012-02-01 13:00 UTC | newest]
Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2012-01-30 10:51 [PATCH] ata_id: fix identify string fixup Andreas Schwab
-- strict thread matches above, loose matches on Subject: below --
2012-02-01 13:00 Kay Sievers
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).