Blame SOURCES/libimaevm-keydesc-import.patch

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