From 31e6cc7e7ecdc6aec29c99c7feedfb19624f3b59 Mon Sep 17 00:00:00 2001
From: =?UTF-8?q?Jonas=20H=C3=B6glund?= <jonas.hoglund@embeddednation.com>
Date: Wed, 7 Apr 2021 09:20:01 +0200
Subject: [PATCH] Don't print the algo with the hash.

---
 fdtextract.c | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)

diff --git a/fdtextract.c b/fdtextract.c
index 6100a90..516e3c2 100644
--- a/fdtextract.c
+++ b/fdtextract.c
@@ -57,7 +57,7 @@ static const char * const usage_opts_help[] = {
     "List images embedded in FIT",
     "Extract image from FIT",
     "Output image name",
-	"Hash of image",
+	"SHA256 hash of image",
 	"Get attribute of FIT",
     USAGE_COMMON_OPTS_HELP
 };
@@ -174,7 +174,6 @@ static int get_hash(char *buf, char *name)
 
 	/* Print the hash. */
 	val = (uint8_t *)fdt_getprop(buf, noffset, "value", NULL);
-	printf("%s ", algo);
 	for (i=0; i<SHA_256_LEN; i++)
 		printf("%x", val[i]);
 	printf("\n");
-- 
GitLab