From e1775060ebae110fd14dddee80f75e809d75fdac Mon Sep 17 00:00:00 2001 From: Hans-Christoph Steiner Date: Sat, 29 Oct 2011 18:59:56 +0000 Subject: updated to use logpost for bounds errors svn path=/trunk/externals/smlib/; revision=15681 --- hist.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) (limited to 'hist.c') diff --git a/hist.c b/hist.c index ba492f2..32bf5b7 100644 --- a/hist.c +++ b/hist.c @@ -100,11 +100,12 @@ static void hist_set(t_hist *x, t_float lo, t_float hi, t_float nbins) if (nbins<1) { nbins=1; - post("hist: number of bins is minimum 1..."); + logpost(x, 2, "[hist] minimum number of bins is 1"); } if (hi<=lo) { - post("hist: higher bound must be higher than lower bound..."); + logpost(x, 2, "[hist] higher bound (%g) must be greater than lower bound (%g)", + hi, lo); hi=lo+1.0f; } -- cgit v1.2.1