From patchwork Sat Dec 2 10:27:18 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Nishanth Menon X-Patchwork-Id: 120415 Delivered-To: patch@linaro.org Received: by 10.140.22.227 with SMTP id 90csp2211848qgn; Sat, 2 Dec 2017 02:27:27 -0800 (PST) X-Google-Smtp-Source: AGs4zMY4vAalAQRXSBtM1R+3G76EQAM4xgxerTzU2k8ksFjxg/KwJByVJ/PvmaSpRyGF68DvsYB5 X-Received: by 10.98.220.218 with SMTP id c87mr13278821pfl.229.1512210447810; Sat, 02 Dec 2017 02:27:27 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1512210447; cv=none; d=google.com; s=arc-20160816; b=t459VO+HuBvU0eipJy6XYTf2jqQxAqnZFc9HZt2QjIcKzSrTguZFxaHLgB4SNAYLNY Wdcg8wvB1hfNn+WbH/bEzYMIYqYLhPv11dqzu4wPkLcornE/LUiIiN/SGipUSM1UFoGN KHRxcqVnEvaMkggDYUQG3mCAQzJLp2PVOcbM7kvS+c5wRY++h/xs+lCyHhnzCraJDLKd 5id3QcULFjCeK7JG/P1X6c4pcmiP1YKS5hn7ri14Vw8k6EaMga6EwsbYSdZStDKlZm/T wWxeWo73MnXxptP61F4pTJckgNqBvjNfCNfz6hondKoZ9pdDAl6dPJzQD53NlOgivDPQ 7UzA== 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=9Jtzlg5cTs0a8ryz1AeyWOfIBrjgSn+Ta45jC6mNrXw=; b=Mier4Dd5xMSVXm9nNW8VoSnZPjcOm2xpceNO3p9sut1/haW+fR+KW/ksaiTUcKNcAF 41CAAIhWiFWK/b7FcHlYRhoBfZt2VXDN16UCksilVXg3QfjT2/JM4ilSDkH7yywvHGdr qheuSN65fInd3z2hGO4zkRGQqWoeqE5GCcqguKsAdR4cikot4nwWbKOlSibGAlMifQgg dA810SOS7d1s/ZMaFb1KrYLIKDJ52MMw4eWUQDqOjJFPQrs4nrAUkaiNZm8bcZ9tgvsz XOIziFvlDYrpi2r/uPttA5IQsj8+R3iIcYC/O3reg8r+rkn9yuY+U8h/0fvUkWAmA0bS NFHA== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@ti.com header.s=ti-com-17Q1 header.b=OGH7epPV; 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 s24si6177028plp.798.2017.12.02.02.27.27; Sat, 02 Dec 2017 02:27:27 -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=OGH7epPV; 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 S1751779AbdLBK1Z (ORCPT + 28 others); Sat, 2 Dec 2017 05:27:25 -0500 Received: from lelnx193.ext.ti.com ([198.47.27.77]:51115 "EHLO lelnx193.ext.ti.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751428AbdLBK1Y (ORCPT ); Sat, 2 Dec 2017 05:27:24 -0500 Received: from dflxv15.itg.ti.com ([128.247.5.124]) by lelnx193.ext.ti.com (8.15.1/8.15.1) with ESMTP id vB2ARNDs013717; Sat, 2 Dec 2017 04:27:23 -0600 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/simple; d=ti.com; s=ti-com-17Q1; t=1512210443; bh=6STiWfWZyPCuFlYNPwZch1sPVAVAQde6KBgOI+r96mo=; h=From:To:CC:Subject:Date; b=OGH7epPV2/n4np0/rCONBVS69QRS3QOh9YfShXe8TQAVlqnXqjUik0mri2mOdzajr I0HRGlp4gllVSnFBmwrH+11kqkJ0upT5WAsUsx5oNQP/F4uFl1sglcSnsOxczlDCKq o/lstwIvXoV82vA/cYhFHS//TSSSOr9t+dhOipSU= Received: from DFLE100.ent.ti.com (dfle100.ent.ti.com [10.64.6.21]) by dflxv15.itg.ti.com (8.14.3/8.13.8) with ESMTP id vB2ARNXp019961; Sat, 2 Dec 2017 04:27:23 -0600 Received: from DFLE107.ent.ti.com (10.64.6.28) by DFLE100.ent.ti.com (10.64.6.21) 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:27:23 -0600 Received: from dflp32.itg.ti.com (10.64.6.15) by DFLE107.ent.ti.com (10.64.6.28) 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:27:23 -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 vB2ARN6c006641; Sat, 2 Dec 2017 04:27:23 -0600 From: Nishanth Menon To: Jassi Brar CC: , Nishanth Menon Subject: [PATCH] mailbox: ti-msgmgr: Use %zu for size_t print format Date: Sat, 2 Dec 2017 04:27:18 -0600 Message-ID: <20171202102718.18942-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 message->len is of type size_t and %d is incorrect format usage. Instead use %zu for handling size_t correctly. Signed-off-by: Nishanth Menon --- drivers/mailbox/ti-msgmgr.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) -- 2.14.1 Reviewed-by: Lokesh Vutla diff --git a/drivers/mailbox/ti-msgmgr.c b/drivers/mailbox/ti-msgmgr.c index c8f34d69f03c..78753a87ba4d 100644 --- a/drivers/mailbox/ti-msgmgr.c +++ b/drivers/mailbox/ti-msgmgr.c @@ -283,7 +283,7 @@ static int ti_msgmgr_send_data(struct mbox_chan *chan, void *data) desc = inst->desc; if (desc->max_message_size < message->len) { - dev_err(dev, "Queue %s message length %d > max %d\n", + dev_err(dev, "Queue %s message length %zu > max %d\n", qinst->name, message->len, desc->max_message_size); return -EINVAL; }