summaryrefslogtreecommitdiff
path: root/net/wireless/reg.c
diff options
context:
space:
mode:
authorYe Bin <yebin10@huawei.com>2020-10-09 10:02:15 +0300
committerJohannes Berg <johannes.berg@intel.com>2020-10-30 12:06:56 +0300
commitdb18d20d1cb0fde16d518fb5ccd38679f174bc04 (patch)
treeccccdda265f5a98bdbba4d0737b8118c03531b69 /net/wireless/reg.c
parentb1e8eb11fb9cf666d8ae36bbcf533233a504c921 (diff)
downloadlinux-db18d20d1cb0fde16d518fb5ccd38679f174bc04.tar.xz
cfg80211: regulatory: Fix inconsistent format argument
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>
Diffstat (limited to 'net/wireless/reg.c')
-rw-r--r--net/wireless/reg.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/net/wireless/reg.c b/net/wireless/reg.c
index 3dab859641e1..a04fdfb35f07 100644
--- a/net/wireless/reg.c
+++ b/net/wireless/reg.c
@@ -3616,7 +3616,7 @@ static void print_rd_rules(const struct ieee80211_regdomain *rd)
power_rule = &reg_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