linux/drivers/net/ethernet/freescale/enetc
Arnd Bergmann 9046d581ed enetc: avoid truncating error message
As clang points out, the error message in enetc_setup_xdp_prog()
still does not fit in the buffer and will be truncated:

drivers/net/ethernet/freescale/enetc/enetc.c:2771:3: error: 'snprintf' will always be truncated; specified size is 80, but format string expands to at least 87 [-Werror,-Wformat-truncation]

Replace it with an even shorter message that should fit.

Fixes: f968c56417 ("net: enetc: shorten enetc_setup_xdp_prog() error message to fit NETLINK_MAX_FMTMSG_LEN")
Signed-off-by: Arnd Bergmann <arnd@arndb.de>
Link: https://lore.kernel.org/r/20240326223825.4084412-3-arnd@kernel.org
Signed-off-by: Jakub Kicinski <kuba@kernel.org>
2024-03-29 12:22:28 -07:00
..
enetc.c
enetc.h
enetc_cbdr.c
enetc_ethtool.c
enetc_hw.h
enetc_ierb.c
enetc_ierb.h
enetc_mdio.c
enetc_msg.c
enetc_pci_mdio.c
enetc_pf.c
enetc_pf.h
enetc_ptp.c
enetc_qos.c
enetc_vf.c
Kconfig
Makefile