diff options
author | Tom Hughes <tomhughes@chromium.org> | 2022-07-08 12:50:29 -0700 |
---|---|---|
committer | Chromeos LUCI <chromeos-scoped@luci-project-accounts.iam.gserviceaccount.com> | 2022-07-19 16:29:15 +0000 |
commit | 4869e6f485ff4d1eb44d5c3148f0e6b7167a1148 (patch) | |
tree | 6f79683b438bc2b67107b14c00d3062ca02fa6dc /common/hooks.c | |
parent | 8d30a05ed74730fece3ebf0fd617426c565541ce (diff) | |
download | chrome-ec-4869e6f485ff4d1eb44d5c3148f0e6b7167a1148.tar.gz |
tree: Change non-standard "%pP" printf format to "%p"
This is the last non-standard format overloading "%p", so we can change
it to the standard "%p" format.
Using standard format specifiers makes it easier to switch between the
"builtin" EC standard library and the C standard library provided by the
toolchain (or Zephyr).
BRANCH=none
BUG=b:238433667, b:234181908
TEST=On icetower v0.1 with servo_micro and J-Trace attached:
Before change:
> rw 536870912
read 0x20000000 = 0x45dbfce2
After change:
> rw 536870912
read 0x20000000 = 0x45dbfce2
Signed-off-by: Tom Hughes <tomhughes@chromium.org>
Change-Id: Id5680ab07af5352d463df42daadff1619c06c9af
Reviewed-on: https://chromium-review.googlesource.com/c/chromiumos/platform/ec/+/3756180
Reviewed-by: Eric Yilun Lin <yllin@google.com>
Diffstat (limited to 'common/hooks.c')
-rw-r--r-- | common/hooks.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/common/hooks.c b/common/hooks.c index 61904eea59..d5e45a5324 100644 --- a/common/hooks.c +++ b/common/hooks.c @@ -196,7 +196,7 @@ void hook_task(void *u) */ __deferred_until[i] = 0; interrupt_enable(); - CPRINTS("hook call deferred 0x%pP", + CPRINTS("hook call deferred 0x%p", __deferred_funcs[i].routine); __deferred_funcs[i].routine(); interrupt_disable(); |