diff options
author | Jeremy Kerr <jk@ozlabs.org> | 2008-01-08 15:54:10 +1100 |
---|---|---|
committer | Jeremy Kerr <jk@ozlabs.org> | 2008-01-08 15:54:10 +1100 |
commit | ba15ae87098f62df9f7c81a71c3882d05e8c8d80 (patch) | |
tree | a7740a15965ecea7b187de737756eb99a1898581 /petitboot.h | |
parent | 72fe1a737385d8f52c33fe237214c4e9cb3c7c93 (diff) | |
download | talos-petitboot-ba15ae87098f62df9f7c81a71c3882d05e8c8d80.tar.gz talos-petitboot-ba15ae87098f62df9f7c81a71c3882d05e8c8d80.zip |
Print ststus message when booting
Add a couple of calls to pboot_message() to give some feedback when
an option (or gameos) is selected.
Also, convert pboot_message to varargs, to allow more flexible message
formats.
Signed-off-by: Jeremy Kerr <jk@ozlabs.org>
Diffstat (limited to 'petitboot.h')
-rw-r--r-- | petitboot.h | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/petitboot.h b/petitboot.h index a77bfef..893be04 100644 --- a/petitboot.h +++ b/petitboot.h @@ -1,5 +1,6 @@ #include <libtwin/twin.h> +#include <stdarg.h> #define LOG(fmt...) printf(fmt) @@ -14,4 +15,4 @@ int pboot_remove_device(const char *dev_id); int pboot_start_device_discovery(int udev_trigger); void pboot_exec_option(void *data); -void pboot_message(const char *message); +void pboot_message(const char *fmt, ...); |