projects
/
project
/
bcm63xx
/
u-boot.git
/ commitdiff
commit
grep
author
committer
pickaxe
?
search:
re
summary
|
shortlog
|
log
|
commit
| commitdiff |
tree
raw
|
patch
| inline |
side by side
(parent:
c6b2ea3
)
cmd: tpm-v2: use correct format code
author
Heinrich Schuchardt
<xypron.glpk@gmx.de>
Sun, 6 Jan 2019 11:09:10 +0000
(12:09 +0100)
committer
Tom Rini
<trini@konsulko.com>
Tue, 15 Jan 2019 20:28:44 +0000
(15:28 -0500)
updates is defined as unsigned int. So use %u for printf().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
cmd/tpm-v2.c
patch
|
blob
|
history
diff --git
a/cmd/tpm-v2.c
b/cmd/tpm-v2.c
index bb51834c478895657ae11c305b38cd29186e3185..459a955d2907394cfec1df03a8c86d12af2c8f39 100644
(file)
--- a/
cmd/tpm-v2.c
+++ b/
cmd/tpm-v2.c
@@
-151,7
+151,7
@@
static int do_tpm_pcr_read(cmd_tbl_t *cmdtp, int flag, int argc,
rc = tpm2_pcr_read(dev, index, priv->pcr_select_min, data, &updates);
if (!rc) {
- printf("PCR #%u content (%
d
known updates):\n", index, updates);
+ printf("PCR #%u content (%
u
known updates):\n", index, updates);
print_byte_string(data, TPM2_DIGEST_LEN);
}