summaryrefslogtreecommitdiff
path: root/src/egg-precision.c
diff options
context:
space:
mode:
authorrbuj <[email protected]>2020-02-14 07:54:19 +0100
committerraveit65 <[email protected]>2020-03-09 15:26:43 +0100
commit33e52564affb7fbc50ad68a08c43c9f70e7d1bb4 (patch)
tree9ac72ec71977ec83ab647b502dbf4bd4a9639a1f /src/egg-precision.c
parent9f3d2d0986a6130b1cefc84caae161d75b4f56ba (diff)
downloadmate-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.c5
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;