Changeset 2853
- Timestamp:
- 07/21/09 19:09:49 (4 years ago)
- Location:
- trunk/smartmontools
- Files:
-
- 2 modified
-
CHANGELOG (modified) (1 diff)
-
ataprint.cpp (modified) (2 diffs, 1 prop)
Legend:
- Unmodified
- Added
- Removed
-
trunk/smartmontools/CHANGELOG
r2851 r2853 42 42 <DEVELOPERS: ADDITIONS TO THE CHANGE LOG GO JUST BELOW HERE, PLEASE> 43 43 44 [CF] smartctl: Fix number of entries in '-l xselftest' output. 45 44 46 [CF] Add USB IDs of a SunplusIT bridge, three WD drives, and an 45 47 unsupported Iomega drive. -
trunk/smartmontools/ataprint.cpp
- Property svn:keywords set to Id
r2832 r2853 45 45 #include "knowndrives.h" 46 46 47 const char * ataprint_c_cvsid="$Id: ataprint.cpp,v 1.214 2009/07/07 19:28:29 chrfranke Exp$"48 ATACMDNAMES_H_CVSID ATACMDS_H_CVSID ATAPRINT_H_CVSID CONFIG_H_CVSID EXTERN_H_CVSID INT64_H_CVSID KNOWNDRIVES_H_CVSID SMARTCTL_H_CVSID UTILITY_H_CVSID;47 const char * ataprint_cpp_cvsid = "$Id$" 48 ATAPRINT_H_CVSID; 49 49 50 50 // for passing global control variables … … 1386 1386 logidx--; 1387 1387 1388 unsigned logcnt = nentries;1389 if (max_entries < logcnt)1390 logcnt = max_entries;1391 1392 1388 bool print_header = true; 1393 1389 1394 1390 // Iterate through circular buffer in reverse direction 1395 1391 for (unsigned i = 0, testnum = 1; 1396 i < logcnt; i++, logidx = (logidx > 0 ? logidx - 1 : nentries - 1)) { 1392 i < nentries && testnum <= max_entries; 1393 i++, logidx = (logidx > 0 ? logidx - 1 : nentries - 1)) { 1397 1394 1398 1395 const ata_smart_extselftestlog_desc & entry = log[logidx / 19].log_descs[logidx % 19];