summaryrefslogtreecommitdiff
path: root/src/format
diff options
context:
space:
mode:
authorCyrille Bagard <nocbos@gmail.com>2009-03-03 01:03:15 (GMT)
committerCyrille Bagard <nocbos@gmail.com>2009-03-03 01:03:15 (GMT)
commitbbd04bf5f23e7dca1917247cb92824805b22a2a4 (patch)
tree548392c1c249ae5cde936f982783f192416e080c /src/format
parentc2d9948e1e67b48d1a6c8a711024d8dd3f6ac507 (diff)
Created a system messages panel.
git-svn-id: svn://svn.gna.org/svn/chrysalide/trunk@50 abbe820e-26c8-41b2-8c08-b7b2b41f8b0a
Diffstat (limited to 'src/format')
-rw-r--r--src/format/Makefile.am2
-rw-r--r--src/format/exe_format.c6
-rwxr-xr-xsrc/format/java/Makefile.am2
-rw-r--r--src/format/java/attribute.c11
4 files changed, 15 insertions, 6 deletions
diff --git a/src/format/Makefile.am b/src/format/Makefile.am
index 67b3737..7c2c524 100644
--- a/src/format/Makefile.am
+++ b/src/format/Makefile.am
@@ -10,7 +10,7 @@ libformat_a_SOURCES = \
libformat_a_CFLAGS = $(AM_CFLAGS)
-INCLUDES =
+INCLUDES = $(LIBGTK_CFLAGS)
AM_CPPFLAGS =
diff --git a/src/format/exe_format.c b/src/format/exe_format.c
index 1077cfe..8a03243 100644
--- a/src/format/exe_format.c
+++ b/src/format/exe_format.c
@@ -29,9 +29,13 @@
#include "exe_format-int.h"
+#include "../panel/log.h"
+#define _(str) str
+
+
/* ------------------------ DETECTION DE FORMATS EXECUTABLES ------------------------ */
@@ -239,7 +243,7 @@ exe_format *load_new_exe_format(const uint8_t *content, off_t length)
for (i = 0; i < exe_formats_count && result == NULL; i++)
if (exe_formats[i].match(content, length))
{
- printf("<LOGINFO> %s is matching...\n", exe_formats[i].name);
+ log_variadic_message(LMT_INFO, _("%s is matching..."), exe_formats[i].name);
result = exe_formats[i].load(content, length);
diff --git a/src/format/java/Makefile.am b/src/format/java/Makefile.am
index e3a88b2..2cb2326 100755
--- a/src/format/java/Makefile.am
+++ b/src/format/java/Makefile.am
@@ -12,7 +12,7 @@ libformatjava_a_SOURCES = \
libformatjava_a_CFLAGS = $(AM_CFLAGS)
-INCLUDES =
+INCLUDES = $(LIBGTK_CFLAGS)
AM_CPPFLAGS =
diff --git a/src/format/java/attribute.c b/src/format/java/attribute.c
index f5947dd..0cfed92 100644
--- a/src/format/java/attribute.c
+++ b/src/format/java/attribute.c
@@ -31,6 +31,11 @@
#include "java-int.h"
#include "pool.h"
#include "../../common/endianness.h"
+#include "../../panel/log.h"
+
+
+
+#define _(str) str
@@ -231,12 +236,12 @@ bool load_java_attribute(java_format *format, java_attribute *attrib, off_t *pos
else if (result)
{
result = false;
- printf("<OIDAIMPL> Nom d'attribut non supporté : '%s'\n", name);
+ log_variadic_message(LMT_BAD_BINARY, _("Attribute name not supported: '%s'"), name);
}
if (result && attrib_length != (*pos - saved_pos))
- printf("<BADBIN> indication de la taille de l'attribut '%s' non vérifiée : %d vs %d\n",
- name, attrib_length, *pos - saved_pos);
+ log_variadic_message(LMT_BAD_BINARY, _("Size indication of the attribute '%s' not verified: %d vs %d"),
+ name, attrib_length, *pos - saved_pos);
}