diff --git a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c index e19f43898954..463fa3df41dc 100644 --- a/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c +++ b/target/linux/generic/files/drivers/net/phy/rtl8366_smi.c @@ -534,9 +534,12 @@ static int rtl8366_set_pvid(struct rtl8366_smi *smi, unsigned port, if (!used) { /* Update the entry from the 4K table */ + dev_info(smi->parent, "get VLAN 4K vid:%d\n", vid); err = smi->ops->get_vlan_4k(smi, vid, &vlan4k); - if (err) + if (err) { + dev_err(smi->parent, "PVID #%d vid:%d\n", err, vid); return err; + } vlanmc.vid = vid; vlanmc.member = vlan4k.member;