public inbox for u-boot@lists.denx.de
 help / color / mirror / Atom feed
* [U-Boot] [PATCH 1/1] cmd: tpm-v2: use correct format code
@ 2019-01-06 11:09 Heinrich Schuchardt
  2019-01-16  2:43 ` [U-Boot] [U-Boot,1/1] " Tom Rini
  0 siblings, 1 reply; 2+ messages in thread
From: Heinrich Schuchardt @ 2019-01-06 11:09 UTC (permalink / raw)
  To: u-boot

updates is defined as unsigned int. So use %u for printf().

Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>
---
 cmd/tpm-v2.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/cmd/tpm-v2.c b/cmd/tpm-v2.c
index bb51834c47..459a955d29 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);
 	}
 
-- 
2.20.1

^ permalink raw reply related	[flat|nested] 2+ messages in thread

* [U-Boot] [U-Boot,1/1] cmd: tpm-v2: use correct format code
  2019-01-06 11:09 [U-Boot] [PATCH 1/1] cmd: tpm-v2: use correct format code Heinrich Schuchardt
@ 2019-01-16  2:43 ` Tom Rini
  0 siblings, 0 replies; 2+ messages in thread
From: Tom Rini @ 2019-01-16  2:43 UTC (permalink / raw)
  To: u-boot

On Sun, Jan 06, 2019 at 12:09:10PM +0100, Heinrich Schuchardt wrote:

> updates is defined as unsigned int. So use %u for printf().
> 
> Signed-off-by: Heinrich Schuchardt <xypron.glpk@gmx.de>

Applied to u-boot/master, thanks!

-- 
Tom
-------------- next part --------------
A non-text attachment was scrubbed...
Name: signature.asc
Type: application/pgp-signature
Size: 819 bytes
Desc: not available
URL: <http://lists.denx.de/pipermail/u-boot/attachments/20190115/d9b5fd8d/attachment.sig>

^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2019-01-16  2:43 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2019-01-06 11:09 [U-Boot] [PATCH 1/1] cmd: tpm-v2: use correct format code Heinrich Schuchardt
2019-01-16  2:43 ` [U-Boot] [U-Boot,1/1] " Tom Rini

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox