From: Simon Glass Date: Tue, 17 Jan 2017 22:51:56 -0700 Subject: [U-Boot] [PATCH 20/22] cros_ec: Fix debug() statement in ec_command_inptr() In-Reply-To: <20170118055200.6825-6-sjg@chromium.org> References: <20170118055200.6825-6-sjg@chromium.org> Message-ID: <20170118055200.6825-21-sjg@chromium.org> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de This prints out the wrong pointers. Fix it. Signed-off-by: Simon Glass --- drivers/misc/cros_ec.c | 3 +-- 1 file changed, 1 insertion(+), 2 deletions(-) diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c index 3d449b2a552..e2027ea5d20 100644 --- a/drivers/misc/cros_ec.c +++ b/drivers/misc/cros_ec.c @@ -304,8 +304,7 @@ static int ec_command_inptr(struct cros_ec_dev *dev, uint8_t cmd, NULL, 0, &din, din_len); } - debug("%s: len=%d, dinp=%p, *dinp=%p\n", __func__, len, dinp, - dinp ? *dinp : NULL); + debug("%s: len=%d, din=%p\n", __func__, len, din); if (dinp) { /* If we have any data to return, it must be 64bit-aligned */ assert(len <= 0 || !((uintptr_t)din & 7)); -- 2.11.0.483.g087da7b7c-goog