diff options
author | Heinrich Schuchardt | 2019-01-06 12:09:10 +0100 |
---|---|---|
committer | Tom Rini | 2019-01-15 15:28:44 -0500 |
commit | 1d1af2ae5afe18d9ea7037201b241e963ac7307e (patch) | |
tree | f5c953fd569b4e5ee10a58ae2a45a530c405ab3b /cmd | |
parent | c6b2ea379ce6867f18897b45beacfea138c53a31 (diff) |
cmd: tpm-v2: use correct format code
updates is defined as unsigned int. So use %u for printf().
Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
Diffstat (limited to 'cmd')
-rw-r--r-- | cmd/tpm-v2.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/cmd/tpm-v2.c b/cmd/tpm-v2.c index bb51834c478..459a955d290 100644 --- 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); } |