[gimp] app: turn magic matching debug output into GIMP_LOG()
- From: Michael Natterer <mitch src gnome org>
- To: commits-list gnome org
- Cc:
- Subject: [gimp] app: turn magic matching debug output into GIMP_LOG()
- Date: Fri, 28 Jul 2017 20:36:13 +0000 (UTC)
commit 7a10afca3959109398617f2644cd68cf373cb2f6
Author: Michael Natterer <mitch gimp org>
Date: Fri Jul 28 22:35:13 2017 +0200
app: turn magic matching debug output into GIMP_LOG()
app/gimp-log.h | 3 ++-
app/plug-in/gimppluginmanager-file-procedure.c | 15 ++++++++++-----
2 files changed, 12 insertions(+), 6 deletions(-)
---
diff --git a/app/gimp-log.h b/app/gimp-log.h
index 4d13ad6..4194acf 100644
--- a/app/gimp-log.h
+++ b/app/gimp-log.h
@@ -41,7 +41,8 @@ typedef enum
GIMP_LOG_RECTANGLE_TOOL = 1 << 17,
GIMP_LOG_BRUSH_CACHE = 1 << 18,
GIMP_LOG_PROJECTION = 1 << 19,
- GIMP_LOG_XCF = 1 << 20
+ GIMP_LOG_XCF = 1 << 20,
+ GIMP_LOG_MAGIC_MATCH = 1 << 21
} GimpLogFlags;
diff --git a/app/plug-in/gimppluginmanager-file-procedure.c b/app/plug-in/gimppluginmanager-file-procedure.c
index b235d86..845b939 100644
--- a/app/plug-in/gimppluginmanager-file-procedure.c
+++ b/app/plug-in/gimppluginmanager-file-procedure.c
@@ -35,6 +35,8 @@
#include "gimppluginmanager-file-procedure.h"
#include "gimppluginprocedure.h"
+#include "gimp-log.h"
+
#include "gimp-intl.h"
@@ -159,9 +161,10 @@ file_procedure_find (GSList *procs,
}
else if (match_val != FILE_MATCH_NONE)
{
- g_printerr ("magic match %d on %s\n",
- match_val,
- gimp_object_get_name (file_proc));
+ GIMP_LOG (MAGIC_MATCH,
+ "magic match %d on %s\n",
+ match_val,
+ gimp_object_get_name (file_proc));
if (match_val > best_match_val)
{
@@ -178,8 +181,10 @@ file_procedure_find (GSList *procs,
if (best_file_proc)
{
- g_printerr ("best magic match on %s\n",
- gimp_object_get_name (best_file_proc));
+ GIMP_LOG (MAGIC_MATCH,
+ "best magic match on %s\n",
+ gimp_object_get_name (best_file_proc));
+
return best_file_proc;
}
}
[
Date Prev][
Date Next] [
Thread Prev][
Thread Next]
[
Thread Index]
[
Date Index]
[
Author Index]