From 625f9be09688350c07ce48c5a0b53f38cac5ac8c Mon Sep 17 00:00:00 2001 From: Louie Lu Date: Sun, 2 Oct 2016 20:08:24 +0800 Subject: [PATCH] Fixed init-hooks Documentations Since commit: 2e9f2b3009 decide to simplify init hook usage, thus init-hooks.txt documentation need to change it. --- Documentation/init-hooks.txt | 7 ++++--- 1 file changed, 4 insertions(+), 3 deletions(-) diff --git a/Documentation/init-hooks.txt b/Documentation/init-hooks.txt index 68920b17..af1ccedb 100644 --- a/Documentation/init-hooks.txt +++ b/Documentation/init-hooks.txt @@ -20,9 +20,10 @@ hooks is not guaranteed. 2. Use Case for init hook #include +#include -void hook_test(unsigned int level) +void hook_test(void) { - dbg_printf(DL_EMERG, "hook 1 level: %x\n", level); + dbg_printf(DL_EMERG, "hook test\n"); } -INIT_HOOK(test, hook_test, INIT_LEVEL_PLATFORM - 1) +INIT_HOOK(hook_test, INIT_LEVEL_PLATFORM - 1)