cmd: tpm-v2: use correct format code
authorHeinrich Schuchardt <xypron.glpk@gmx.de>
Sun, 6 Jan 2019 11:09:10 +0000 (12:09 +0100)
committerTom 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

index bb51834..459a955 100644 (file)
@@ -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);
        }