diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2018-11-27 23:15:45 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2018-11-27 23:15:45 (GMT) |
commit | c81d2f989a14ed083bd99eff91791eca29bf3799 (patch) | |
tree | 77af6a977926dabde42d2506556da483fe876116 /src/analysis | |
parent | 9cc97d4fe2cd735d60a9ee2bb2f016a252b3a4d4 (diff) |
Logged loaded formats.
Diffstat (limited to 'src/analysis')
-rw-r--r-- | src/analysis/binary.c | 9 |
1 files changed, 8 insertions, 1 deletions
diff --git a/src/analysis/binary.c b/src/analysis/binary.c index 8946311..8fc34f2 100644 --- a/src/analysis/binary.c +++ b/src/analysis/binary.c @@ -1430,8 +1430,8 @@ static bool g_loaded_binary_analyze(GLoadedBinary *binary, wgroup_id_t gid, GtkS { bool result; /* Bilan à retourner */ GBinFormat *format; /* Format lié au binaire */ - const char *arch; /* Architecture d'exécution */ const char *desc; /* Description humaine associée*/ + const char *arch; /* Architecture d'exécution */ bool has_virt; /* Présence de virtuel ? */ GProcContext *context; /* Contexte de suivi dédié */ GWidthTracker *tracker; /* Gestionnaire de largeur */ @@ -1440,6 +1440,13 @@ static bool g_loaded_binary_analyze(GLoadedBinary *binary, wgroup_id_t gid, GtkS format = G_BIN_FORMAT(binary->format); + desc = g_binary_format_get_description(format); + + if (desc == NULL) + log_simple_message(LMT_WARNING, _("Unnamed format")); + else + log_variadic_message(LMT_INFO, _("Selected format: %s"), desc); + result = g_binary_format_analyze(format, gid, status); if (!result) goto glba_exit; |