Changeset 3667 for trunk/smartmontools/os_freebsd.cpp
- Timestamp:
- 10/27/12 05:08:40 (7 months ago)
- Files:
-
- 1 modified
-
trunk/smartmontools/os_freebsd.cpp (modified) (1 diff)
Legend:
- Unmodified
- Added
- Removed
-
trunk/smartmontools/os_freebsd.cpp
r3662 r3667 1439 1439 (skip_device == 0 || show_all)) { 1440 1440 /* One device may be populated as many peripherals (pass0 & da0 for example). 1441 * We are searching for latest name1441 * We are searching for best name 1442 1442 */ 1443 1443 periph_result = &ccb.cdm.matches[i].result.periph_result; 1444 devname = strprintf("%s%s%d", _PATH_DEV, periph_result->periph_name, periph_result->unit_number); 1444 /* Prefer non-"pass" names */ 1445 if (devname.empty() || strncmp(periph_result->periph_name, "pass", 4) != 0) { 1446 devname = strprintf("%s%s%d", _PATH_DEV, periph_result->periph_name, periph_result->unit_number); 1447 } 1445 1448 changed = 0; 1446 1449 };