Skip to contentSkip to conversation

lib: fix newline in debug message

PATCH In review Maxim Moskalets 2 participants 2 messages Mar 29, 2024 – Mar 30, 2024

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 lib: fix newline in debug message

---
 lib/rsa/rsa-verify.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)
lib/rsa/rsa-verify.c +1 -1
index 1007b6979a..e1093ce1a4 100644
@@ -342,7 +342,7 @@ static int rsa_verify_key(struct image_sign_info *info,
 		return -EINVAL;
 	}
 
-	debug("Checksum algorithm: %s", checksum->name);
+	debug("Checksum algorithm: %s\n", checksum->name);
 
 	/* Sanity check for stack size */
 	if (sig_len > RSA_MAX_SIG_BITS / 8) {
Signature · 1 line
2.39.2
Reviewed-by on v1 1/1
#1 lore raw

Thank you for catching this.

%s/fix/add missing/ would make the subject clearer.

We prefer to have a commit message in all patches, e.g.

Add missing line break to improve readability.

Quoted 10 lines · Maxim Moskalets
---
  lib/rsa/rsa-verify.c | 2 +-
  1 file changed, 1 insertion(+), 1 deletion(-)
lib/rsa/rsa-verify.c +0 -0
index 1007b6979a..e1093ce1a4 100644

lib/rsa/rsa-verify.c static int rsa_verify_key(struct image_sign_info *info, · line 348

Quoted 8 lines
lib/rsa/rsa-verify.c +1 -1
@@ -342,7 +342,7 @@ static int rsa_verify_key(struct image_sign_info *info,
  		return -EINVAL;
  	}
 
-	debug("Checksum algorithm: %s", checksum->name);
+	debug("Checksum algorithm: %s\n", checksum->name);
 
  	/* Sanity check for stack size */
  	if (sig_len > RSA_MAX_SIG_BITS / 8) {