diff options
author | Stef Walter <stef@memberwebs.com> | 2010-01-06 14:10:21 +0000 |
---|---|---|
committer | Stef Walter <stef@memberwebs.com> | 2010-01-06 14:10:21 +0000 |
commit | 19e2998a5c0d5144f3dc87db8969d6d4c957a2c1 (patch) | |
tree | ba720b4074eece6bfe7c7f5fc8252af7904aecd1 | |
parent | 2ddfecbc5164ca5189dbab8c79ae84e96f3c3ac2 (diff) |
Commit some old changes.
-rw-r--r-- | module/cryptoki-log.c | 8 |
1 files changed, 4 insertions, 4 deletions
diff --git a/module/cryptoki-log.c b/module/cryptoki-log.c index f6555f5..c03a016 100644 --- a/module/cryptoki-log.c +++ b/module/cryptoki-log.c @@ -141,7 +141,7 @@ cklog(const char* msg, ...) #ifdef _WIN32 _vsnprintf(the_line_buf + l, LINE_BUF_LEN - l, msg, va); #else - snprintf(the_line_buf + l, LINE_BUF_LEN - l, msg, va); + vsnprintf(the_line_buf + l, LINE_BUF_LEN - l, msg, va); #endif the_line_buf[LINE_BUF_LEN - 1] = 0; @@ -298,7 +298,7 @@ log_byte_array (const char *pref, const char *name, CK_BYTE_PTR arr, } else if (arr == NULL) { cklog ("(%d) NOTHING\n", *num); } else { - cklog ("(%d) "); + cklog ("(%d) ", *num); log_some_bytes (arr, *num); cklog ("\n"); } @@ -377,7 +377,7 @@ log_mechanism (const char *pref, const char *name, CK_MECHANISM_PTR mech, CK_RV log_CKM (mech->mechanism); cklog (", pParameter: (%d) ", mech->ulParameterLen); log_some_bytes (mech->pParameter, mech->ulParameterLen); - cklog ("\n"); + cklog (" }\n"); } static void @@ -415,7 +415,7 @@ log_mechanism_type_array (const char *pref, const char *name, CK_MECHANISM_TYPE_ cklog (", "); log_CKM(arr[i]); } - cklog ("]\n"); + cklog (" ]\n"); } } |