diff options
Diffstat (limited to 'util')
-rw-r--r-- | util/ectool.c | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/util/ectool.c b/util/ectool.c index d7e3cf6907..b173d7ad19 100644 --- a/util/ectool.c +++ b/util/ectool.c @@ -3710,8 +3710,9 @@ int cmd_usb_pd(int argc, char *argv[]) r->role == PD_ROLE_SOURCE ? "SRC" : "SNK", r->polarity + 1, r->state); } else { - printf("Port C%d is %s, Role:%s %s Polarity:CC%d State:%s\n", - p.port, (r_v1->enabled) ? "enabled" : "disabled", + printf("Port C%d is %s,%s, Role:%s %s Polarity:CC%d State:%s\n", + p.port, (r_v1->enabled & 1) ? "enabled" : "disabled", + (r_v1->enabled & 2) ? "connected" : "disconnected", r_v1->role & PD_ROLE_SOURCE ? "SRC" : "SNK", r_v1->role & (PD_ROLE_DFP << 1) ? "DFP" : "UFP", r_v1->polarity + 1, r_v1->state); |