Received: by 2002:a05:7412:1703:b0:e2:908c:2ebd with SMTP id dm3csp1540841rdb; Sat, 26 Aug 2023 06:56:04 -0700 (PDT) X-Google-Smtp-Source: AGHT+IFItwexckrNmDz9u4S5dIamubBwgum0Crdao1Rb+OoimlN28FXS7WaCa+sHkflk+uO+qxsS X-Received: by 2002:a05:6a21:3393:b0:131:a21:9f96 with SMTP id yy19-20020a056a21339300b001310a219f96mr29037986pzb.6.1693058164283; Sat, 26 Aug 2023 06:56:04 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1693058164; cv=none; d=google.com; s=arc-20160816; b=mrCyJdyoV5xOtlIB+0LqHW6gorb5M0sb8yzvBELmFLxWXOajYdWGQsCrGbNjLEdROi WJRGPDyCtwyUjdSbHO0p4O/EnHChP0kvraJn10mzYo1rrtqOdAH30R/PUewYXMhxMOxu gT8SKlCh47z5tS7mVLEJo/h6pd54+3va5remOZW0rQrM6Gp0Gz3N1z9N29UuSaN6oxJ/ FZABAg+sa43W63gXjhoptIfYVa0nltMJNXC7gSkfCiTn2A0v9pGZSnqDMU8vQ+qyQrG7 1TGNUg493wddRSGWXrkhf8bLC12It0XT7VaF4L4b5PS3CHChQuNVhAnFQgQiHWmfAoA/ fWCw== 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 :message-id:date:subject:cc:to:from; bh=+s8LS5FYWhKIKaHi46bQ/MfnTxrX0bXiSiFzOKU6x2Q=; fh=0vaYOzzn3Z5SQEjgoqvxffIotvjIeDSv5QGTvx6cK/U=; b=dAYuS7HK7smu0KMVy92onrqwZBlw0l4M16EgoSIVtP+sNClAlLQ+A5Jtp6Kc7h7FJD b34Y9AvajA3hOkSSqZiEpVZG8wQqSQaFJfbOsF+8n03SAz+BUOx2ppWZEFdPuLmbt5jl 99Nru7dvN0+IyilWHfMjl3YuKxilzJTPeoN00cO1lRuwm38vmy5c2JkjFOwNY3wkhrmI KTP87ajzPq266AMH/8oHc2vDt36tsoMH4gN3Ib1yYa4V4Bq9DoCgXXiJ2gzvoPeXIpi3 XYMjyauYdr/9BgDWuIsGpxdxMywNtz+M9EnqwnIOSlzqzk2GXsgZJRkereV77qvo88J2 DG+Q== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Return-Path: Received: from out1.vger.email (out1.vger.email. [2620:137:e000::1:20]) by mx.google.com with ESMTP id q13-20020a056a00084d00b0068a14066ae2si4159269pfk.51.2023.08.26.06.55.43; Sat, 26 Aug 2023 06:56:04 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) client-ip=2620:137:e000::1:20; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 2620:137:e000::1:20 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S231128AbjHZJya (ORCPT + 99 others); Sat, 26 Aug 2023 05:54:30 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:57278 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231248AbjHZJyB (ORCPT ); Sat, 26 Aug 2023 05:54:01 -0400 Received: from szxga01-in.huawei.com (szxga01-in.huawei.com [45.249.212.187]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 2C72ED2; Sat, 26 Aug 2023 02:53:59 -0700 (PDT) Received: from kwepemd100002.china.huawei.com (unknown [172.30.72.55]) by szxga01-in.huawei.com (SkyGuard) with ESMTP id 4RXsW56pCsztS5W; Sat, 26 Aug 2023 17:50:09 +0800 (CST) Received: from huawei.com (10.67.174.28) by kwepemd100002.china.huawei.com (7.221.188.184) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.2.1258.23; Sat, 26 Aug 2023 17:53:56 +0800 From: Liao Chang To: , CC: , Subject: [PATCH] cpufreq: Fix inconsistency in error messages of cpufreq_resume/suspend() Date: Sat, 26 Aug 2023 09:52:01 +0000 Message-ID: <20230826095201.1137288-1-liaochang1@huawei.com> X-Mailer: git-send-email 2.34.1 MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.67.174.28] X-ClientProxiedBy: dggems701-chm.china.huawei.com (10.3.19.178) To kwepemd100002.china.huawei.com (7.221.188.184) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-4.2 required=5.0 tests=BAYES_00,RCVD_IN_DNSWL_MED, RCVD_IN_MSPIKE_H5,RCVD_IN_MSPIKE_WL,SPF_HELO_NONE,SPF_PASS autolearn=ham autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on lindbergh.monkeyblade.net Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org The error message printed by cpufreq_resume() currently is the pointer value of the policy structure, while the error message printed by cpufreq_suspend() is the name of the driver. In order to make the error messages more consistent and easier to understand, change the error message printed by cpufreq_resume() to the name of driver. Signed-off-by: Liao Chang --- drivers/cpufreq/cpufreq.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/drivers/cpufreq/cpufreq.c b/drivers/cpufreq/cpufreq.c index c835ff117386..2199c04ac64d 100644 --- a/drivers/cpufreq/cpufreq.c +++ b/drivers/cpufreq/cpufreq.c @@ -1943,8 +1943,8 @@ void cpufreq_resume(void) for_each_active_policy(policy) { if (cpufreq_driver->resume && cpufreq_driver->resume(policy)) { - pr_err("%s: Failed to resume driver: %p\n", __func__, - policy); + pr_err("%s: Failed to resume driver: %s\n", __func__, + cpufreq_driver->name); } else if (has_target()) { down_write(&policy->rwsem); ret = cpufreq_start_governor(policy); -- 2.34.1