From c4d86885afa137d30db0a37bf4669723d9d293cc Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?S=C3=B8ren=20Schmidt?= Date: Wed, 31 Jul 2002 18:29:34 +0000 Subject: [PATCH] Byteswap the serial # --- sys/dev/ata/ata-all.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/sys/dev/ata/ata-all.c b/sys/dev/ata/ata-all.c index 24ed916257f9..c6230c732a83 100644 --- a/sys/dev/ata/ata-all.c +++ b/sys/dev/ata/ata-all.c @@ -509,6 +509,9 @@ ata_getparam(struct ata_device *atadev, u_int8_t command) bswap(ata_parm->revision, sizeof(ata_parm->revision)); btrim(ata_parm->revision, sizeof(ata_parm->revision)); bpack(ata_parm->revision, ata_parm->revision, sizeof(ata_parm->revision)); + bswap(ata_parm->serial, sizeof(ata_parm->serial)); + btrim(ata_parm->serial, sizeof(ata_parm->serial)); + bpack(ata_parm->serial, ata_parm->serial, sizeof(ata_parm->serial)); atadev->param = ata_parm; return 0; }