equal
deleted
inserted
replaced
264 } |
264 } |
265 } else { |
265 } else { |
266 cout << "no" << endl; |
266 cout << "no" << endl; |
267 } |
267 } |
268 |
268 |
269 cout << "Port Type Link Loop Signal"; |
269 cout << "Port Type Link Loop Signal NextSlave"; |
270 if (si->dc_supported) |
270 if (si->dc_supported) |
271 cout << " RxTime Diff"; |
271 cout << " RxTime Diff"; |
272 cout << endl; |
272 cout << endl; |
273 |
273 |
274 for (i = 0; i < EC_MAX_PORTS; i++) { |
274 for (i = 0; i < EC_MAX_PORTS; i++) { |
292 |
292 |
293 cout << " " << setw(4) |
293 cout << " " << setw(4) |
294 << (si->ports[i].dl_link ? "up" : "down") |
294 << (si->ports[i].dl_link ? "up" : "down") |
295 << " " << setw(6) |
295 << " " << setw(6) |
296 << (si->ports[i].dl_loop ? "closed" : "open") |
296 << (si->ports[i].dl_loop ? "closed" : "open") |
297 << " " << setw(3) |
297 << " " << setw(6) |
298 << (si->ports[i].dl_signal ? "yes" : "no"); |
298 << (si->ports[i].dl_signal ? "yes" : "no") |
|
299 << " " << setw(9) << right; |
|
300 |
|
301 if (si->next_slave[i] != 0xffff) { |
|
302 cout << dec << si->next_slave[i]; |
|
303 } else { |
|
304 cout << "-"; |
|
305 } |
299 |
306 |
300 if (si->dc_supported) { |
307 if (si->dc_supported) { |
301 cout << " " << setw(10) << right; |
308 cout << " " << setw(10) << right; |
302 if (si->ports[i].dl_signal) { |
309 if (si->ports[i].dl_signal) { |
303 cout << dec << si->dc_receive_times[i]; |
310 cout << dec << si->dc_receive_times[i]; |
304 } else { |
311 } else { |
305 cout << "-"; |
312 cout << "-"; |
306 } |
313 } |