]> git.zerfleddert.de Git - proxmark3-svn/blobdiff - client/emv/emvcore.c
add: proper indentation when printing TLV objects
[proxmark3-svn] / client / emv / emvcore.c
index 9264b11068c4a9b00f73baa2954a0d62c78b5a70..8dc9325964142dedc24d6633c4838e7db0bfba61 100644 (file)
@@ -10,9 +10,9 @@
 
 #include "emvcore.h"
 
-static bool print_cb(void *data, const struct tlv *tlv) {
-       emv_tag_dump(tlv, stdout);
-       dump_buffer(tlv->value, tlv->len, stdout);
+static bool print_cb(void *data, const struct tlv *tlv, int level) {
+       emv_tag_dump(tlv, stdout, level);
+       dump_buffer(tlv->value, tlv->len, stdout, level);
 
        return true;
 }
@@ -23,7 +23,7 @@ void TLVPrintFromBuffer(uint8_t *data, int datalen) {
        if (t) {
                PrintAndLog("TLV decoded:");
                
-               tlvdb_visit(t, print_cb, NULL);
+               tlvdb_visit(t, print_cb, NULL, 0);
                tlvdb_free(t);
        } else {
                PrintAndLog("TLV ERROR: Can't parse response as TLV tree.");
Impressum, Datenschutz