From patchwork Sun Jul 17 00:10:10 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Fabio Estevam X-Patchwork-Id: 9233445 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id 1B8F760865 for ; Sun, 17 Jul 2016 00:14:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id 0345C20951 for ; Sun, 17 Jul 2016 00:14:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id EB707212CF; Sun, 17 Jul 2016 00:14:30 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.1 required=2.0 tests=BAYES_00, DKIM_ADSP_CUSTOM_MED, DKIM_SIGNED, FREEMAIL_FROM, RCVD_IN_DNSWL_MED, T_DKIM_INVALID autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [198.137.202.9]) (using TLSv1.2 with cipher AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 560DA20951 for ; Sun, 17 Jul 2016 00:14:30 +0000 (UTC) Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.85_2 #1 (Red Hat Linux)) id 1bOZg8-0004bZ-PT; Sun, 17 Jul 2016 00:11:28 +0000 Received: from mail-yw0-x242.google.com ([2607:f8b0:4002:c05::242]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bOZg4-0004aQ-QJ for linux-arm-kernel@lists.infradead.org; Sun, 17 Jul 2016 00:11:26 +0000 Received: by mail-yw0-x242.google.com with SMTP id l125so9340205ywb.1 for ; Sat, 16 Jul 2016 17:11:03 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=from:to:cc:subject:date:message-id; bh=mk4DgX8s6tDG3I4jcEvHGBgNdB8NcWgRvJKjkSr/aM4=; b=oS2zdjh/b5QR0qxuy7C5UDROPbxcw5nMxahBkPHW3w7wFhOod4vCWqX3FTP73wI+Co y62O9aEsu3FWkIrCumhN1N8cr0swPHVxV3P37dd3T2kSk+zO2kkJZtANXZT3lTtxTKyY J6U5KATK6JPNHXeCSbw3HjCiNIDzkGZM8n+0gZhtuLDLsbnfd8Ia5gjo84hh3RfKZE5I Q+mE1zzeS+kvAJYMx0vIEk1w7U8KYllSNLNJ58w4E15RoZaJxG1/zz16MpxeMLwlbB9q s71I97Xn6DW+uPSXIn9Xte5w8DMo/6HCRxIFgrzEe7JIeZcusq+Ofp2k7S5RkdgxU1o4 o3/Q== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20130820; h=x-gm-message-state:from:to:cc:subject:date:message-id; bh=mk4DgX8s6tDG3I4jcEvHGBgNdB8NcWgRvJKjkSr/aM4=; b=UZ4A7OHHGU351XvbkzzT6FxVS5edZ8uuHUoOAi0Od3jfsY5aPwX9ga6BDHvFyxyq8O 0QY2zM+JPLpTdDE2WKRKx54CgPSlJn/XxWYts/SN9pqQ7xlRLtOPBSHcV3fPg3GcCL0v XShUAN1Gd9XyjY6ohG82jT0KfVftzFNpBIKRqu3OKi3f9yCzhqMKw0dK2VagasqfhPLh JPGAJSaW6pi+7SEg/PsZIoY7izz+F8cje1S9+1NzM5k7pwOYrPobacGjrfUC6l7ty9gT LYsWJrZ8oq2L8PAPSTSuzcWW3AaTjlMfRIWi5RcGDsDuidPNnPAYtqQz6QSt9ibEooXn Pj0g== X-Gm-Message-State: ALyK8tJYdF16SlOqyT5DrJq8YODkYh6U/i8FB0hW7mRSXQ0TN47o+548c0OZ4c57ikVxpA== X-Received: by 10.129.87.214 with SMTP id l205mr18630295ywb.96.1468714262835; Sat, 16 Jul 2016 17:11:02 -0700 (PDT) Received: from localhost.localdomain ([179.159.164.34]) by smtp.gmail.com with ESMTPSA id l81sm551524ywb.56.2016.07.16.17.11.00 (version=TLS1_2 cipher=ECDHE-RSA-AES128-SHA bits=128/128); Sat, 16 Jul 2016 17:11:01 -0700 (PDT) From: Fabio Estevam To: linux@armlinux.org.uk Subject: [PATCH] ARM: dma-mapping: Use %zu for printing a size_t variable Date: Sat, 16 Jul 2016 21:10:10 -0300 Message-Id: <1468714210-1407-1-git-send-email-festevam@gmail.com> X-Mailer: git-send-email 1.9.1 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20160716_171124_951420_4FE46D07 X-CRM114-Status: GOOD ( 12.02 ) X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.20 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Fabio Estevam , fmh6jj@gmail.com, linux-arm-kernel@lists.infradead.org MIME-Version: 1.0 Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP From: Fabio Estevam According to Documentation/printk-formats.txt when printing a size_t variable we should use %zu or %zx format specifiers. As we are printing a memory size value, we should better use %zu in this case. Reported-by: Frank Mori Hess Signed-off-by: Fabio Estevam Reviewed-by: Matthias Brugger --- arch/arm/mm/dma-mapping.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/arch/arm/mm/dma-mapping.c b/arch/arm/mm/dma-mapping.c index 654f202a..5bcf71b 100644 --- a/arch/arm/mm/dma-mapping.c +++ b/arch/arm/mm/dma-mapping.c @@ -436,7 +436,7 @@ static int __init atomic_pool_init(void) gen_pool_set_algo(atomic_pool, gen_pool_first_fit_order_align, (void *)PAGE_SHIFT); - pr_info("DMA: preallocated %zd KiB pool for atomic coherent allocations\n", + pr_info("DMA: preallocated %zu KiB pool for atomic coherent allocations\n", atomic_pool_size / 1024); return 0; } @@ -445,7 +445,7 @@ destroy_genpool: gen_pool_destroy(atomic_pool); atomic_pool = NULL; out: - pr_err("DMA: failed to allocate %zx KiB pool for atomic coherent allocation\n", + pr_err("DMA: failed to allocate %zu KiB pool for atomic coherent allocation\n", atomic_pool_size / 1024); return -ENOMEM; }