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