Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3884966pxb; Tue, 17 Nov 2020 06:11:10 -0800 (PST) X-Google-Smtp-Source: ABdhPJw6+3DRxI8Q41MzH2sSr2DW7lcDOU52PC3WqvJ+PmSSnkV+I9RuCb6Cb7LlrNySftPV4g6q X-Received: by 2002:a17:906:4e41:: with SMTP id g1mr20258637ejw.47.1605622270187; Tue, 17 Nov 2020 06:11:10 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605622270; cv=none; d=google.com; s=arc-20160816; b=h3UGWkvgTpsmSYeF56/tKTYFiaOm+AU0tvysoRD2JzmjGSX/3spXknicy8FeEGwrMG 2RE4LhiGb786JF0jYglcvinsRNUNX26bdUzE1o3RqNHKTAMiQWsu6PM4tUil7r83pX1F 7yMioOcsz8l2qvrW2NCeRz5TvJwEbDOWEpDYaDPKaWUfpJcBJ6mstAQiGdodTcvDJKns GEkJnAKtOnMPOWFCgjrmais1u7pQBexA7XAwvHo4MzWNF1tyPWwAC7/tZ8vp+0ZztoZp vn3mb5cQ+vVKpxOVLO1Yzg6cvB9hW46mlOTa7HgPTW2rVWti+l90vKeDsDIKWOcIupRR G8gg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:message-id:date:subject:cc:to :from:dkim-signature; bh=4UuIDWgE2M3kE6dF80LwJnCSPjgHUyQJf5Vp8oJybug=; b=gKYjg6PeHXzjQMx2DeKd2kch87UROsnKmAxTRPsKD2iZaM+A3xdsA+iKjBfNwnFWOP J7Hu8AC1XBWMZRZnCLjU2zLNdrLYSZQ4r30n/KnXO9UXyoDOtgPBqgEvG26iHUvp7w27 FUQUGndmcqhnhii/G/SyCsBPqoBnrAZXh/torfXsjzmn3Ed1cnWafuz+orpk3l4O751F tFvjZ8HuDHaaRVgtt2jMAViz/8yyGoDqIJIpvJLxQtXuQSzwZPalSIHASH2YF/NO52BH +f0ao+tgS3nyzagpvp2zDWUNUCZSyZ9FMkV9gX0ZOml45R6UhIaI6A0i/5+vnVHL2w6n gHWw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AqlFBbrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y10si13250493ejf.165.2020.11.17.06.10.46; Tue, 17 Nov 2020 06:11:10 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=AqlFBbrz; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=linuxfoundation.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1729042AbgKQNHK (ORCPT + 99 others); Tue, 17 Nov 2020 08:07:10 -0500 Received: from mail.kernel.org ([198.145.29.99]:33636 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1728992AbgKQNHA (ORCPT ); Tue, 17 Nov 2020 08:07:00 -0500 Received: from localhost (83-86-74-64.cable.dynamic.v4.ziggo.nl [83.86.74.64]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.kernel.org (Postfix) with ESMTPSA id B15E62464E; Tue, 17 Nov 2020 13:06:59 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605618420; bh=8XF7R//Yl6NH0VxVXke17EfNRQeotPb3MfGtIMyT23U=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=AqlFBbrz+lYs93QMA9IU2mXmVU4MDr2EwDZBm3BWcaWqOYoJPyQ6KWwTak4hBx8Xp bMiQ1e1rHsjgFPIH/6oTVN1v9o4qc4cE5sCbVEWYGBMFjX9YEDoQiXAJEFhIOy6I8Q /I7TGOTQbSF2Nee9VEDO3MCVNPEHBEpDzISHdupY= From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Hulk Robot , Ye Bin , Johannes Berg , Sasha Levin Subject: [PATCH 4.4 26/64] cfg80211: regulatory: Fix inconsistent format argument Date: Tue, 17 Nov 2020 14:04:49 +0100 Message-Id: <20201117122107.427138656@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122106.144800239@linuxfoundation.org> References: <20201117122106.144800239@linuxfoundation.org> User-Agent: quilt/0.66 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Ye Bin [ 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 Signed-off-by: Ye Bin Link: https://lore.kernel.org/r/20201009070215.63695-1-yebin10@huawei.com Signed-off-by: Johannes Berg Signed-off-by: Sasha Levin --- net/wireless/reg.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/net/wireless/reg.c b/net/wireless/reg.c index 474923175b108..dcbf5cd44bb37 100644 --- 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 -- 2.27.0