diff -r 63bef67e812b -r fdb85a806585 tool/CommandDomains.cpp --- a/tool/CommandDomains.cpp Thu Sep 06 14:40:10 2012 +0200 +++ b/tool/CommandDomains.cpp Thu Sep 06 18:28:57 2012 +0200 @@ -136,6 +136,11 @@ ec_ioctl_domain_fmmu_t fmmu; unsigned int dataOffset; string indent(doIndent ? " " : ""); + unsigned int wc_sum = 0, dev_idx; + + for (dev_idx = 0; dev_idx < EC_NUM_DEVICES; dev_idx++) { + wc_sum += domain.working_counter[dev_idx]; + } cout << indent << "Domain" << dec << domain.index << ":" << " LogBaseAddr 0x" @@ -144,8 +149,14 @@ << ", Size " << dec << setfill(' ') << setw(3) << domain.data_size << ", WorkingCounter " - << domain.working_counter << "/" - << domain.expected_working_counter << endl; + << wc_sum << "/" + << domain.expected_working_counter; + if (EC_NUM_DEVICES == 2) { + cout << " (" << domain.working_counter[EC_DEVICE_MAIN] + << "+" << domain.working_counter[EC_DEVICE_BACKUP] + << ")"; + } + cout << endl; if (!domain.data_size || getVerbosity() != Verbose) return;