Blame SOURCES/0003-utils-remove-debug-log-message-from-str_padded_copy.patch
|
|
ad10f4 |
From ad882c439cc6580837196bab5fd82599685d84e0 Mon Sep 17 00:00:00 2001
|
|
|
ad10f4 |
From: Nicolas Iooss <nicolas.iooss@ledger.fr>
|
|
|
ad10f4 |
Date: Thu, 20 May 2021 16:03:20 +0200
|
|
|
ad10f4 |
Subject: [PATCH 3/6] utils: remove debug log message from str_padded_copy
|
|
|
ad10f4 |
|
|
|
ad10f4 |
Commit 9af101b54035 ("utils: fix stringop-overread in str_padded_copy")
|
|
|
ad10f4 |
introduced a log message which is displayed every time the function
|
|
|
ad10f4 |
`str_padded_copy` is used. This looks like a debug message used while
|
|
|
ad10f4 |
working on the patch. Now that it is applied, remove the log message.
|
|
|
ad10f4 |
|
|
|
ad10f4 |
Signed-off-by: Nicolas Iooss <nicolas.iooss@ledger.fr>
|
|
|
ad10f4 |
---
|
|
|
ad10f4 |
src/lib/utils.h | 1 -
|
|
|
ad10f4 |
1 file changed, 1 deletion(-)
|
|
|
ad10f4 |
|
|
|
ad10f4 |
diff --git a/src/lib/utils.h b/src/lib/utils.h
|
|
|
ad10f4 |
index cf35746..983da06 100644
|
|
|
ad10f4 |
--- a/src/lib/utils.h
|
|
|
ad10f4 |
+++ b/src/lib/utils.h
|
|
|
ad10f4 |
@@ -43,7 +43,6 @@ int str_to_ul(const char *val, size_t *res);
|
|
|
ad10f4 |
static inline void _str_padded_copy(CK_UTF8CHAR_PTR dst, size_t dst_len, const CK_UTF8CHAR *src, size_t src_len) {
|
|
|
ad10f4 |
memset(dst, ' ', dst_len);
|
|
|
ad10f4 |
memcpy(dst, src, src_len);
|
|
|
ad10f4 |
- LOGE("BILL(%zu): %.*s\n", dst_len, dst_len, dst);
|
|
|
ad10f4 |
}
|
|
|
ad10f4 |
|
|
|
ad10f4 |
twist utils_hash_pass(const twist pin, const twist salt);
|
|
|
ad10f4 |
--
|
|
|
ad10f4 |
2.38.1
|
|
|
ad10f4 |
|