Skip to content

Commit

Permalink
net: vlan: Fix RX debug print
Browse files Browse the repository at this point in the history
The interface index and tag prints were swapped.

(cherry picked from commit 36137bc)

Original-Signed-off-by: Jukka Rissanen <jukka.rissanen@nordicsemi.no>
GitOrigin-RevId: 36137bc
Cr-Build-Id: 8737046051874902001
Cr-Build-Url: https://cr-buildbucket.appspot.com/build/8737046051874902001
Copybot-Job-Name: zephyr-main-copybot-downstream
Change-Id: I676009e8dc0f604963985fad1c3db8728511be05
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/third_party/zephyr/+/5843439
Commit-Queue: Keith Short <keithshort@chromium.org>
Tested-by: ChromeOS Prod (Robot) <chromeos-ci-prod@chromeos-bot.iam.gserviceaccount.com>
Reviewed-by: Keith Short <keithshort@chromium.org>
  • Loading branch information
jukkar authored and Chromeos LUCI committed Sep 12, 2024
1 parent 4fe3e99 commit e777659
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions subsys/net/l2/ethernet/vlan.c
Original file line number Diff line number Diff line change
Expand Up @@ -602,8 +602,8 @@ static enum net_verdict vlan_interface_recv(struct net_if *iface,
char str[sizeof("RX iface xx (tag xxxx)")];

snprintk(str, sizeof(str), "RX iface %d (tag %d)",
net_pkt_vlan_tag(pkt),
net_if_get_by_iface(iface));
net_if_get_by_iface(iface),
net_pkt_vlan_tag(pkt));

net_pkt_hexdump(pkt, str);
}
Expand Down

0 comments on commit e777659

Please sign in to comment.