Skip to content

Commit

Permalink
Merge pull request #122 from grapherd/feature/fixed_documentation_ini…
Browse files Browse the repository at this point in the history
…t_hooks

Fixed init-hooks Documentations
  • Loading branch information
jserv authored Oct 2, 2016
2 parents 123ddf5 + 625f9be commit 5834887
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 5834887

Please sign in to comment.