summaryrefslogtreecommitdiff
path: root/drivers/misc
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2017-05-19 02:09:22 (GMT)
committerSimon Glass <sjg@chromium.org>2017-06-01 13:03:11 (GMT)
commite907bf2dfbadc77e92b09b9bdb55284c37140b13 (patch)
treede42819ef2eebb90ea6e7fa00089b87ac00bb8e4 /drivers/misc
parent150c5afe5bafa90e4fe398e59af32ad3cdbfe5b7 (diff)
downloadu-boot-fsl-qoriq-e907bf2dfbadc77e92b09b9bdb55284c37140b13.tar.xz
cros_ec: Fix debug() statement in ec_command_inptr()
This prints out the wrong pointers. Fix it. Signed-off-by: Simon Glass <sjg@chromium.org>
Diffstat (limited to 'drivers/misc')
-rw-r--r--drivers/misc/cros_ec.c3
1 files changed, 1 insertions, 2 deletions
diff --git a/drivers/misc/cros_ec.c b/drivers/misc/cros_ec.c
index 3d449b2..e2027ea 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));