From patchwork Sat Dec 2 10:20:12 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 120413 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2208194qgn; Sat, 2 Dec 2017 02:21:22 -0800 (PST) X-Google-Smtp-Source: AGs4zMZBcTqeip4238T0nZ6Ewz3MojKeVnbdYYo4VV1r/hTLjmikBskotKUoRz0LvlfOs+UcKmon X-Received: by 10.84.175.67 with SMTP id s61mr3127032plb.72.1512210082454; Sat, 02 Dec 2017 02:21:22 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512210082; cv=none; d=google.com; s=arc-20160816; b=yMOuBqHdAbetGEJJPMcBMbwoPz9Jqh2+4Bj1b+hX32ey+7rXCcIzNzEkmjdU37fFhh MaW9RETC0h3XUvFQS3v8s8anmDCJLNup5pJFPMszMCIs66Q41hRgfdQyVr7Fr0v0TOs4 T3qRrJT4eL+lrGzDiyJH73mN6UhM283GPeCaSGxIZiq+PTRPXK4rwK9XekgBb8XXokDP C0dJNI9RV7P64z8ab0XYw+ZkCJK4fUExmwAwXAutj6FVAL1+sq6EajOH1HrEgph+jaTe MdwoOA+S4TS1hLn4EI53nHK994nDEB7PCW0wYpwI4vS3ZcUEkaQ5rwEwbkqdzEUoqPUl IVdw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:message-id:date:subject:cc :to:from:dkim-signature:arc-authentication-results; bh=kYrm/tSExiZD6t5SHkXUbDr/hy9THbjryyvj23b9/tU=; b=MVcWOKfbWEdi53vvx9tYSp2eK3Ou6OFHTjKRAewIs6zsIjX2GrNS5bf8KYdmq9RRbN HIl9uQiTHk+kk/XjtSLLDw4C84WIN+kb3P3kVMr8cfbE7A06jpMyTurkRlyz3JlVQEby /x45/fuh8higq6+m6XFTBk7mcgXSt1yhYENS01+fIw7t+8Uda0YFMH1MF/V7XIuq/0JK 6JcyIRXwWBRRh8IjX1pGlskSCLCQ1iSZKBz6IwyAV2Al7eNO/+07CHEOrS8UziM4eiBu cjsFSMwTShlHTO04mc3kPTQLXE/fxqw5HOuDeHg5J4aCxx4QXoAtZY9DxsL3xbxKFYCK yDTg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=W8bvp6hz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id f26si6256874pge.67.2017.12.02.02.21.22; Sat, 02 Dec 2017 02:21:22 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=W8bvp6hz; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=pass (p=QUARANTINE sp=NONE dis=NONE) header.from=ti.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1751758AbdLBKVT (ORCPT + 28 others); Sat, 2 Dec 2017 05:21:19 -0500 Received: from fllnx209.ext.ti.com ([198.47.19.16]:55429 "EHLO fllnx209.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751611AbdLBKVS (ORCPT ); Sat, 2 Dec 2017 05:21:18 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by fllnx209.ext.ti.com (8.15.1/8.15.1) with ESMTP id vB2AKJiO004144; Sat, 2 Dec 2017 04:20:19 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1512210019; bh=IhxR9C2p4MC9tXjSacXtiQU/6bK4uQy3EK9ATohfJT4=; h=From:To:CC:Subject:Date; b=W8bvp6hz5AM3e6OUDxppqYz7WRvjBPs/3+VG6EEPPqMOzp2U5ij2bq7rChifpKy08 FYn9raA1Eq4paD5pHxvqk6qlimrRN7CF4oX3y9kL/xBzClAPz5xNWM1jYtSjdytya6 fP4SNXoDeZmkWQhscFbypWPoGTUeoyCPiCR8fS2Y= Received: from DFLE103.ent.ti.com (dfle103.ent.ti.com [10.64.6.24]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB2AKECM011313; Sat, 2 Dec 2017 04:20:14 -0600 Received: from DFLE101.ent.ti.com (10.64.6.22) by DFLE103.ent.ti.com (10.64.6.24) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.1.845.34; Sat, 2 Dec 2017 04:20:14 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE101.ent.ti.com (10.64.6.22) with Microsoft SMTP Server (version=TLS1_0, cipher=TLS_RSA_WITH_AES_256_CBC_SHA) id 15.1.845.34 via Frontend Transport; Sat, 2 Dec 2017 04:20:13 -0600 Received: from localhost (ileax41-snat.itg.ti.com [10.172.224.153]) by dflp32.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB2AKEU8000551; Sat, 2 Dec 2017 04:20:14 -0600 From: Nishanth Menon To: Santosh Shilimkar , Tero Kristo CC: , , Nishanth Menon Subject: [PATCH] firmware: ti_sci: Use %zu for size_t print format Date: Sat, 2 Dec 2017 04:20:12 -0600 Message-ID: <20171202102012.354-1-nm@ti.com> X-Mailer: git-send-email 2.14.1 MIME-Version: 1.0 X-EXCLAIMER-MD-CONFIG: e1e8a2fd-e40a-4ac6-ac9b-f7e9cc9ee180 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org mbox_msg->len is of type size_t and %d is incorrect format. Instead use %zu for handling size_t correctly. Signed-off-by: Nishanth Menon --- drivers/firmware/ti_sci.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) -- 2.14.1 Reviewed-by: Lokesh Vutla diff --git a/drivers/firmware/ti_sci.c b/drivers/firmware/ti_sci.c index 23b12d99ddfe..5229036dcfbf 100644 --- a/drivers/firmware/ti_sci.c +++ b/drivers/firmware/ti_sci.c @@ -287,13 +287,13 @@ static void ti_sci_rx_callback(struct mbox_client *cl, void *m) /* Is the message of valid length? */ if (mbox_msg->len > info->desc->max_msg_size) { - dev_err(dev, "Unable to handle %d xfer(max %d)\n", + dev_err(dev, "Unable to handle %zu xfer(max %d)\n", mbox_msg->len, info->desc->max_msg_size); ti_sci_dump_header_dbg(dev, hdr); return; } if (mbox_msg->len < xfer->rx_len) { - dev_err(dev, "Recv xfer %d < expected %d length\n", + dev_err(dev, "Recv xfer %zu < expected %d length\n", mbox_msg->len, xfer->rx_len); ti_sci_dump_header_dbg(dev, hdr); return;