From patchwork Mon Feb 12 18:41:30 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Antonio Cardace X-Patchwork-Id: 872359 X-Patchwork-Delegate: boris.brezillon@free-electrons.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.infradead.org (client-ip=2001:8b0:10b:1236::1; helo=casper.infradead.org; envelope-from=linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org; receiver=) Authentication-Results: ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="ppotYSBV"; dkim=pass (2048-bit key; unprotected) header.d=lists.infradead.org header.i=@lists.infradead.org header.b="RDAaGfAg"; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=gmail.com header.i=@gmail.com header.b="ZTA7kkyK"; dkim-atps=neutral Received: from casper.infradead.org (casper.infradead.org [IPv6:2001:8b0:10b:1236::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 3zgGvC13Kqz9sRm for ; Tue, 13 Feb 2018 07:08:23 +1100 (AEDT) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=casper.20170209; h=Sender:Content-Transfer-Encoding: Content-Type:MIME-Version:Cc:List-Subscribe:List-Help:List-Post:List-Archive: List-Unsubscribe:List-Id:Message-Id:Date:Subject:To:From:Reply-To:Content-ID: Content-Description:Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc :Resent-Message-ID:In-Reply-To:References:List-Owner; bh=LvVrJ8EPPATahDL2LueNT7XpsEBsPlLt3o7keInSNm8=; b=ppotYSBVCfO4qZy5rKTN+JX0Ji 4bTC5up6x/BimjcORb2Ry1OFdu6w1CsrmIPT21udDB9iZtbKUOTasthC/HZcECMe3LkoHnEhg8eKJ GA1ZV/GXcRknYhNCe3FVrntUQR/Gs+UjrGgR3k0SuQpobQCFqgSUbq/CRwYtAYZ3VVvUjLx2CieOU P5UXzP61lX5dWVxLnq0S38D/w+G+IA1FxvqlSXzGCL/UOf6fEGz469/tHPKD65sE0k/ru2YfaSCWN bM8juu3GUmyceAzPuZz9vS+rh/LGIUl4PWvDzkt1d77sM/d2OCDfNbRHR5Fp5iASOEbvQEsV31/jf InrOmthQ==; Received: from [198.137.202.133] (helo=bombadil.infradead.org) by casper.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elKOb-0000Cj-2h for incoming@patchwork.ozlabs.org; Mon, 12 Feb 2018 20:08:13 +0000 DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:MIME-Version:Cc:List-Subscribe: List-Help:List-Post:List-Archive:List-Unsubscribe:List-Id:Message-Id:Date: Subject:To:From:Reply-To:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:In-Reply-To: References:List-Owner; bh=LvVrJ8EPPATahDL2LueNT7XpsEBsPlLt3o7keInSNm8=; b=RDA aGfAgV5XNYa10W6ahHtMFUMxOUT3E+lOSeL8Cw+nzxdfBGmskDxwSWnW8b+5dOZJSQYS0CfNeFOvL FFDF0rNsmtwgsOtQYRInsKdvI2z9pvJOmDJQlMU5hPcxUfwGhIjEHsOF8alinWYcPEjlLzShBL7t5 vx9nyP0gvwNrWZcpQHZ+Of2yOMTfoI7HpIfPDLOkB1cMBDvCqwFeK/u6yyI3rX/o42PzPqjU0cAel y5CCb1da8Z7PHCDMb6scw4yUx3pFbSBDVTQTw0U3gka07LXCbzWISWfLfVGsMcBAMtekEIPLrBaBH R5UInjCVJ+/5Gi6nYX+Fhm0QQ5NClmA==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.89 #1 (Red Hat Linux)) id 1elJQ1-0002N1-SL; Mon, 12 Feb 2018 19:05:37 +0000 Received: from mail-wr0-x242.google.com ([2a00:1450:400c:c0c::242]) by bombadil.infradead.org with esmtps (Exim 4.89 #1 (Red Hat Linux)) id 1elJPy-0001wc-SE for linux-mtd@lists.infradead.org; Mon, 12 Feb 2018 19:05:36 +0000 Received: by mail-wr0-x242.google.com with SMTP id b52so16269619wrd.10 for ; Mon, 12 Feb 2018 11:05:21 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20161025; h=from:to:cc:subject:date:message-id; bh=Pr9ZAczTKjpJDnkmUcMpsYlZr8JIt4qn+sFQYeDjlMI=; b=ZTA7kkyKWaGp9UwlNNEHMdF9Fl6XICbUwEi2KMbQWfaaCg0fuyLxCFYzFJm67TTHiw 3H+89MzgOdc3kjq1EwPiQcagqfyBd2sEf0bdbOBTq02goxXdCrFU+CqFm+Gav63S+zHu Ht+9g7ngpBy7MjMjvPhgzkx6e/Aru556rX8rG6F8qMP6k3ZNk5jkFIQBMH7eJdVEVoVF VmW0waC+pxDcbU4YpsVc847WUbV6GW7xvMmczfYpL4//817djZUZNYAWz7d3UqqqvAz4 8IY/01aWRDwtdZfOIxgGEefkHQs0ty2eZG3lut9l6A4Y9Vr5t13hh2ELtfYbz8sBS2Yu OHTg== 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; bh=Pr9ZAczTKjpJDnkmUcMpsYlZr8JIt4qn+sFQYeDjlMI=; b=IS5mXS7b65ccFYdfJT3Tn5tvYPCBOKNvZIVkuMpa8HH7vsJOmSGcdaqvZglneCDHND Z+WvS9eQttgTIaKpIF6j2JLW7hFzPFWwq+4KpD/4qVlOwOjm+vimM2kgRMBZ9POTywhF aNdtYARl7I8ydlhhn8GtQf+F1cEU1hLa5JRkBfiOrx8m7EWjTTmevaQQJrAOD1+cPLo6 EKBoejd8NDoovnSHdodaA6e9muajoV3ARpNmH+2XqQUhcwASmdnSz8rNGre16ioRL1F1 Lwy/t85woJHnQviquI/vNzmU/V0yx80b3rZ+GvBWFCvEpYw8DBa9rKNVN3V7VrVBUbcR QwOA== X-Gm-Message-State: APf1xPBdyOexl33VCPv01kubvFOf7G1DkW8fIyPyi7/X39jFIw/ptY1c XBHKc8kpnqDzkJsPa48TaGfYJBEz X-Google-Smtp-Source: AH8x225TL7IRB8nmJAfYOybN2AGHzJYfHzItwZgdfURxfCmwvEMtZihSns7tZkVbn6emT8fQOcTiWQ== X-Received: by 10.223.160.171 with SMTP id m40mr8064925wrm.32.1518460914344; Mon, 12 Feb 2018 10:41:54 -0800 (PST) Received: from acardace-dev.corp.roku ([81.145.207.254]) by smtp.gmail.com with ESMTPSA id p35sm3957184wrb.34.2018.02.12.10.41.53 (version=TLS1_2 cipher=ECDHE-RSA-AES128-GCM-SHA256 bits=128/128); Mon, 12 Feb 2018 10:41:53 -0800 (PST) From: Antonio Cardace To: boris.brezillon@free-electrons.com, cyrille.pitchen@wedev4u.fr Subject: [PATCH] mtd: st_spi_fsm: use %*ph to print small buffer Date: Mon, 12 Feb 2018 18:41:30 +0000 Message-Id: <20180212184130.10238-1-anto.cardace@gmail.com> X-Mailer: git-send-email 2.15.1.354.g95ec6b1b3 X-Spam-Note: CRM114 invocation failed X-Spam-Score: -2.0 (--) X-Spam-Report: SpamAssassin version 3.4.1 on bombadil.infradead.org summary: Content analysis details: (-2.0 points) pts rule name description ---- ---------------------- -------------------------------------------------- -0.0 RCVD_IN_DNSWL_NONE RBL: Sender listed at http://www.dnswl.org/, no trust [2a00:1450:400c:c0c:0:0:0:242 listed in] [list.dnswl.org] 0.0 FREEMAIL_FROM Sender email is commonly abused enduser mail provider (anto.cardace[at]gmail.com) -0.0 SPF_PASS SPF: sender matches SPF record -1.9 BAYES_00 BODY: Bayes spam probability is 0 to 1% [score: 0.0000] 0.1 DKIM_SIGNED Message has a DKIM or DK signature, not necessarily valid -0.1 DKIM_VALID_AU Message has a valid DKIM or DK signature from author's domain -0.1 DKIM_VALID Message has at least one valid DKIM or DK signature X-BeenThere: linux-mtd@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: Linux MTD discussion mailing list List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Antonio Cardace , andriy.shevchenko@linux.intel.com, linux-mtd@lists.infradead.org MIME-Version: 1.0 Sender: "linux-mtd" Errors-To: linux-mtd-bounces+incoming=patchwork.ozlabs.org@lists.infradead.org Use %*ph format to print small buffer as hex string. Suggested-by: Andy Shevchenko Signed-off-by: Antonio Cardace --- drivers/mtd/devices/st_spi_fsm.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/mtd/devices/st_spi_fsm.c b/drivers/mtd/devices/st_spi_fsm.c index 7bc29d725200..a33f5fd6818c 100644 --- a/drivers/mtd/devices/st_spi_fsm.c +++ b/drivers/mtd/devices/st_spi_fsm.c @@ -1868,8 +1868,7 @@ static struct flash_info *stfsm_jedec_probe(struct stfsm *fsm) */ ext_jedec = id[3] << 8 | id[4]; - dev_dbg(fsm->dev, "JEDEC = 0x%08x [%02x %02x %02x %02x %02x]\n", - jedec, id[0], id[1], id[2], id[3], id[4]); + dev_dbg(fsm->dev, "JEDEC = 0x%08x [%5ph]\n", jedec, id); for (info = flash_types; info->name; info++) { if (info->jedec_id == jedec) {