Skip to contentSkip to conversation

net/enic: fix a typo in debug message

PATCH Applied Hyong Youb Kim 2 participants 2 messages Feb 5, 2021 Network drivers

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 net/enic: fix a typo in debug message

A debug message for filter API is using a wrong flag. Use the correct one.

Fixes 936a9b9975e7 ("net/enic: flow API debug")
---
 drivers/net/enic/enic_flow.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
drivers/net/enic/enic_flow.c +1 -1
index 97ee7509ce..bc0c836751 100644
@@ -1392,7 +1392,7 @@ enic_dump_filter(const struct filter_v2 *filt)
 
 		if (gp->mask_flags & FILTER_GENERIC_1_IPV6)
 			sprintf(ip6, "%s ",
-				(gp->val_flags & FILTER_GENERIC_1_IPV4)
+				(gp->val_flags & FILTER_GENERIC_1_IPV6)
 				 ? "ip6(y)" : "ip6(n)");
 		else
 			sprintf(ip6, "%s ", "ip6(x)");
Signature · 1 line
2.26.2