Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3847346pxb; Tue, 17 Nov 2020 05:17:57 -0800 (PST) X-Google-Smtp-Source: ABdhPJzI6FH79StUJTadEjCg0ENgQCzXjj8LHOJGX/yAhhPMzR0c9vzG+8ozR5n056HsdI6OwdhM X-Received: by 2002:aa7:da13:: with SMTP id r19mr21370749eds.386.1605619077099; Tue, 17 Nov 2020 05:17:57 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605619077; cv=none; d=google.com; s=arc-20160816; b=hdMAtczk0Fbx3FIsLJuS6WicRSxDowWPdmcpAofNIrt45Hc9Rjaz46o0OldBTE85do 1kRjMoyU0xSSK0nH+J5jOpH5HglHKcMhKLq4haDGzljw0w4aXUzsjmFL9uf57DUGoTRq OcyWNSIHSd2oS81N5qusLIdTBvfIOZyhfVcRuBtxcD1anafxHxZFsuyKE4A8U7V9o3Mv 8DqGSkKfCNXMfvxYhfXQXQ4T5TvRt7xRyf53DTEKdR4eGIV8e1YXBz03JhfdpRb2UOKb Com0UM2V78eDAJcTThOJ/62Cnr1Gv71vj3w9rHgdbKxuBhssMDqps4ncI/CrLB7DWiZR xaRQ== 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=3TFMbY4UzsYppJ37qKNQvlFP498iZ1Gjt1YsOgm+YhE=; b=HjC/hNh5a6o1HE5wAzxRgukRBrm3XvdGCO7Pd7/sCUopcPBcizecGE/G1ywsZv7PC3 VPyCpfQH2osnIFZhxJDsHlSp9Fv77IFUxPvEWIfWc04PmpeW9kwzsLt/I3U3bgYueAYM fgFhVhA10NnyTr7TLiBIKU8K9xwCr9Rf0W9dVRKT1vcLfcEEECJaE8yeHpaTEPyku43r /2BBK3qVrM9/2/NtDe2HbBElkuJkUplzsDSOoV8BkkL5XkqDIl4sh2d82mucoDNKI/vP VPGM3ANXHWbJLO0d8aeS2Ah5NN6Opeoxk90+DS9Bngwv16hRsCtCeGa4gkpNGgsWy1in G9VA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=u5Epnorf; 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 d1si7919815edx.295.2020.11.17.05.17.33; Tue, 17 Nov 2020 05:17:57 -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=u5Epnorf; 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 S1730067AbgKQNOf (ORCPT + 99 others); Tue, 17 Nov 2020 08:14:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:45250 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1730040AbgKQNOW (ORCPT ); Tue, 17 Nov 2020 08:14:22 -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 20001221EB; Tue, 17 Nov 2020 13:14:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605618861; bh=UE8TG4E8KEuyum8GqKuE75XwJYIocEuD5stFJ29F2aU=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=u5EpnorfuoFWZNWGvr0a7PqVqd4hzd90nW36zJRBgZx1VR6ksZVOiribaJ3O9wTVn jjYVrc5mjBnHyVTt4yVYxqOmmhpJpNS6vOoiFKPdiat+Bn1dF/dBfre6s7H0Hkdaxc TQ03rzB7Jq0FuVjkXNJGVKetgW3fh/zDdBtM7a+E= 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.14 31/85] cfg80211: regulatory: Fix inconsistent format argument Date: Tue, 17 Nov 2020 14:05:00 +0100 Message-Id: <20201117122112.554995551@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122111.018425544@linuxfoundation.org> References: <20201117122111.018425544@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 9eb9d34cef7b1..db8cc505caf76 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -2846,7 +2846,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