Received: by 10.192.165.156 with SMTP id m28csp1107479imm; Wed, 11 Apr 2018 12:33:14 -0700 (PDT) X-Google-Smtp-Source: AIpwx49mKW8utPzhbXlR5c8M0SCLmOIRzBNZ/SZyPqBVUoVgQY6jmUdKru5n9zFkf/lAa7c6S1UY X-Received: by 2002:a17:902:7d8a:: with SMTP id a10-v6mr6307225plm.268.1523475194871; Wed, 11 Apr 2018 12:33:14 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1523475194; cv=none; d=google.com; s=arc-20160816; b=HGjXGOpYMYLdPlq4TDkr1BlXXHVlPUtCXY2wdTGw2WYzHkO3bO7V3C0sdvqSkeW9R9 exk6LFg3W2fkJFxH/lI7DcZGLeJd2IO5+avplvYIgNwN58UDVmHwMf3xzGFnVLt8gIqG xHEcehKuMxbaW3+IFZqPyr2rUeJ1SGi7XHZTNUL2qnLP7tEKGK2Gx+D3iSpYUduAnxNj W3u1dXSPl2iNRZ9XIf6AxS3OaH91JG1K7xEjQ844EGViChVL+TN3Nlw8AcoEbgdzR7IL G/EFH3Drjad4o7pweO5AzgJVggOZOFgAe0CoWBATdI6F1nfdq31KIzyzaIVuqEDyO3lY ZNaw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=AqOvUD777U90TECoOTLeA081K6o9iatqI5gcTocQHac=; b=lhQwI5YsEPsuGda66EflzUN9Gpqxpplz+GhgZ2c/8Mqa4Lag8Xid3W4x8kuHfX4KbU TfXc2QGa5a2hEVjSHcTT0HB08UYgCugVZdvp81Z7hX7M3JKpKcAmjD8qINcn2NMd96lu Qc5Dl7x9HzzTIGKsTPaMbFijXkkvrFG9yOlGzw1poklnmkP4Kq68r6KowHEduGonjiIU 8Xz2aGAw0odAC0VHiW83VedfihPN+GiDuAD5AYlzl9WNXgXQvOiqN7/gNmRS/gGH7DiW GUli7gfCntu9dRBMu13C567S0d6nEXQ1SPv/6ZMZBeYrSY1CiRoCfraRuo7qFACWvZCB So0Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id b1-v6si1714172plc.95.2018.04.11.12.32.37; Wed, 11 Apr 2018 12:33:14 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S934522AbeDKTCi (ORCPT + 99 others); Wed, 11 Apr 2018 15:02:38 -0400 Received: from mail.linuxfoundation.org ([140.211.169.12]:38570 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S933692AbeDKTCe (ORCPT ); Wed, 11 Apr 2018 15:02:34 -0400 Received: from localhost (LFbn-1-12247-202.w90-92.abo.wanadoo.fr [90.92.61.202]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id C80EFDAC; Wed, 11 Apr 2018 19:02:33 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Bryan ODonoghue , Stephen Boyd , Sasha Levin Subject: [PATCH 4.9 173/310] clk: Fix __set_clk_rates error print-string Date: Wed, 11 Apr 2018 20:35:12 +0200 Message-Id: <20180411183630.073353150@linuxfoundation.org> X-Mailer: git-send-email 2.17.0 In-Reply-To: <20180411183622.305902791@linuxfoundation.org> References: <20180411183622.305902791@linuxfoundation.org> User-Agent: quilt/0.65 X-stable: review MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.9-stable review patch. If anyone has any objections, please let me know. ------------------ From: Bryan O'Donoghue [ Upstream commit ee177c5d6369f8e5d3e4793dce501cf4431313a1 ] When failing to set a clock the printout emitted is incorrect. "u32 rate" is formatted as %d and should be %u whereas "unsigned long clk_set_rate()" is formatted as %ld and should be %lu as per Documentation/printk-formats.txt. Fixes: 2885c3b2a3da ("clk: Show correct information when fail to set clock rate") Signed-off-by: Bryan O'Donoghue Signed-off-by: Stephen Boyd Signed-off-by: Sasha Levin Signed-off-by: Greg Kroah-Hartman --- drivers/clk/clk-conf.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) --- a/drivers/clk/clk-conf.c +++ b/drivers/clk/clk-conf.c @@ -106,7 +106,7 @@ static int __set_clk_rates(struct device rc = clk_set_rate(clk, rate); if (rc < 0) - pr_err("clk: couldn't set %s clk rate to %d (%d), current rate: %ld\n", + pr_err("clk: couldn't set %s clk rate to %u (%d), current rate: %lu\n", __clk_get_name(clk), rate, rc, clk_get_rate(clk)); clk_put(clk);