projects
/
wrapfs-4.14.y.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
03ca13c
)
cfg80211: regulatory: Fix inconsistent format argument
author
Ye Bin
<yebin10@huawei.com>
Fri, 9 Oct 2020 07:02:15 +0000
(15:02 +0800)
committer
Greg Kroah-Hartman
<gregkh@linuxfoundation.org>
Wed, 18 Nov 2020 17:25:00 +0000
(18:25 +0100)
[ Upstream commit
db18d20d1cb0fde16d518fb5ccd38679f174bc04
]
Fix follow warning:
[net/wireless/reg.c:3619]: (warning) %d in format string (no. 2)
requires 'int' but the argument type is 'unsigned int'.
Reported-by: Hulk Robot <hulkci@huawei.com>
Signed-off-by: Ye Bin <yebin10@huawei.com>
Link:
https://lore.kernel.org/r/20201009070215.63695-1-yebin10@huawei.com
Signed-off-by: Johannes Berg <johannes.berg@intel.com>
Signed-off-by: Sasha Levin <sashal@kernel.org>
net/wireless/reg.c
patch
|
blob
|
history
diff --git
a/net/wireless/reg.c
b/net/wireless/reg.c
index 474923175b108d669ec62f3944a9b29eea931917..dcbf5cd44bb37ba45a5a166bd312c3381140c2b2 100644
(file)
--- a/
net/wireless/reg.c
+++ b/
net/wireless/reg.c
@@
-2775,7
+2775,7
@@
static void print_rd_rules(const struct ieee80211_regdomain *rd)
power_rule = ®_rule->power_rule;
if (reg_rule->flags & NL80211_RRF_AUTO_BW)
- snprintf(bw, sizeof(bw), "%d KHz, %
d
KHz AUTO",
+ snprintf(bw, sizeof(bw), "%d KHz, %
u
KHz AUTO",
freq_range->max_bandwidth_khz,
reg_get_max_bandwidth(rd, reg_rule));
else