From patchwork Sun Apr 28 20:28:40 2019 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Jagan Teki X-Patchwork-Id: 321 Return-Path: X-Original-To: linux-amarula@patchwork.amarulasolutions.com Delivered-To: linux-amarula@patchwork.amarulasolutions.com Received: from mail-pf1-f198.google.com (mail-pf1-f198.google.com [209.85.210.198]) by ganimede.amarulasolutions.com (Postfix) with ESMTPS id D302B3F08F for ; Sun, 28 Apr 2019 22:29:19 +0200 (CEST) Received: by mail-pf1-f198.google.com with SMTP id a141sf4426618pfa.13 for ; Sun, 28 Apr 2019 13:29:19 -0700 (PDT) ARC-Seal: i=2; a=rsa-sha256; t=1556483358; cv=pass; d=google.com; s=arc-20160816; b=CG9vWxsmxZORaWXVcmfbjJHoivSIqm+msMBKL/Ei+xJnoN5gCmT9cVzLcfdzjGJ0xb LCIHn4Iaic/22MAChPTmM94mMzvYCdECs2LUG/4xjp5muTPNjlln4C1G9jGrIQmFUoHW 8Ld92qHiPNTuKe2opkePCapC2PHGhMVso58dUyjw/9VF7AxhG4xtXTCwDo3as83W1pUm WffIREvyPSfiuYJu3UUeQvksXxk8bQOOCN/Q0MO/f3YX4OdPRK88D1elWkrSW4jyvo1s LDekEICq0vNu73iHFuQYcLNLVOYRmY4YA1nQlD9PdvLcU9kHB/zN1oEB7JkLA7hhanVm g9dg== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-unsubscribe:list-archive:list-help:list-post:list-id :mailing-list:precedence:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=wuFuGi3SxRJp+wnE1rzouCunSNPXdJ5Qt5SqlE3J/UQ=; b=aN3e6vmo1HjDIObU35V0AkZK2Rm/z3pjKccmC8H5oW0Wba91ZF5hO/pbKdDxpibViu 34jb+sFaHrPtBpDmknozKMbywjJqNyfDQrvURRQ8JXbjtR90IaP/v4ZNho7Ttd4zTxaO iCsMLBrPHeR0nWDUGUzY1/w9ZOWSKr4SjceXcheOWlNPkXl6CvSAALPewh4Jvsv9Xz2S O2V8pH8YIEspg4LPqjNVkTky0EAVdFoy9qek3lvJW5dMGsOgGrUH1YmjvIKuUIihd+qS Xg0eLOjxWnXdnOoEWslP7f/nyiqHjIU1vpMUU4q97ljlH65nzKObFU+NVc2ABIjuac1A qS+w== ARC-Authentication-Results: i=2; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CD258NEf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=amarulasolutions.com; s=google; h=from:to:cc:subject:date:message-id:in-reply-to:references :mime-version:x-original-sender:x-original-authentication-results :precedence:mailing-list:list-id:list-post:list-help:list-archive :list-unsubscribe; bh=wuFuGi3SxRJp+wnE1rzouCunSNPXdJ5Qt5SqlE3J/UQ=; b=VjZH1AyWBFJPfSEZn4+6ZrhiRt7LkQh84CBctY1Eo+yTZZqSeJdEwvoyQib3DOn4rV wU/X8LdF3VkrTy0311byVZigqIIWJGyLNPnfZDcfH16tSKG31xfiCNbnP+mSaZ5he2ld /q3/6hcwxoxpmgInpT2JiLsBr168x6XLwWpYU= X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20161025; h=x-gm-message-state:from:to:cc:subject:date:message-id:in-reply-to :references:mime-version:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-spam-checked-in-group:list-post:list-help:list-archive :list-unsubscribe; bh=wuFuGi3SxRJp+wnE1rzouCunSNPXdJ5Qt5SqlE3J/UQ=; b=i/YqjK8jdHDFt09h8sCTQSyB/g1zaiX+grb/ygDLtsZog1PkorzC9MxAL+TPIu5Wo2 biQ3KU+PO0M+uaYPVFwAA0Kaq1zpdb/8T9jnlIBoXfKfofVoyKQXoknyUYLr10fDCNHX 7XpdaTD4Vab/H/YlgrZ2GFFWAQSHrl9EkkldmuqxXRVbJeszAsMlEluUhdZZulCuXYmd qgUU+5Estbrh9btsAC5kvd6w9rMah5CKzW9oNAdEMw4jDjXw0B5SdeU/B4QV5H5PlBQA zDeOiy4Ny44D2ugdeIEsqIb1Xm68Z1hWdIXMLNROSQTGjbOcq5Um+qyiInBeBAX/Byu3 7Ekw== X-Gm-Message-State: APjAAAVkTMj3FZqN4SWLXQX6dtmpDrHzjBPvnVJGDGa4Zm0WEjlFFu2L 4Fw+41l4DyNhB+laVeKPSfdvOh75 X-Google-Smtp-Source: APXvYqy7Tu3gZB2kL9LFn54O5W+6+Cb2aanssbzZAXwsWlqTuYDQFsez0RQOTL3F6jc14iZOB5Bsrg== X-Received: by 2002:a63:1558:: with SMTP id 24mr36807260pgv.126.1556483358641; Sun, 28 Apr 2019 13:29:18 -0700 (PDT) X-BeenThere: linux-amarula@amarulasolutions.com Received: by 2002:a62:5342:: with SMTP id h63ls3267643pfb.15.gmail; Sun, 28 Apr 2019 13:29:18 -0700 (PDT) X-Received: by 2002:aa7:8392:: with SMTP id u18mr60977823pfm.217.1556483358255; Sun, 28 Apr 2019 13:29:18 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1556483358; cv=none; d=google.com; s=arc-20160816; b=jT4JuajwW2FbvOYrQxszrItZVKQNIjNQq8fni3ZaUdKBhlSWO38lxIMycVQVu1stVJ um1dKuCXpFdwPRY1zD/+qEZUmkHGrgqtWjNf1cTiqtEEi3MLn5LHcj66qFlGRKgk90dA 3M5EwZbFbJIb21Z62h+6DR5+V0/E1oUllbRyge9GdI2LtOk0755EvIK7+jPP/xNtZURY h5QIsN61l1iGBPZIi908qTEjzITaSgxDVuUSjGj+2kkc2DgvgT96j5gIInHzFywVVT8P h3fmkASfL+vCMp00HDCsP/pazCLyrAp2mxZtQmnk23BilMhei557wMiYXJ/Gz8KMDPue 7X9w== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:dkim-signature; bh=G7AIHLmAS66RR8+cPmcKh66XwDN0DltyVAK/3cKVBx4=; b=Nj+eJUErtx8eaSnkFR7N8EEFIWRLQrDwp1w6VQq2z8/gmjrnuvkZo3pkqpp37lIsN/ LtECqN6DJr/KRUn6JRpmUC2OM9dbaM6vqwC/RTEACsPmusfWBet+wmHUpQXjXoDTI+WO 3PELyxVjMnDRZQ8LBrkHcacfCq436tI5tv0XxfcjmJm7U1qoTvteKlTlDJyBIgn1lh/Z IZV7mEc7/dEaKBcny90cfRLo0nm4aBZjhHYe6vktFPhsLG004WYCFDHgEnvsSrihrWiZ VMO/JH5oYpUH61AizKom7sIR8hf28+cgZK/ZnkPChSSGqUcEFleCar6EozMmiMMmScV5 b6Gw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CD258NEf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Received: from mail-sor-f65.google.com (mail-sor-f65.google.com. [209.85.220.65]) by mx.google.com with SMTPS id h36sor31057317plb.65.2019.04.28.13.29.18 for (Google Transport Security); Sun, 28 Apr 2019 13:29:18 -0700 (PDT) Received-SPF: pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) client-ip=209.85.220.65; X-Received: by 2002:a17:902:29c9:: with SMTP id h67mr58641065plb.114.1556483357969; Sun, 28 Apr 2019 13:29:17 -0700 (PDT) Received: from localhost.localdomain ([115.97.185.144]) by smtp.gmail.com with ESMTPSA id x66sm68841439pfb.78.2019.04.28.13.29.15 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Sun, 28 Apr 2019 13:29:17 -0700 (PDT) From: Jagan Teki To: Heiko Schocher , Tom Rini Cc: u-boot@lists.denx.de, linux-amarula@amarulasolutions.com, Mario Six Subject: [PATCH v2 05/19] spi: mpc8xxx: Fix function names in strings Date: Mon, 29 Apr 2019 01:58:40 +0530 Message-Id: <20190428202854.8590-6-jagan@amarulasolutions.com> X-Mailer: git-send-email 2.18.0.321.gffc6fa0e3 In-Reply-To: <20190428202854.8590-1-jagan@amarulasolutions.com> References: <20190428202854.8590-1-jagan@amarulasolutions.com> MIME-Version: 1.0 X-Original-Sender: jagan@amarulasolutions.com X-Original-Authentication-Results: mx.google.com; dkim=pass header.i=@amarulasolutions.com header.s=google header.b=CD258NEf; spf=pass (google.com: domain of jagan@amarulasolutions.com designates 209.85.220.65 as permitted sender) smtp.mailfrom=jagan@amarulasolutions.com Content-Type: text/plain; charset="UTF-8" Precedence: list Mailing-list: list linux-amarula@amarulasolutions.com; contact linux-amarula+owners@amarulasolutions.com List-ID: X-Spam-Checked-In-Group: linux-amarula@amarulasolutions.com X-Google-Group-Id: 476853432473 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , From: Mario Six Replace the function name with a "%s" format string and the __func__ variable in debug statements (as proposed by checkpatch). Signed-off-by: Mario Six --- drivers/spi/mpc8xxx_spi.c | 9 +++++---- 1 file changed, 5 insertions(+), 4 deletions(-) diff --git a/drivers/spi/mpc8xxx_spi.c b/drivers/spi/mpc8xxx_spi.c index 1424e7febe..91b639f1e6 100644 --- a/drivers/spi/mpc8xxx_spi.c +++ b/drivers/spi/mpc8xxx_spi.c @@ -81,7 +81,7 @@ int spi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, void *din, int tm, is_read = 0; uchar char_size = 32; - debug("spi_xfer: slave %u:%u dout %08X din %08X bitlen %u\n", + debug("%s: slave %u:%u dout %08X din %08X bitlen %u\n", __func__, slave->bus, slave->cs, *(uint *)dout, *(uint *)din, bitlen); if (flags & SPI_XFER_BEGIN) @@ -127,7 +127,7 @@ int spi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, void *din, /* Write the data out */ spi->tx = tmpdout; - debug("*** spi_xfer: ... %08x written\n", tmpdout); + debug("*** %s: ... %08x written\n", __func__, tmpdout); /* * Wait for SPI transmit to get out @@ -157,9 +157,10 @@ int spi_xfer(struct spi_slave *slave, uint bitlen, const void *dout, void *din, break; } if (tm >= SPI_TIMEOUT) - puts("*** spi_xfer: Time out during SPI transfer"); + debug("*** %s: Time out during SPI transfer\n", + __func__); - debug("*** spi_xfer: transfer ended. Value=%08x\n", tmpdin); + debug("*** %s: transfer ended. Value=%08x\n", __func__, tmpdin); } if (flags & SPI_XFER_END)