From efb19cafe623231ee72a0d7da71e90f739697eba Mon Sep 17 00:00:00 2001 From: okir Date: Mon, 13 Oct 2003 14:34:38 +0000 Subject: [PATCH] - slightly enhanced debugging output git-svn-id: https://www.opensc-project.org/svnp/opensc/trunk@1504 c6295689-39f2-0310-b995-f0e70906c6a9 --- src/libopensc/card.c | 10 +++++----- 1 file changed, 5 insertions(+), 5 deletions(-) diff --git a/src/libopensc/card.c b/src/libopensc/card.c index 0a90377f..c036bd8b 100644 --- a/src/libopensc/card.c +++ b/src/libopensc/card.c @@ -476,9 +476,9 @@ int sc_create_file(struct sc_card *card, struct sc_file *file) if (card->ctx->debug >= 1) { const sc_path_t *in_path = &file->path; - sc_debug(card->ctx, "called; type=%d, path=%s\n", + sc_debug(card->ctx, "called; type=%d, path=%s, size=%u\n", in_path->type, - sc_print_path(in_path)); + sc_print_path(in_path), file->size); } if (card->ops->create_file == NULL) SC_FUNC_RETURN(card->ctx, 1, SC_ERROR_NOT_SUPPORTED); @@ -509,7 +509,7 @@ int sc_read_binary(struct sc_card *card, unsigned int idx, assert(card != NULL && card->ops != NULL && buf != NULL); if (card->ctx->debug >= 2) - sc_debug(card->ctx, "sc_read_binary: %d bytes at index %d\n", count, idx); + sc_debug(card->ctx, "called; %d bytes at index %d\n", count, idx); if (count == 0) return 0; if (card->ops->read_binary == NULL) @@ -550,7 +550,7 @@ int sc_write_binary(struct sc_card *card, unsigned int idx, assert(card != NULL && card->ops != NULL && buf != NULL); if (card->ctx->debug >= 2) - sc_debug(card->ctx, "sc_write_binary: %d bytes at index %d\n", count, idx); + sc_debug(card->ctx, "called; %d bytes at index %d\n", count, idx); if (count == 0) return 0; if (card->ops->write_binary == NULL) @@ -591,7 +591,7 @@ int sc_update_binary(struct sc_card *card, unsigned int idx, assert(card != NULL && card->ops != NULL && buf != NULL); if (card->ctx->debug >= 2) - sc_debug(card->ctx, "sc_update_binary: %d bytes at index %d\n", count, idx); + sc_debug(card->ctx, "called; %d bytes at index %d\n", count, idx); if (count == 0) return 0; if (card->ops->update_binary == NULL)