tpm: Report tpm errors on the command line
authorSimon Glass <sjg@chromium.org>
Sun, 23 Aug 2015 00:31:34 +0000 (18:31 -0600)
committerLothar Waßmann <LW@KARO-electronics.de>
Thu, 10 Sep 2015 10:19:17 +0000 (12:19 +0200)
commit7df972935cc7595f41b3eed3878131ca78e1f23b
treeafafa2c60df72951fa588339e821e8ac1ad678a4
parentdd96f05f6f02676eff9b4d0d3eed5db7c228e14a
tpm: Report tpm errors on the command line

When a 'tpm' command fails, we set the return code but give no indication
of failure. This can be confusing.

Add an error message when any tpm command fails.

Signed-off-by: Simon Glass <sjg@chromium.org>
Acked-by: Christophe Ricard<christophe-h.ricard@st.com>
Reviewed-by: Heiko Schocher <hs@denx.de>
common/cmd_tpm.c