diff options
-rw-r--r-- | hist.c | 5 | ||||
-rw-r--r-- | itov.c | 5 | ||||
-rw-r--r-- | lhist.c | 5 | ||||
-rw-r--r-- | lhisti.c | 5 |
4 files changed, 12 insertions, 8 deletions
@@ -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;
}
@@ -42,11 +42,12 @@ static void itov_set(t_itov *x, t_float lo, t_float hi, t_float nbins) if (nbins<1)
{
nbins=1;
- post("itov: number of bins is minimum 1...");
+ logpost(x, 2, "[itov] minimum number of bins is 1");
}
if (hi<=lo)
{
- post("itov: higher bound must be higher than lower bound...");
+ logpost(x, 2, "[itov] higher bound (%g) must be higher than lower bound (%g)",
+ hi, lo);
hi=lo+1.0f;
}
@@ -119,11 +119,12 @@ static void lhist_set(t_lhist *x, t_float lo, t_float hi, t_float nbins) if (nbins<1)
{
nbins=1;
- post("lhist: number of bins is minimum 1...");
+ logpost(x, 2, "[lhist] minimum number of bins is 1");
}
if (hi<=lo)
{
- post("lhist: higher bound must be higher than lower bound...");
+ logpost(x, 2, "[lhist] higher bound (%g) must be greater than lower bound (%g)",
+ hi, lo);
hi=lo+1.0f;
}
freebytes(x->m_lhist, x->m_nbins);
@@ -119,11 +119,12 @@ static void lhisti_set(t_lhisti *x, t_float lo, t_float hi, t_float nbins) if (nbins<1)
{
nbins=1;
- post("lhisti: number of bins is minimum 1...");
+ logpost(x, 2, "[lhisti] number of bins is minimum 1");
}
if (hi<=lo)
{
- post("lhisti: higher bound must be higher than lower bound...");
+ post("[lhisti] higher bound (%g) must be greater than lower bound (%g)",
+ hi, lo);
hi=lo+1.0f;
}
freebytes(x->m_lhisti, x->m_nbins);
|