Skip to content

Commit

Permalink
Fixed init-hooks Documentations
Browse files Browse the repository at this point in the history
Since commit: 2e9f2b3 decide to simplify init hook usage,
thus init-hooks.txt documentation need to change it.
  • Loading branch information
Louie Lu committed Oct 2, 2016
1 parent a97d160 commit 625f9be
Showing 1 changed file with 4 additions and 3 deletions.
7 changes: 4 additions & 3 deletions Documentation/init-hooks.txt
Original file line number Diff line number Diff line change
Expand Up @@ -20,9 +20,10 @@ hooks is not guaranteed.
2. Use Case for init hook

#include <init_hook.h>
#include <debug.h>

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)

0 comments on commit 625f9be

Please sign in to comment.