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

mac80211: minstrel[_ht]: remove non-ascii debugfs characters

Replace the average symbol by "avg" to avoid being warned about the
non-ASCII symbol all the time, line up the columns properly.

(I changed my mind - the warnings are getting annoying)

Signed-off-by: Johannes Berg <johannes.berg@intel.com>

+10 -14
+5 -7
net/mac80211/rc80211_minstrel_debugfs.c
··· 85 85 file->private_data = ms; 86 86 p = ms->buf; 87 87 p += sprintf(p, "\n"); 88 - p += sprintf(p, "best __________rate_________ ______" 89 - "statistics______ ________last_______ " 90 - "______sum-of________\n"); 91 - p += sprintf(p, "rate [name idx airtime max_tp] [ ø(tp) ø(prob) " 92 - "sd(prob)] [prob.|retry|suc|att] " 93 - "[#success | #attempts]\n"); 88 + p += sprintf(p, 89 + "best __________rate_________ ________statistics________ ________last_______ ______sum-of________\n"); 90 + p += sprintf(p, 91 + "rate [name idx airtime max_tp] [avg(tp) avg(prob) sd(prob)] [prob.|retry|suc|att] [#success | #attempts]\n"); 94 92 95 93 for (i = 0; i < mi->n_rates; i++) { 96 94 struct minstrel_rate *mr = &mi->r[i]; ··· 110 112 prob = MINSTREL_TRUNC(mrs->cur_prob * 1000); 111 113 eprob = MINSTREL_TRUNC(mrs->prob_ewma * 1000); 112 114 113 - p += sprintf(p, "%4u.%1u %4u.%1u %3u.%1u %3u.%1u" 115 + p += sprintf(p, "%4u.%1u %4u.%1u %3u.%1u %3u.%1u" 114 116 " %3u.%1u %3u %3u %-3u " 115 117 "%9llu %-9llu\n", 116 118 tp_max / 10, tp_max % 10,
+5 -7
net/mac80211/rc80211_minstrel_ht_debugfs.c
··· 86 86 prob = MINSTREL_TRUNC(mrs->cur_prob * 1000); 87 87 eprob = MINSTREL_TRUNC(mrs->prob_ewma * 1000); 88 88 89 - p += sprintf(p, "%4u.%1u %4u.%1u %3u.%1u %3u.%1u" 89 + p += sprintf(p, "%4u.%1u %4u.%1u %3u.%1u %3u.%1u" 90 90 " %3u.%1u %3u %3u %-3u " 91 91 "%9llu %-9llu\n", 92 92 tp_max / 10, tp_max % 10, ··· 129 129 p = ms->buf; 130 130 131 131 p += sprintf(p, "\n"); 132 - p += sprintf(p, " best ____________rate__________ " 133 - "______statistics______ ________last_______ " 134 - "______sum-of________\n"); 135 - p += sprintf(p, "mode guard # rate [name idx airtime max_tp] " 136 - "[ ø(tp) ø(prob) sd(prob)] [prob.|retry|suc|att] [#success | " 137 - "#attempts]\n"); 132 + p += sprintf(p, 133 + " best ____________rate__________ ________statistics________ ________last_______ ______sum-of________\n"); 134 + p += sprintf(p, 135 + "mode guard # rate [name idx airtime max_tp] [avg(tp) avg(prob) sd(prob)] [prob.|retry|suc|att] [#success | #attempts]\n"); 138 136 139 137 p = minstrel_ht_stats_dump(mi, MINSTREL_CCK_GROUP, p); 140 138 for (i = 0; i < MINSTREL_CCK_GROUP; i++)