Received: by 2002:a05:7412:b10a:b0:f3:1519:9f41 with SMTP id az10csp776575rdb; Thu, 30 Nov 2023 19:46:43 -0800 (PST) X-Google-Smtp-Source: AGHT+IEdYqJntjqOQFUeubMxOyn416JAAUgxGZBi6AeTLztqZn99BqiBU0qCEg8DimEQoqCst5nP X-Received: by 2002:a05:6a20:244e:b0:18a:4895:8721 with SMTP id t14-20020a056a20244e00b0018a48958721mr26915242pzc.18.1701402403324; Thu, 30 Nov 2023 19:46:43 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1701402403; cv=none; d=google.com; s=arc-20160816; b=WuaqgCIbG/193X4IhQXLw5B7uP0kfjKVZSd7p+LNP5bVKHzG7UfslufjEZLBI/jC8Y 1O5aFUZr3CX+nlY3iyx3GSShyFLClhnuCETo0n8MdFdHiE9NAYV6WgQfkumVlg4iq4Qw tS4prfG0uEPm8KjGhxasWxlsLgvkQnQsxzLgpgmAWO8IquIBlYitvNEhsXMPxI6BNOi5 sJRf4ZqKarVA5qrKn48OEilwOG2uMnl/NyfY9/cHL4lWN6FK4TdZR2q0fhV4MVYqgofI uOqgy4QXerI2FArlddJlaebSbKOgbuQR/hMldqidsHLLpmo8bbTbjDTxq5buBOxJuwd1 25Hg== 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 :references:in-reply-to:message-id:date:subject:cc:to:from; bh=zVoI+mk6uhSgpmKxeItGk3SpRyOkpqgsqbm6jiCeFSI=; fh=VBTKU4aD+sxp5soex/RyS/kCRSv+g5d5nay990/Axgg=; b=wGjT3J0S3njO4bjUFhYl8YpA1eGwFi9YRseUzGqrOf76Z/jWZgzl7Sti5JSS3GzYi9 pi6NQzKll+yMm8IzLLTYh6m9mXeyIh77BB+1JHlFchQrahBZVaNrGqtll4K352Sem/5f HjxgZM3M7OohvPS74b0L6ZVYeq/bbtsqkTzI1S2vrGVVdo38cT3Etlq6HiWfhYbPuv8J kr3LKzK8CtMBot/qkoQx0chNpVtN1mEYZjCmJqFXPdzkKlALHjDHIWhYW5v3t6lUdOJV arSl/1wQappT2FV9FRPuu/bSj8lfAXewhYSe1042zO+U1oRV+3FoU/+Y3lxDGdnchb9W r0/g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 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 pete.vger.email (pete.vger.email. [23.128.96.36]) by mx.google.com with ESMTPS id c6-20020a6566c6000000b005b9a45633ffsi2345945pgw.446.2023.11.30.19.46.42 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 30 Nov 2023 19:46:43 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) client-ip=23.128.96.36; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.36 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=QUARANTINE dis=NONE) header.from=huawei.com Received: from out1.vger.email (depot.vger.email [IPv6:2620:137:e000::3:0]) by pete.vger.email (Postfix) with ESMTP id 012C4809A9A3; Thu, 30 Nov 2023 19:46:01 -0800 (PST) X-Virus-Status: Clean X-Virus-Scanned: clamav-milter 0.103.11 at pete.vger.email Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1377216AbjLADpd (ORCPT + 99 others); Thu, 30 Nov 2023 22:45:33 -0500 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:56764 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229808AbjLADpb (ORCPT ); Thu, 30 Nov 2023 22:45:31 -0500 Received: from szxga02-in.huawei.com (szxga02-in.huawei.com [45.249.212.188]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 48B0510D7 for ; Thu, 30 Nov 2023 19:45:38 -0800 (PST) Received: from kwepemm000004.china.huawei.com (unknown [172.30.72.56]) by szxga02-in.huawei.com (SkyGuard) with ESMTP id 4ShJpn3kgGzWhrN; Fri, 1 Dec 2023 11:44:49 +0800 (CST) Received: from localhost.localdomain (10.69.192.56) by kwepemm000004.china.huawei.com (7.193.23.18) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_128_GCM_SHA256) id 15.1.2507.35; Fri, 1 Dec 2023 11:45:35 +0800 From: Huisong Li To: CC: , , , , , , , , Subject: [PATCH v3 1/5] soc: hisilicon: kunpeng_hccs: Fix some incorrect format strings Date: Fri, 1 Dec 2023 11:45:30 +0800 Message-ID: <20231201034534.7276-2-lihuisong@huawei.com> X-Mailer: git-send-email 2.33.0 In-Reply-To: <20231201034534.7276-1-lihuisong@huawei.com> References: <20231109054526.27270-1-lihuisong@huawei.com> <20231201034534.7276-1-lihuisong@huawei.com> MIME-Version: 1.0 Content-Transfer-Encoding: 7BIT Content-Type: text/plain; charset=US-ASCII X-Originating-IP: [10.69.192.56] X-ClientProxiedBy: dggems706-chm.china.huawei.com (10.3.19.183) To kwepemm000004.china.huawei.com (7.193.23.18) X-CFilter-Loop: Reflected X-Spam-Status: No, score=-0.8 required=5.0 tests=HEADER_FROM_DIFFERENT_DOMAINS, MAILING_LIST_MULTI,SPF_HELO_NONE,SPF_PASS,T_SCC_BODY_TEXT_LINE autolearn=unavailable autolearn_force=no version=3.4.6 X-Spam-Checker-Version: SpamAssassin 3.4.6 (2021-04-09) on pete.vger.email Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org X-Greylist: Sender passed SPF test, not delayed by milter-greylist-4.6.4 (pete.vger.email [0.0.0.0]); Thu, 30 Nov 2023 19:46:02 -0800 (PST) Fix some incorrect format strings. Signed-off-by: Huisong Li Reviewed-by: Jonathan Cameron --- drivers/soc/hisilicon/kunpeng_hccs.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/soc/hisilicon/kunpeng_hccs.c b/drivers/soc/hisilicon/kunpeng_hccs.c index e31791659560..dad6235dbf1a 100644 --- a/drivers/soc/hisilicon/kunpeng_hccs.c +++ b/drivers/soc/hisilicon/kunpeng_hccs.c @@ -155,7 +155,7 @@ static int hccs_register_pcc_channel(struct hccs_dev *hdev) cl_info->pcc_comm_addr = ioremap(pcc_chan->shmem_base_addr, pcc_chan->shmem_size); if (!cl_info->pcc_comm_addr) { - dev_err(dev, "Failed to ioremap PCC communication region for channel-%d.\n", + dev_err(dev, "Failed to ioremap PCC communication region for channel-%u.\n", hdev->chan_id); rc = -ENOMEM; goto err_mbx_channel_free; @@ -1097,7 +1097,7 @@ static int hccs_create_hccs_dir(struct hccs_dev *hdev, int ret; ret = kobject_init_and_add(&port->kobj, &hccs_port_type, - &die->kobj, "hccs%d", port->port_id); + &die->kobj, "hccs%u", port->port_id); if (ret) { kobject_put(&port->kobj); return ret; @@ -1115,7 +1115,7 @@ static int hccs_create_die_dir(struct hccs_dev *hdev, u16 i; ret = kobject_init_and_add(&die->kobj, &hccs_die_type, - &chip->kobj, "die%d", die->die_id); + &chip->kobj, "die%u", die->die_id); if (ret) { kobject_put(&die->kobj); return ret; @@ -1125,7 +1125,7 @@ static int hccs_create_die_dir(struct hccs_dev *hdev, port = &die->ports[i]; ret = hccs_create_hccs_dir(hdev, die, port); if (ret) { - dev_err(hdev->dev, "create hccs%d dir failed.\n", + dev_err(hdev->dev, "create hccs%u dir failed.\n", port->port_id); goto err; } @@ -1147,7 +1147,7 @@ static int hccs_create_chip_dir(struct hccs_dev *hdev, u16 id; ret = kobject_init_and_add(&chip->kobj, &hccs_chip_type, - &hdev->dev->kobj, "chip%d", chip->chip_id); + &hdev->dev->kobj, "chip%u", chip->chip_id); if (ret) { kobject_put(&chip->kobj); return ret; @@ -1178,7 +1178,7 @@ static int hccs_create_topo_dirs(struct hccs_dev *hdev) chip = &hdev->chips[id]; ret = hccs_create_chip_dir(hdev, chip); if (ret) { - dev_err(hdev->dev, "init chip%d dir failed!\n", id); + dev_err(hdev->dev, "init chip%u dir failed!\n", id); goto err; } } -- 2.33.0