Blame SOURCES/libimaevm-keydesc-import.patch

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