]> git.pld-linux.org Git - packages/hdparm.git/blob - hdparm-sparc.patch
- actually rc.hdparm instead of hdparm.init
[packages/hdparm.git] / hdparm-sparc.patch
1 --- hdparm-3.3/hdparm.c.~1~     Tue Jul 30 18:16:03 1996
2 +++ hdparm-3.3/hdparm.c Tue Apr 21 22:44:57 1998
3 @@ -124,7 +124,13 @@
4         if (!(id->field_valid&1))
5                 printf(" (maybe):");
6         printf(" CurCHS=%d/%d/%d, CurSects=%d",
7 -               id->cur_cyls, id->cur_heads, id->cur_sectors, *(int *)&id->cur_capacity0);
8 +               id->cur_cyls, id->cur_heads, id->cur_sectors,
9 +#ifdef BIG_ENDIAN
10 +              (id->cur_capacity0 << 16) | id->cur_capacity1
11 +#else /* LITTLE_ENDIAN */
12 +              (id->cur_capacity1 << 16) | id->cur_capacity0
13 +#endif
14 +              );
15         printf(", LBA=%s", YN(id->capability&2));
16         if (id->capability&2)
17                 printf(", LBAsects=%d", id->lba_capacity);
18
This page took 0.088533 seconds and 3 git commands to generate.