From patchwork Thu Jul 29 10:40:17 2021 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Krzysztof Kozlowski X-Patchwork-Id: 489107 Return-Path: X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on aws-us-west-2-korg-lkml-1.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-18.8 required=3.0 tests=BAYES_00,DKIM_SIGNED, DKIM_VALID, DKIM_VALID_AU, HEADER_FROM_DIFFERENT_DOMAINS, INCLUDES_CR_TRAILER, INCLUDES_PATCH, MAILING_LIST_MULTI, SPF_HELO_NONE, SPF_PASS, URIBL_BLOCKED, USER_AGENT_GIT autolearn=ham autolearn_force=no version=3.4.0 Received: from mail.kernel.org (mail.kernel.org [198.145.29.99]) by smtp.lore.kernel.org (Postfix) with ESMTP id F0B7FC4320A for ; Thu, 29 Jul 2021 10:40:51 +0000 (UTC) Received: from vger.kernel.org (vger.kernel.org [23.128.96.18]) by mail.kernel.org (Postfix) with ESMTP id D904D6069E for ; Thu, 29 Jul 2021 10:40:51 +0000 (UTC) Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S236711AbhG2Kkv (ORCPT ); Thu, 29 Jul 2021 06:40:51 -0400 Received: from smtp-relay-canonical-0.canonical.com ([185.125.188.120]:34534 "EHLO smtp-relay-canonical-0.canonical.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S236224AbhG2Kkr (ORCPT ); Thu, 29 Jul 2021 06:40:47 -0400 Received: from mail-ej1-f72.google.com (mail-ej1-f72.google.com [209.85.218.72]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (2048 bits) server-digest SHA256) (No client certificate requested) by smtp-relay-canonical-0.canonical.com (Postfix) with ESMTPS id 5B0063F224 for ; Thu, 29 Jul 2021 10:40:43 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=canonical.com; s=20210705; t=1627555243; bh=KXmULC4yNLbjXfZilnwZUymI+qeRnrLMQ/vMczDuSm8=; h=From:To:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=FjHwBMnKcyKdPC27zPWz3DoMtR3VOrhaGR2XO58hHDUJeciLFNhdhj3Hnt6IrgWQ6 vpSbslqTwxHjDmcQ3izfnhwWo1kEd+tGQp+TiK2PF5y5ZS5H2m/gWQ/FLmKGCZKXiL wZZsW5VdkBYycNd4JNwvdWfXV28wgkeU9y+w+4QyHnqZFSt8LVNIdpLqw9X7vR/+GQ QrsbRqjUnCsmZKipnWuM39cwmk+rzasEJ4IBAKeEhmcTWoT4O81/ctqUvBFCAwDOYw tFZmJKY3NVNGNmyhwYa6Dv4BUSj/H+oRF0F6hXVt9I1DKN0PqjRi7mBZ8v6cIpqMgx exYBmQLvbybYQ== Received: by mail-ej1-f72.google.com with SMTP id a19-20020a1709063e93b0290551ea218ea2so1842575ejj.5 for ; Thu, 29 Jul 2021 03:40:43 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:subject:date:message-id:in-reply-to :references:mime-version:content-transfer-encoding; bh=KXmULC4yNLbjXfZilnwZUymI+qeRnrLMQ/vMczDuSm8=; b=eVXiStkiArbdEGiFEaUG9mMELaodGnsgDoLlnFr0lGakjnW7CRo7yRmGo9wzKMlGFv FSk9BovShhLTm4k4P6pKaTAIkHfUL9AtrS8Q11KUSzyawx3dhzy55BZIIpR1TgVNH+E1 +MrlrMiefGokCbEgovSLKVP4ezbg4IgaJ4uMWhnmxCnoQy9FXNdRCyXGQh7aiPhnsSEp df+oBTJFufZOq5keCu8VXycfpuNvWjSDgv5nyt2uQJYhgJNVyRVJWvA61SuztmORanAL qrdY1797xhGlvkUSJGF7LGIGn7EMppbJgS/wHhYQfaPqthNQA+ac4ydvChuu6n9X31lf E90Q== X-Gm-Message-State: AOAM5338wWGvH2nrkNMjLpsEg90ZbxgrcPzhttBLB/kwXwM+kVM51mbZ C3Zf1gQ2mYqu2njJvQZp7L/DH812BbGi4TGuHwID+920HmIVegDdDDBgPhUybesUDGSB31z4HGO JLVTr0nuTpx5aNFH8KauZDEHIfrTB/mvQvcyTrBRcqf8/ X-Received: by 2002:a05:6402:1cb6:: with SMTP id cz22mr5180754edb.148.1627555242546; Thu, 29 Jul 2021 03:40:42 -0700 (PDT) X-Google-Smtp-Source: ABdhPJxjW5Qyti3uGsJQhjyg9e0Vg9hnF5ajD1dE9uX/LfyH7AIvIxTCmpWZpCLut6Hz/YpkiUBGxg== X-Received: by 2002:a05:6402:1cb6:: with SMTP id cz22mr5180746edb.148.1627555242430; Thu, 29 Jul 2021 03:40:42 -0700 (PDT) Received: from localhost.localdomain ([86.32.47.9]) by smtp.gmail.com with ESMTPSA id c14sm824475ejb.78.2021.07.29.03.40.41 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 29 Jul 2021 03:40:42 -0700 (PDT) From: Krzysztof Kozlowski To: Krzysztof Kozlowski , Mark Greer , Bongsu Jeon , "David S. Miller" , Jakub Kicinski , linux-nfc@lists.01.org, netdev@vger.kernel.org, linux-kernel@vger.kernel.org, linux-wireless@vger.kernel.org Subject: [PATCH 07/12] nfc: fdp: drop unneeded cast for printing firmware size in dev_dbg() Date: Thu, 29 Jul 2021 12:40:17 +0200 Message-Id: <20210729104022.47761-8-krzysztof.kozlowski@canonical.com> X-Mailer: git-send-email 2.27.0 In-Reply-To: <20210729104022.47761-1-krzysztof.kozlowski@canonical.com> References: <20210729104022.47761-1-krzysztof.kozlowski@canonical.com> MIME-Version: 1.0 Precedence: bulk List-ID: X-Mailing-List: linux-wireless@vger.kernel.org Size of firmware is a type of size_t, so print it directly instead of casting to int. Signed-off-by: Krzysztof Kozlowski --- drivers/nfc/fdp/fdp.c | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/drivers/nfc/fdp/fdp.c b/drivers/nfc/fdp/fdp.c index 3e542b7389cb..650a140bea46 100644 --- a/drivers/nfc/fdp/fdp.c +++ b/drivers/nfc/fdp/fdp.c @@ -276,8 +276,8 @@ static int fdp_nci_request_firmware(struct nci_dev *ndev) (data[FDP_FW_HEADER_SIZE + 2] << 16) | (data[FDP_FW_HEADER_SIZE + 3] << 24); - dev_dbg(dev, "RAM patch version: %d, size: %d\n", - info->ram_patch_version, (int) info->ram_patch->size); + dev_dbg(dev, "RAM patch version: %d, size: %zu\n", + info->ram_patch_version, info->ram_patch->size); r = request_firmware(&info->otp_patch, FDP_OTP_PATCH_NAME, dev); @@ -293,8 +293,8 @@ static int fdp_nci_request_firmware(struct nci_dev *ndev) (data[FDP_FW_HEADER_SIZE+2] << 16) | (data[FDP_FW_HEADER_SIZE+3] << 24); - dev_dbg(dev, "OTP patch version: %d, size: %d\n", - info->otp_patch_version, (int) info->otp_patch->size); + dev_dbg(dev, "OTP patch version: %d, size: %zu\n", + info->otp_patch_version, info->otp_patch->size); return 0; }