From: Csókás Bence Date: Thu, 14 Dec 2023 16:54:17 +0000 (+0100) Subject: lib: rsa: Print detailed error info in rsa_engine_init() on engine resolution failure X-Git-Url: http://git.dujemihanovic.xyz/?a=commitdiff_plain;h=fa78301a986f4c7daf31bac2ba0e9216e76acd31;p=u-boot.git lib: rsa: Print detailed error info in rsa_engine_init() on engine resolution failure Signed-off-by: Csókás Bence Reviewed-by: Tom Rini --- diff --git a/lib/rsa/rsa-sign.c b/lib/rsa/rsa-sign.c index 7ae163f264..858ad92a6f 100644 --- a/lib/rsa/rsa-sign.c +++ b/lib/rsa/rsa-sign.c @@ -317,7 +317,8 @@ static int rsa_engine_init(const char *engine_id, ENGINE **pe) e = ENGINE_by_id(engine_id); if (!e) { - fprintf(stderr, "Engine isn't available\n"); + fprintf(stderr, "Engine '%s' isn't available\n", engine_id); + ERR_print_errors_fp(stderr); return -1; }