summaryrefslogtreecommitdiff
path: root/driver/tcpm
diff options
context:
space:
mode:
authorDaisuke Nojiri <dnojiri@chromium.org>2023-04-14 13:47:27 -0700
committerChromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com>2023-04-17 03:08:26 +0000
commit0c8962076afe476a4429d62b20b61fd339b5098d (patch)
treed9aeafadcba949a18a38d22f10a5ce4d35d66372 /driver/tcpm
parent80af80aa733afa1a674426c48b6bf1dbc963dd9f (diff)
downloadchrome-ec-0c8962076afe476a4429d62b20b61fd339b5098d.tar.gz
ANX7406: Add prefix to CPRINTS
This CL adds 'ANX7406' as a prefix to CPRINTS. BUG=b:212509565 BRANCH=None TEST=make BOARD=hades Signed-off-by: Daisuke Nojiri <dnojiri@chromium.org> Change-Id: If4d7cea2082a0948948c2cbd4286d26c7959eed1 Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/4426801 Reviewed-by: Eric Yilun Lin <yllin@google.com> Commit-Queue: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'driver/tcpm')
-rw-r--r--driver/tcpm/anx7406.c8
1 files changed, 4 insertions, 4 deletions
diff --git a/driver/tcpm/anx7406.c b/driver/tcpm/anx7406.c
index a035ce2bd8..1e3d2285cf 100644
--- a/driver/tcpm/anx7406.c
+++ b/driver/tcpm/anx7406.c
@@ -16,7 +16,7 @@
#include "usb_pd.h"
#include "util.h"
-#define CPRINTS(format, args...) cprints(CC_USBPD, format, ##args)
+#define CPRINTS(format, args...) cprints(CC_USBPD, "ANX7406: " format, ##args)
const struct anx7406_i2c_addr anx7406_i2c_addrs_flags[] = {
{ ANX7406_TCPC0_I2C_ADDR_FLAGS, ANX7406_TOP0_I2C_ADDR_FLAGS },
@@ -115,7 +115,7 @@ static int anx7406_init(int port)
{
int rv, i;
- CPRINTS("C%d: %s", port, __func__);
+ CPRINTS("C%d: init", port);
/*
* find corresponding anx7406 TOP address according to
* specified TCPC address
@@ -132,7 +132,7 @@ static int anx7406_init(int port)
}
}
if (!I2C_STRIP_FLAGS(i2c_peripheral[port].top_addr_flags)) {
- CPRINTS("C%d: 0x%x is invalid for anx7406", port,
+ CPRINTS("C%d: 0x%x is invalid", port,
i2c_peripheral[port].top_addr_flags);
return EC_ERROR_UNKNOWN;
}
@@ -192,7 +192,7 @@ static int anx7406_init(int port)
rv = anx7406_hpd_reset(port);
- CPRINTS("C%d: TCPC anx7406 initial success", port);
+ CPRINTS("C%d: init success", port);
return rv;
}