We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent bd4e3d8 commit cd91250Copy full SHA for cd91250
net/ieee802154/trace.h
@@ -13,7 +13,7 @@
13
14
#define MAXNAME 32
15
#define WPAN_PHY_ENTRY __array(char, wpan_phy_name, MAXNAME)
16
-#define WPAN_PHY_ASSIGN strlcpy(__entry->wpan_phy_name, \
+#define WPAN_PHY_ASSIGN strscpy(__entry->wpan_phy_name, \
17
wpan_phy_name(wpan_phy), \
18
MAXNAME)
19
#define WPAN_PHY_PR_FMT "%s"
net/mac802154/trace.h
@@ -14,7 +14,7 @@
#define LOCAL_ENTRY __array(char, wpan_phy_name, MAXNAME)
-#define LOCAL_ASSIGN strlcpy(__entry->wpan_phy_name, \
+#define LOCAL_ASSIGN strscpy(__entry->wpan_phy_name, \
wpan_phy_name(local->hw.phy), MAXNAME)
#define LOCAL_PR_FMT "%s"
20
#define LOCAL_PR_ARG __entry->wpan_phy_name
0 commit comments