Go to:
Gentoo Home
Documentation
Forums
Lists
Bugs
Planet
Store
Wiki
Get Gentoo!
Gentoo's Bugzilla – Attachment 87233 Details for
Bug 130407
hddtemp has byte-swapped drive model name
Home
|
New
–
[Ex]
|
Browse
|
Search
|
Privacy Policy
|
[?]
|
Reports
|
Requests
|
Help
|
New Account
|
Log In
[x]
|
Forgot Password
Login:
[x]
[patch]
hddtemp-0.3_beta15-byteswap.patch
hddtemp-0.3_beta15-byteswap.patch (text/plain), 1.01 KB, created by
Robin Johnson
on 2006-05-21 23:37:56 UTC
(
hide
)
Description:
hddtemp-0.3_beta15-byteswap.patch
Filename:
MIME Type:
Creator:
Robin Johnson
Created:
2006-05-21 23:37:56 UTC
Size:
1.01 KB
patch
obsolete
>diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/sata.c hddtemp-0.3-beta15/src/sata.c >--- hddtemp-0.3-beta15.orig/src/sata.c 2006-05-14 02:09:55.579437498 -0700 >+++ hddtemp-0.3-beta15/src/sata.c 2006-05-14 02:06:08.495948437 -0700 >@@ -88,7 +88,9 @@ > return strdup(_("unknown")); > else > { >+ //fprintf(stderr,"sata_model1=%s\n",identify + 54); > sata_fixstring(identify + 54, 24); >+ //fprintf(stderr,"sata_model2=%s\n",identify + 54); > return strdup(identify + 54); > } > } >diff -Nuar --exclude '*~' hddtemp-0.3-beta15.orig/src/satacmds.c hddtemp-0.3-beta15/src/satacmds.c >--- hddtemp-0.3-beta15.orig/src/satacmds.c 2006-05-14 02:09:40.983470339 -0700 >+++ hddtemp-0.3-beta15/src/satacmds.c 2006-05-14 02:09:02.319557333 -0700 >@@ -98,7 +98,10 @@ > /* convert from big-endian to host byte order */ > for (p = end ; p != s;) { > unsigned short *pp = (unsigned short *) (p -= 2); >- *pp = ntohs(*pp); >+ char tmp = p[0]; >+ p[0] = p[1]; >+ p[1] = tmp; >+ //*pp = ntohs(*pp); > } > > /* strip leading blanks */
You cannot view the attachment while viewing its details because your browser does not support IFRAMEs.
View the attachment on a separate page
.
View Attachment As Diff
View Attachment As Raw
Actions:
View
|
Diff
Attachments on
bug 130407
: 87233