Blame SOURCES/libimaevm-keydesc-import.patch

ba8462
diff --git a/src/libimaevm.c b/src/libimaevm.c
ba8462
index 6fa0ed4..b6f9b9f 100644
ba8462
--- a/src/libimaevm.c
ba8462
+++ b/src/libimaevm.c
ba8462
@@ -672,12 +672,11 @@ void calc_keyid_v1(uint8_t *keyid, char *str, const unsigned char *pkey, int len
ba8462
 	memcpy(keyid, sha1 + 12, 8);
ba8462
 	log_debug("keyid: ");
ba8462
 	log_debug_dump(keyid, 8);
ba8462
+	id = __be64_to_cpup((__be64 *) keyid);
ba8462
+	sprintf(str, "%llX", (unsigned long long)id);
ba8462
 
ba8462
-	if (params.verbose > LOG_INFO) {
ba8462
-		id = __be64_to_cpup((__be64 *) keyid);
ba8462
-		sprintf(str, "%llX", (unsigned long long)id);
ba8462
+	if (params.verbose > LOG_INFO)
ba8462
 		log_info("keyid-v1: %s\n", str);
ba8462
-	}
ba8462
 }
ba8462
 
ba8462
 void calc_keyid_v2(uint32_t *keyid, char *str, RSA *key)
ba8462
@@ -694,11 +693,10 @@ void calc_keyid_v2(uint32_t *keyid, char *str, RSA *key)
ba8462
 	memcpy(keyid, sha1 + 16, 4);
ba8462
 	log_debug("keyid: ");
ba8462
 	log_debug_dump(keyid, 4);
ba8462
+	sprintf(str, "%x", __be32_to_cpup(keyid));
ba8462
 
ba8462
-	if (params.verbose > LOG_INFO) {
ba8462
-		sprintf(str, "%x", __be32_to_cpup(keyid));
ba8462
+	if (params.verbose > LOG_INFO)
ba8462
 		log_info("keyid: %s\n", str);
ba8462
-	}
ba8462
 
ba8462
 	free(pkey);
ba8462
 }
ba8462
-- 
ba8462
2.19.1
ba8462