diff options
author | Richard Braun <rbraun@sceen.net> | 2019-05-22 21:59:19 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2019-05-22 21:59:19 +0200 |
commit | 5bc2263b54a89e28dd5092c807a86cd3c078e4d3 (patch) | |
tree | ad399e98a6d46bad25543a4f8680335f3abb1bf8 /kern/printf.h | |
parent | c45d94a590d778c26dc78386c41231fed9df1b14 (diff) |
Add a log print function type for information reporting
This type allows the use of either printf-based or log-based functions
when reporting information.
Diffstat (limited to 'kern/printf.h')
-rw-r--r-- | kern/printf.h | 8 |
1 files changed, 7 insertions, 1 deletions
diff --git a/kern/printf.h b/kern/printf.h index eba5562b..e5e5f1b5 100644 --- a/kern/printf.h +++ b/kern/printf.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2010 Richard Braun. + * Copyright (c) 2010-2019 Richard Braun. * * This program is free software: you can redistribute it and/or modify * it under the terms of the GNU General Public License as published by @@ -41,6 +41,12 @@ int printf(const char *format, ...) int vprintf(const char *format, va_list ap) __attribute__((format(printf, 1, 0))); +int printf_ln(const char *format, ...) + __attribute__((format(printf, 1, 2))); + +int vprintf_ln(const char *format, va_list ap) + __attribute__((format(printf, 1, 0))); + /* * This init operation provides : * - printf is usable |