summaryrefslogtreecommitdiff
path: root/src/udev/ata_id/ata_id.c
diff options
context:
space:
mode:
authorKay Sievers <kay@vrfy.org>2012-07-05 16:53:08 +0200
committerKay Sievers <kay@vrfy.org>2012-07-05 16:56:58 +0200
commitdaa9cf546ce7265645ced9592dd54c6b2fc04302 (patch)
tree9e052a52045efe675f040784990e6ca27483493d /src/udev/ata_id/ata_id.c
parent627e4bb29fa7223ae8ea97a46a9581627eb24ee6 (diff)
udev: ata_id - fixup all 8 not only 6 bytes of the fw_rev string
The last two digits are in the wrong order: $ hdparm -I /dev/sda | grep Revision 4PC10362 $ /lib/udev/ata_id -x /dev/sda | grep REVISION 4PC10326
Diffstat (limited to 'src/udev/ata_id/ata_id.c')
-rw-r--r--src/udev/ata_id/ata_id.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/src/udev/ata_id/ata_id.c b/src/udev/ata_id/ata_id.c
index be064187f8..e1069b5c6e 100644
--- a/src/udev/ata_id/ata_id.c
+++ b/src/udev/ata_id/ata_id.c
@@ -504,7 +504,7 @@ int main(int argc, char *argv[])
* use and copy it into the hd_driveid struct for convenience
*/
disk_identify_fixup_string(identify, 10, 20); /* serial */
- disk_identify_fixup_string(identify, 23, 6); /* fwrev */
+ disk_identify_fixup_string(identify, 23, 8); /* fwrev */
disk_identify_fixup_string(identify, 27, 40); /* model */
disk_identify_fixup_uint16(identify, 0); /* configuration */
disk_identify_fixup_uint16(identify, 75); /* queue depth */