diff mbox series

[OpenWrt-Devel,2/2] ramips: mt7530: more detailed output for unexpected etag_ctrl

Message ID 20200301050624.78598-2-yszhou4tech@gmail.com
State Accepted
Delegated to: Yousong Zhou
Headers show
Series None | expand

Commit Message

Yousong Zhou March 1, 2020, 5:06 a.m. UTC
Signed-off-by: Yousong Zhou <yszhou4tech@gmail.com>
---
 .../ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.c   | 3 ++-
 1 file changed, 2 insertions(+), 1 deletion(-)
diff mbox series

Patch

diff --git a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.c b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.c
index 8ffd614d9f..d1e56a76e9 100644
--- a/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.c
+++ b/target/linux/ramips/files-4.14/drivers/net/ethernet/mediatek/mt7530.c
@@ -435,7 +435,8 @@  mt7530_get_vlan_ports(struct switch_dev *dev, struct switch_val *val)
 		if (etag == ETAG_CTRL_TAG)
 			p->flags |= BIT(SWITCH_PORT_FLAG_TAGGED);
 		else if (etag != ETAG_CTRL_UNTAG)
-			printk("vlan egress tag control neither untag nor tag.\n");
+			printk("vlan %d port %d egress tag control neither untag nor tag: %d.\n",
+					val->port_vlan, i, etag);
 	}
 
 	return 0;