From 21734506648731ca41fcb303efd11d96cc7b2d39 Mon Sep 17 00:00:00 2001 From: Viktor Tarasov Date: Sun, 6 Mar 2016 19:28:59 +0100 Subject: [PATCH] log: print file-id in 'create-file' --- src/libopensc/card.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/libopensc/card.c b/src/libopensc/card.c index 3b76a0c1..3c5cfbe7 100644 --- a/src/libopensc/card.c +++ b/src/libopensc/card.c @@ -485,7 +485,7 @@ int sc_create_file(sc_card_t *card, sc_file_t *file) if (r != SC_SUCCESS) pbuf[0] = '\0'; - sc_log(card->ctx, "called; type=%d, path=%s, size=%u", in_path->type, pbuf, file->size); + sc_log(card->ctx, "called; type=%d, path=%s, id=%04i, size=%u", in_path->type, pbuf, file->id, file->size); /* ISO 7816-4: "Number of data bytes in the file, including structural information if any" * can not be bigger than two bytes */ if (file->size > 0xFFFF)