diff options
author | rbuj <[email protected]> | 2020-02-14 07:54:19 +0100 |
---|---|---|
committer | raveit65 <[email protected]> | 2020-03-09 15:26:43 +0100 |
commit | 33e52564affb7fbc50ad68a08c43c9f70e7d1bb4 (patch) | |
tree | 9ac72ec71977ec83ab647b502dbf4bd4a9639a1f /src/egg-array-float.c | |
parent | 9f3d2d0986a6130b1cefc84caae161d75b4f56ba (diff) | |
download | mate-power-manager-33e52564affb7fbc50ad68a08c43c9f70e7d1bb4.tar.bz2 mate-power-manager-33e52564affb7fbc50ad68a08c43c9f70e7d1bb4.tar.xz |
Port from EggDebug to the built-in GLib logging framework
Diffstat (limited to 'src/egg-array-float.c')
-rw-r--r-- | src/egg-array-float.c | 7 |
1 files changed, 3 insertions, 4 deletions
diff --git a/src/egg-array-float.c b/src/egg-array-float.c index 51f8594..711f0ae 100644 --- a/src/egg-array-float.c +++ b/src/egg-array-float.c @@ -29,7 +29,6 @@ #include <glib.h> -#include "egg-debug.h" #include "egg-array-float.h" /** @@ -150,7 +149,7 @@ egg_array_float_compute_gaussian (guint length, gfloat sigma) half_length = (length / 2) + 1; for (i=0; i<half_length; i++) { division = half_length - (i + 1); - egg_debug ("half_length=%i, div=%f, sigma=%f", half_length, division, sigma); + g_debug ("half_length=%i, div=%f, sigma=%f", half_length, division, sigma); g_array_index (array, gfloat, i) = egg_array_float_guassian_value (division, sigma); } @@ -163,7 +162,7 @@ egg_array_float_compute_gaussian (guint length, gfloat sigma) /* make sure we get an accurate gaussian */ value = egg_array_float_sum (array); if (fabs (value - 1.0f) > 0.01f) { - egg_warning ("got wrong sum (%f), perhaps sigma too high for size?", value); + g_warning ("got wrong sum (%f), perhaps sigma too high for size?", value); egg_array_float_free (array); array = NULL; } @@ -207,7 +206,7 @@ egg_array_float_print (EggArrayFloat *array) length = array->len; /* debug out */ for (i=0; i<length; i++) - egg_debug ("[%i]\tval=%f", i, g_array_index (array, gfloat, i)); + g_debug ("[%i]\tval=%f", i, g_array_index (array, gfloat, i)); return TRUE; } |