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-precision.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-precision.c')
-rw-r--r-- | src/egg-precision.c | 5 |
1 files changed, 2 insertions, 3 deletions
diff --git a/src/egg-precision.c b/src/egg-precision.c index 02f0cce..bc4e07b 100644 --- a/src/egg-precision.c +++ b/src/egg-precision.c @@ -24,7 +24,6 @@ #include <stdlib.h> #include <glib.h> -#include "egg-debug.h" #include "egg-precision.h" /** @@ -45,7 +44,7 @@ egg_precision_round_up (gfloat value, gint smallest) if (fabs (value) < 0.01) return 0; if (smallest == 0) { - egg_warning ("divisor zero"); + g_warning ("divisor zero"); return 0; } division = (gfloat) value / (gfloat) smallest; @@ -72,7 +71,7 @@ egg_precision_round_down (gfloat value, gint smallest) if (fabs (value) < 0.01) return 0; if (smallest == 0) { - egg_warning ("divisor zero"); + g_warning ("divisor zero"); return 0; } division = (gfloat) value / (gfloat) smallest; |