diff options
author | Cyrille Bagard <nocbos@gmail.com> | 2023-10-10 07:03:59 (GMT) |
---|---|---|
committer | Cyrille Bagard <nocbos@gmail.com> | 2023-10-10 07:03:59 (GMT) |
commit | a477a1593bbb534c9815d215909b75c86a6f91b1 (patch) | |
tree | 933ebe334090b3f5df04c2639b5860f1a14f855f /plugins/kaitai/parsers | |
parent | d122453f3ce11f45a63fb870e889f4ce91b34527 (diff) |
Clean output.
Diffstat (limited to 'plugins/kaitai/parsers')
-rw-r--r-- | plugins/kaitai/parsers/attribute.c | 16 | ||||
-rw-r--r-- | plugins/kaitai/parsers/struct.c | 2 |
2 files changed, 1 insertions, 17 deletions
diff --git a/plugins/kaitai/parsers/attribute.c b/plugins/kaitai/parsers/attribute.c index d0505d8..6050bb1 100644 --- a/plugins/kaitai/parsers/attribute.c +++ b/plugins/kaitai/parsers/attribute.c @@ -1583,10 +1583,6 @@ static bool _g_kaitai_attribute_parse_content(GKaitaiAttribute *attrib, kaitai_s result = false; *record = NULL; - printf("\n"); - printf("------------parsing %s -( payload: %x - ut=%d )-----------\n", - attrib->raw_id, attrib->payload, attrib->payload & KAP_USER_TYPE); - /* Lecture soumise à condition ? */ if (attrib->condition != NULL) @@ -1596,8 +1592,6 @@ static bool _g_kaitai_attribute_parse_content(GKaitaiAttribute *attrib, kaitai_s strlen(attrib->condition), &authorized); - printf("condition '%s': res=%d auth=%d\n", attrib->condition, result, authorized.status); - if (!result || !authorized.status) goto exit; @@ -1664,10 +1658,7 @@ static bool _g_kaitai_attribute_parse_content(GKaitaiAttribute *attrib, kaitai_s /* Etablissement d'une zone de correspondance */ if (attrib->payload == KAP_UNINITIALIZED) - { - printf("attrib: '%s'\n", attrib->raw_id); - //assert(false); - } + assert(false); else if (attrib->payload & KAP_SIZED_EOS) { @@ -1763,9 +1754,6 @@ static bool _g_kaitai_attribute_parse_content(GKaitaiAttribute *attrib, kaitai_s { user_type = find_sub_type(locals, attrib->named_type); - printf(">>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>>> find '%s' => %p\n", - attrib->named_type, user_type); - if (user_type != NULL) { result = g_kaitai_parser_parse_content(G_KAITAI_PARSER(user_type), @@ -1867,8 +1855,6 @@ static bool _g_kaitai_attribute_parse_content(GKaitaiAttribute *attrib, kaitai_s exit: - printf(" ===[[ %s / %p ]]=== >> %d\n", attrib->raw_id, attrib, result); - return result; } diff --git a/plugins/kaitai/parsers/struct.c b/plugins/kaitai/parsers/struct.c index 62dc25a..d447cf3 100644 --- a/plugins/kaitai/parsers/struct.c +++ b/plugins/kaitai/parsers/struct.c @@ -722,8 +722,6 @@ GMatchRecord *g_kaitai_structure_parse(GKaitaiStruct *kstruct, GBinContent *cont g_kaitai_parser_parse_content(G_KAITAI_PARSER(kstruct), &locals, content, &epos, &result); - printf("FINAL STATUS :: %d\n", result != NULL); - return result; } |