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

mac80211: Increase MAX_MSG_LEN

Looks that 100 chars isn't enough for messages, as we keep getting
warnings popping from different places due to message shortening.
Instead of trying to shorten the prints, just increase the buffer size.

Signed-off-by: Andrei Otcheretianski <andrei.otcheretianski@intel.com>
Signed-off-by: Luca Coelho <luciano.coelho@intel.com>
Signed-off-by: Johannes Berg <johannes.berg@intel.com>

authored by

Andrei Otcheretianski and committed by
Johannes Berg
78be2d21 40586e3f

+6 -1
+6 -1
net/mac80211/trace_msg.h
··· 1 1 /* SPDX-License-Identifier: GPL-2.0 */ 2 + /* 3 + * Portions of this file 4 + * Copyright (C) 2019 Intel Corporation 5 + */ 6 + 2 7 #ifdef CONFIG_MAC80211_MESSAGE_TRACING 3 8 4 9 #if !defined(__MAC80211_MSG_DRIVER_TRACE) || defined(TRACE_HEADER_MULTI_READ) ··· 16 11 #undef TRACE_SYSTEM 17 12 #define TRACE_SYSTEM mac80211_msg 18 13 19 - #define MAX_MSG_LEN 100 14 + #define MAX_MSG_LEN 120 20 15 21 16 DECLARE_EVENT_CLASS(mac80211_msg_event, 22 17 TP_PROTO(struct va_format *vaf),