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/syscnt.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/syscnt.h')
-rw-r--r-- | kern/syscnt.h | 5 |
1 files changed, 3 insertions, 2 deletions
diff --git a/kern/syscnt.h b/kern/syscnt.h index 167be099..ee9c930d 100644 --- a/kern/syscnt.h +++ b/kern/syscnt.h @@ -1,5 +1,5 @@ /* - * Copyright (c) 2014-2017 Richard Braun. + * Copyright (c) 2014-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 @@ -28,6 +28,7 @@ #include <kern/atomic.h> #include <kern/init.h> +#include <kern/log.h> #include <kern/macros.h> #include <kern/spinlock.h> @@ -125,7 +126,7 @@ syscnt_dec(struct syscnt *syscnt) * A prefix can be used to filter the output, where only counters with the * given prefix are displayed. If NULL, all counters are reported. */ -void syscnt_info(const char *prefix); +void syscnt_info(const char *prefix, log_print_fn_t print_fn); /* * This init operation provides : |