Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp3851733pxb; Tue, 17 Nov 2020 05:24:06 -0800 (PST) X-Google-Smtp-Source: ABdhPJyOamjIFTdmoxqybIpAkoIr4ihJVBW7z7R7w/GZlZGYBUydlylyk16mcHsVMi38FJtHIBjy X-Received: by 2002:a17:906:e082:: with SMTP id gh2mr7488914ejb.406.1605619446761; Tue, 17 Nov 2020 05:24:06 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1605619446; cv=none; d=google.com; s=arc-20160816; b=BSEs1WukJ8E+0PI2xqUnfxAd2gWNDcVwlTvxDeGUMrvxbeUMulfSOwuoMDGvFpMvi9 bJG/WcLVh0d1XQ+AVl2+R+dzqROsfobhmw4aYAz5OX1GcJJiJ3UQ+94sb/4na2JZ48B/ jJRCE8qREKFqPrzyl3qx9OfZ7zFBcwfGMZdhrUetyYh0Armtox24YzHHVVIs1wD7gQK7 6d0gWRU+V2cgIOYJC7x4mndgrkD6g/KnPAUKfoT1Cb1/NqNa40BKLZXOb3H43necE/VZ wbaeE5pB72y1LrTmHHXmZ9Qh35DqYf+B+CtnkWB5QCQCxcVqG8Tt/WV511uF8VA36Tf+ kixQ== 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=umaspIbZJBjPyWikpqOpCYTEn0VkUjDvlZQBM63RXP8=; b=iNdhHLdc6OjDY6nSR+GmVfqnQCoukjVOqZBSfuFPn67KzKtfUuNvq2fXoN5GBYWd5c Ve/ZAOcdoj2Mrzg+hp6f+NnHpopf9bkD1CUaJMb4UV1u/nw5NPmF0dazV20GNF7C0jEm tns+FNNko4mYR24d4ecKuMn4rJbaIB0TTWgex7mZlRIoR5eNy4ueEW0h3nzXNj8Z7kNI N1/QXoWzPhK2fCl+uB3Lofv2mWmolzXnkqE70AKF+BflHdcdrZHTk5JqtRIZikPthQ1X xXghhrLbsP8QAQJtM8glOrrBn3NmvrQ1vMTyCy7t7vi7+cF6b16FSwU2sOMgQRcPSN2Q sE7A== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel.org header.s=default header.b=Mr7pOZ9W; 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 c2si13715696edu.115.2020.11.17.05.23.43; Tue, 17 Nov 2020 05:24:06 -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=Mr7pOZ9W; 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 S1730421AbgKQNTf (ORCPT + 99 others); Tue, 17 Nov 2020 08:19:35 -0500 Received: from mail.kernel.org ([198.145.29.99]:52342 "EHLO mail.kernel.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729971AbgKQNTV (ORCPT ); Tue, 17 Nov 2020 08:19:21 -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 4698B206D5; Tue, 17 Nov 2020 13:19:20 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=kernel.org; s=default; t=1605619160; bh=6dltTqMK6fLN6xRPRK6gOaEIOvMfLoPQIfmnkoPw5to=; h=From:To:Cc:Subject:Date:In-Reply-To:References:From; b=Mr7pOZ9WjmhmDmk3ndQetnsL6icTT5ppFKbxINmocJjhUUw7AFpPv7d34nK2Uiiyu bVXHslrcF9tyzFwurJjM2wSbKTZ4OoYx+xEPKInkiQ2zdXSpb4eTzeOCmrJiIHHCxt WpKc21dSoc9KOY2UlZJbCsdaX0Q8LRN4JaQekwW0= 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.19 041/101] cfg80211: regulatory: Fix inconsistent format argument Date: Tue, 17 Nov 2020 14:05:08 +0100 Message-Id: <20201117122115.091344998@linuxfoundation.org> X-Mailer: git-send-email 2.29.2 In-Reply-To: <20201117122113.128215851@linuxfoundation.org> References: <20201117122113.128215851@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 935aebf150107..c7825b951f725 100644 --- a/net/wireless/reg.c +++ b/net/wireless/reg.c @@ -3374,7 +3374,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