diff options
author | Richard Braun <rbraun@sceen.net> | 2017-06-10 17:24:04 +0200 |
---|---|---|
committer | Richard Braun <rbraun@sceen.net> | 2017-06-10 17:38:47 +0200 |
commit | b719ffa6583447ff933fbcf21274b376133cb992 (patch) | |
tree | 4bd7aaf9767dea632a1338041f0c6fdd0624f867 /kern/sref.c | |
parent | 562904ff8e2f5e40e4be76dc7c4d919a4bda05f8 (diff) |
Use log functions where appropriate
Diffstat (limited to 'kern/sref.c')
-rw-r--r-- | kern/sref.c | 4 |
1 files changed, 2 insertions, 2 deletions
diff --git a/kern/sref.c b/kern/sref.c index 9c2d7761..5aad8dab 100644 --- a/kern/sref.c +++ b/kern/sref.c @@ -44,12 +44,12 @@ #include <assert.h> #include <stdbool.h> #include <stddef.h> -#include <stdio.h> #include <kern/condition.h> #include <kern/cpumap.h> #include <kern/error.h> #include <kern/init.h> +#include <kern/log.h> #include <kern/macros.h> #include <kern/mutex.h> #include <kern/panic.h> @@ -503,7 +503,7 @@ sref_end_epoch(struct sref_queue *queue) if (!sref_data.no_warning && (sref_review_queue_size() >= SREF_NR_COUNTERS_WARN)) { sref_data.no_warning = 1; - printf("sref: warning: large number of counters in review queue\n"); + log_warning("sref: large number of counters in review queue"); } if (sref_data.nr_registered_cpus == 1) { |