summaryrefslogtreecommitdiff
path: root/tools/binman/state.py
diff options
context:
space:
mode:
authorSimon Glass <sjg@chromium.org>2022-02-08 10:59:44 -0700
committerSimon Glass <sjg@chromium.org>2022-02-22 10:05:44 -0700
commit8db1f9958ff7dfc54ef673607d47694dd672dae7 (patch)
tree09d342b28720857e65161e7747ac34b270394d37 /tools/binman/state.py
parent730922205b107acb80e51ee3c9e2e244ba8968b8 (diff)
binman: Correct the error message for a bad hash algorithm
This shows an internal type at present, rather than the algorithm name. Fix it and update the test to catch this. Signed-off-by: Simon Glass <sjg@chromium.org> Reviewed-by: Alper Nebi Yasak <alpernebiyasak@gmail.com>
Diffstat (limited to 'tools/binman/state.py')
-rw-r--r--tools/binman/state.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/tools/binman/state.py b/tools/binman/state.py
index 8cd8a483182..a302e1f00eb 100644
--- a/tools/binman/state.py
+++ b/tools/binman/state.py
@@ -397,7 +397,7 @@ def CheckAddHashProp(node):
if algo.value == 'sha256':
size = 32
else:
- return "Unknown hash algorithm '%s'" % algo
+ return "Unknown hash algorithm '%s'" % algo.value
for n in GetUpdateNodes(hash_node):
n.AddEmptyProp('value', size)