From 739e47f9ec7fb10a8ccd68a35379d11388703366 Mon Sep 17 00:00:00 2001 From: Nikos Ntarmos Date: Mon, 20 Jul 2009 12:45:51 +0300 Subject: [PATCH] Teach freebsd.c to use the new CRIT_ERR format Signed-off-by: Nikos Ntarmos Signed-off-by: Brenden Matthews --- src/freebsd.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/freebsd.c b/src/freebsd.c index e1c77017..6075138d 100644 --- a/src/freebsd.c +++ b/src/freebsd.c @@ -306,7 +306,7 @@ void get_cpu_count(void) info.cpu_usage = malloc(info.cpu_count * sizeof(float)); if (info.cpu_usage == NULL) { - CRIT_ERR("malloc"); + CRIT_ERR(NULL, NULL, "malloc"); } } @@ -741,7 +741,7 @@ proc_find_top(struct process **cpu, struct process **mem) /* we get total pages count again to be sure it is up to date */ if (GETSYSCTL("vm.stats.vm.v_page_count", total_pages) != 0) { - CRIT_ERR("Cannot read sysctl \"vm.stats.vm.v_page_count\""); + CRIT_ERR(NULL, NULL, "Cannot read sysctl \"vm.stats.vm.v_page_count\""); } p = kvm_getprocs(kd, KERN_PROC_PROC, 0, &n_processes);