summaryrefslogtreecommitdiff
path: root/src/format/java
diff options
context:
space:
mode:
Diffstat (limited to 'src/format/java')
-rwxr-xr-xsrc/format/java/Makefile.am2
-rw-r--r--src/format/java/attribute.c11
2 files changed, 9 insertions, 4 deletions
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);
}