Blame SOURCES/libimaevm-keydesc-import.patch

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