Received: by 2002:a05:6a10:9848:0:0:0:0 with SMTP id x8csp299571pxf; Thu, 8 Apr 2021 03:27:13 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyfZzDk509sYh/PkHLKjsVLKwbLSBNue3i6zF56iwA9bpRENp2gKdwo8jr6DcK5pnM1f/O4 X-Received: by 2002:a05:6402:274d:: with SMTP id z13mr10441077edd.344.1617877633493; Thu, 08 Apr 2021 03:27:13 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1617877633; cv=none; d=google.com; s=arc-20160816; b=RUNOKLuzLiVK54VEHQXgwcSY20WmyDganSs1aXab+61j+0Z4pERkiSUlKY4taG+Ezi GqXqzc7h1LqxdTyLAQLsSco7MzjSv+ON3UyK8yJ/eCtw/s4YJoOwBNxJZ9cQdhmTK3U9 gt07Aox1oILFlWscGQ89/9Evw+AY6pcckcdWojuyR1oU7ZefLzhpBGqmvmOk0pNJbcQM c2k7ZkzkCyPEh0VZbXXiVnJZO25+ZW4Yfc2e3KZLiDOH1p9/NRADStTX6jzHh5X4BOO7 N3hfk7DOTfNv9DT4U9hkH4exFDR/BlUY6cFazIF9zDQ5iMcAwLFceEVnCPDNXKOIYKZE tmzA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:mime-version:references:in-reply-to:message-id :date:subject:cc:to:from; bh=0GKaxieHggrIoT1fylSIQFWA9TdReRt12FWqU9BK4gA=; b=QuusmxI/V/hmFsriDd7PFjswXnDxvn3gfSdXdWxRZ9rpw13ZvHbBZLsIP8UBgVt2kT R601Wqd/ONNx1mZgaHu1B/tI400IEMzm2ZbrnTBEqzl48kzsdjyN04EV4WhC0ixeQTFR UyTjvJweL4urzWWBhzE1UKbWpiyB/38YGxR8sBqVysIe6pcTUYkY3A+LFeTZTAcJzMjf dGtPbFVj+zHEfyW1KJUJ3PvemXMDw2zhDW0Vne8sy7mwZ9D5pp8oyZhZTpWqRgw3S9Xc xPDFkY6FurGMtnkSjvdFeJbHtGOX9u7gg4tIWKOYwhK0RZmBtRP/IYtHdzN5In+1Sz58 i7hw== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id cz23si10358702edb.378.2021.04.08.03.26.41; Thu, 08 Apr 2021 03:27:13 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; spf=pass (google.com: domain of linux-crypto-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-crypto-owner@vger.kernel.org; dmarc=fail (p=NONE sp=NONE dis=NONE) header.from=huawei.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S229686AbhDHK0u (ORCPT + 99 others); Thu, 8 Apr 2021 06:26:50 -0400 Received: from szxga04-in.huawei.com ([45.249.212.190]:15184 "EHLO szxga04-in.huawei.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S229741AbhDHK0s (ORCPT ); Thu, 8 Apr 2021 06:26:48 -0400 Received: from DGGEMS410-HUB.china.huawei.com (unknown [172.30.72.60]) by szxga04-in.huawei.com (SkyGuard) with ESMTP id 4FGHRS6r8QzpWLN; Thu, 8 Apr 2021 18:23:48 +0800 (CST) Received: from huawei.com (10.67.165.24) by DGGEMS410-HUB.china.huawei.com (10.3.19.210) with Microsoft SMTP Server id 14.3.498.0; Thu, 8 Apr 2021 18:26:25 +0800 From: Kai Ye To: CC: , , Subject: [PATCH 2/2] crypto: hisilicon/sec_drv - use the correct print format Date: Thu, 8 Apr 2021 18:23:51 +0800 Message-ID: <1617877431-38290-3-git-send-email-yekai13@huawei.com> X-Mailer: git-send-email 2.8.1 In-Reply-To: <1617877431-38290-1-git-send-email-yekai13@huawei.com> References: <1617877431-38290-1-git-send-email-yekai13@huawei.com> MIME-Version: 1.0 Content-Type: text/plain X-Originating-IP: [10.67.165.24] X-CFilter-Loop: Reflected Precedence: bulk List-ID: X-Mailing-List: linux-crypto@vger.kernel.org According to Documentation/core-api/printk-formats.rst, Use the correct print format. Printing an unsigned int value should use %u instead of %d. Signed-off-by: Kai Ye --- drivers/crypto/hisilicon/sec/sec_drv.c | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/drivers/crypto/hisilicon/sec/sec_drv.c b/drivers/crypto/hisilicon/sec/sec_drv.c index 91ee2bb..819bbb5 100644 --- a/drivers/crypto/hisilicon/sec/sec_drv.c +++ b/drivers/crypto/hisilicon/sec/sec_drv.c @@ -233,7 +233,7 @@ static int sec_queue_map_io(struct sec_queue *queue) IORESOURCE_MEM, 2 + queue->queue_id); if (!res) { - dev_err(dev, "Failed to get queue %d memory resource\n", + dev_err(dev, "Failed to get queue %u memory resource\n", queue->queue_id); return -ENOMEM; } @@ -653,12 +653,12 @@ static int sec_queue_free(struct sec_queue *queue) struct sec_dev_info *info = queue->dev_info; if (queue->queue_id >= SEC_Q_NUM) { - dev_err(info->dev, "No queue %d\n", queue->queue_id); + dev_err(info->dev, "No queue %u\n", queue->queue_id); return -ENODEV; } if (!queue->in_use) { - dev_err(info->dev, "Queue %d is idle\n", queue->queue_id); + dev_err(info->dev, "Queue %u is idle\n", queue->queue_id); return -ENODEV; } -- 2.8.1