summaryrefslogtreecommitdiff
path: root/test/test_sref_weakref.c
diff options
context:
space:
mode:
authorRichard Braun <rbraun@sceen.net>2019-05-22 21:59:19 +0200
committerRichard Braun <rbraun@sceen.net>2019-05-22 21:59:19 +0200
commit5bc2263b54a89e28dd5092c807a86cd3c078e4d3 (patch)
treead399e98a6d46bad25543a4f8680335f3abb1bf8 /test/test_sref_weakref.c
parentc45d94a590d778c26dc78386c41231fed9df1b14 (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 'test/test_sref_weakref.c')
-rw-r--r--test/test_sref_weakref.c11
1 files changed, 6 insertions, 5 deletions
diff --git a/test/test_sref_weakref.c b/test/test_sref_weakref.c
index d1d44071..6b9f1a4d 100644
--- a/test/test_sref_weakref.c
+++ b/test/test_sref_weakref.c
@@ -1,5 +1,5 @@
/*
- * Copyright (c) 2017 Richard Braun.
+ * Copyright (c) 2017-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
@@ -37,6 +37,7 @@
#include <kern/error.h>
#include <kern/init.h>
+#include <kern/log.h>
#include <kern/macros.h>
#include <kern/sref.h>
#include <kern/syscnt.h>
@@ -74,10 +75,10 @@ test_run(void *arg)
for (j = 0; j < 0x20000000; j++);
printf("run: iterations: %lu\n", i);
- syscnt_info("sref_epoch");
- syscnt_info("sref_dirty_zero");
- syscnt_info("sref_revive");
- syscnt_info("sref_true_zero");
+ syscnt_info("sref_epoch", log_info);
+ syscnt_info("sref_dirty_zero", log_info);
+ syscnt_info("sref_revive", log_info);
+ syscnt_info("sref_true_zero", log_info);
}
}