Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

ipvlan: remove h from printk format specifier

This change fixes the checkpatch warning described in this commit
commit cbacb5ab0aa0 ("docs: printk-formats: Stop encouraging use of
unnecessary %h[xudi] and %hh[xudi]")

Standard integer promotion is already done and %hx and %hhx is useless
so do not encourage the use of %hh[xudi] or %h[xudi].

Cleanup output to use __func__ over explicit function strings.

Signed-off-by: Tom Rix <trix@redhat.com>
Link: https://lore.kernel.org/r/20210124190804.1964580-1-trix@redhat.com
Signed-off-by: Jakub Kicinski <kuba@kernel.org>

authored by

Tom Rix and committed by
Jakub Kicinski
d7a177ea c358f952

+2 -4
+2 -4
drivers/net/ipvlan/ipvlan_core.c
··· 651 651 } 652 652 653 653 /* Should not reach here */ 654 - WARN_ONCE(true, "ipvlan_queue_xmit() called for mode = [%hx]\n", 655 - port->mode); 654 + WARN_ONCE(true, "%s called for mode = [%x]\n", __func__, port->mode); 656 655 out: 657 656 kfree_skb(skb); 658 657 return NET_XMIT_DROP; ··· 748 749 } 749 750 750 751 /* Should not reach here */ 751 - WARN_ONCE(true, "ipvlan_handle_frame() called for mode = [%hx]\n", 752 - port->mode); 752 + WARN_ONCE(true, "%s called for mode = [%x]\n", __func__, port->mode); 753 753 kfree_skb(skb); 754 754 return RX_HANDLER_CONSUMED; 755 755 }