Ticket #1696: smartmontools-ata-extselftestlog-big-endian-fix.diff
File smartmontools-ata-extselftestlog-big-endian-fix.diff, 561 bytes (added by , 22 months ago) |
---|
-
atacmds.cpp
1067 1067 check_multi_sector_sum(log, nsectors, "SMART Extended Self-test Log Structure"); 1068 1068 1069 1069 if (isbigendian()) { 1070 SWAPV(log->log_desc_index);1071 1070 for (unsigned i = 0; i < nsectors; i++) { 1071 SWAPV(log[i].log_desc_index); 1072 1072 for (unsigned j = 0; j < 19; j++) 1073 SWAPV(log ->log_descs[i].timestamp);1073 SWAPV(log[i].log_descs[j].timestamp); 1074 1074 } 1075 1075 } 1076 1076 return true;