summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--common/usb_pd_dual_role.c5
1 files changed, 4 insertions, 1 deletions
diff --git a/common/usb_pd_dual_role.c b/common/usb_pd_dual_role.c
index 5d516cc7d9..fc70a6099a 100644
--- a/common/usb_pd_dual_role.c
+++ b/common/usb_pd_dual_role.c
@@ -373,7 +373,10 @@ int pd_charge_from_device(uint16_t vid, uint16_t pid)
pid == allow_list[i].pid)
return 1;
}
- CPRINTS("allow_list[] pair not found: vid=0x%X pid=0x%X", vid, pid);
+
+ if (vid != 0)
+ CPRINTS("allow_list[] pair not found: vid=0x%X pid=0x%X",
+ vid, pid);
return 0;
}