-static void emv_tag_dump_fci(const struct tlv *tlv, const struct emv_tag *tag, FILE *f) {
- const unsigned char *buf = tlv->value;
- size_t left = tlv->len;
-
- while (left) {
- struct tlv doltlv;
- const struct emv_tag *doltag;
-
- if (!tlv_parse_tl(&buf, &left, &doltlv)) {
- fprintf(f, "Invalid Tag-Len\n");
- continue;
- }
-
- doltag = emv_get_tag(&doltlv);
-
- fprintf(f, "\t--%2hx[%02zx]'%s'\n", doltlv.tag, doltlv.len, doltag->name);
- }
-}
-
-static void emv_tag_dump_string(const struct tlv *tlv, const struct emv_tag *tag, FILE *f)
+static void emv_tag_dump_string(const struct tlv *tlv, const struct emv_tag *tag, FILE *f, int level)