summaryrefslogtreecommitdiff
path: root/common/hooks.c
diff options
context:
space:
mode:
Diffstat (limited to 'common/hooks.c')
-rw-r--r--common/hooks.c10
1 files changed, 5 insertions, 5 deletions
diff --git a/common/hooks.c b/common/hooks.c
index b7086a866b..f95d531947 100644
--- a/common/hooks.c
+++ b/common/hooks.c
@@ -14,10 +14,10 @@
#ifdef CONFIG_HOOK_DEBUG
#define CPUTS(outstr) cputs(CC_HOOK, outstr)
-#define CPRINTF(format, args...) cprintf(CC_HOOK, format, ## args)
+#define CPRINTS(format, args...) cprints(CC_HOOK, format, ## args)
#else
#define CPUTS(outstr)
-#define CPRINTF(format, args...)
+#define CPRINTS(format, args...)
#endif
#define DEFERRED_FUNCS_COUNT (__deferred_funcs_end - __deferred_funcs)
@@ -83,7 +83,7 @@ static void record_hook_delay(uint64_t now, uint64_t last, uint64_t interval,
/* Warn if delayed by more than 10% */
if (delayed * 10 > interval)
- CPRINTF("[%T Hook at interval %d us delayed by %d us]\n",
+ CPRINTS("Hook at interval %d us delayed by %d us",
(uint32_t)interval, (uint32_t)delayed);
}
#endif
@@ -98,7 +98,7 @@ void hook_notify(enum hook_type type)
uint64_t run_time;
#endif
- CPRINTF("[%T hook notify %d]\n", type);
+ CPRINTS("hook notify %d", type);
start = hook_list[type].start;
end = hook_list[type].end;
@@ -187,7 +187,7 @@ void hook_task(void)
/* Handle deferred routines */
for (i = 0; i < DEFERRED_FUNCS_COUNT; i++) {
if (defer_until[i] && defer_until[i] < t) {
- CPRINTF("[%T hook call deferred 0x%p]\n",
+ CPRINTS("hook call deferred 0x%p",
__deferred_funcs[i].routine);
/*
* Call deferred function. Clear timer first,