Module Name: src Committed By: khorben Date: Wed Sep 7 00:34:20 UTC 2022
Modified Files: src/sys/dev/ic: tpm.c Log Message: tpm(4): add missing newline character in device_printf() Observed with on a Sun Ultra 24, NetBSD/amd64: tpm0 at acpi0 (TPM, IFX0102-1): io 0x4e-0x4f,0x4700-0x470b mem 0xfed40000-0xfed44fff tpm0: device 0x000b15d1 rev 0x10 tpm0: read 8 bytes, expected 10tpm0: deactivating entropy source To generate a diff of this commit: cvs rdiff -u -r1.25 -r1.26 src/sys/dev/ic/tpm.c Please note that diffs are not public domain; they are subject to the copyright notices on the relevant files.
Modified files: Index: src/sys/dev/ic/tpm.c diff -u src/sys/dev/ic/tpm.c:1.25 src/sys/dev/ic/tpm.c:1.26 --- src/sys/dev/ic/tpm.c:1.25 Sat Jan 29 12:27:30 2022 +++ src/sys/dev/ic/tpm.c Wed Sep 7 00:34:19 2022 @@ -1,4 +1,4 @@ -/* $NetBSD: tpm.c,v 1.25 2022/01/29 12:27:30 riastradh Exp $ */ +/* $NetBSD: tpm.c,v 1.26 2022/09/07 00:34:19 khorben Exp $ */ /* * Copyright (c) 2019 The NetBSD Foundation, Inc. @@ -48,7 +48,7 @@ */ #include <sys/cdefs.h> -__KERNEL_RCSID(0, "$NetBSD: tpm.c,v 1.25 2022/01/29 12:27:30 riastradh Exp $"); +__KERNEL_RCSID(0, "$NetBSD: tpm.c,v 1.26 2022/09/07 00:34:19 khorben Exp $"); #include <sys/param.h> #include <sys/types.h> @@ -543,7 +543,7 @@ tpm12_rng(struct tpm_softc *sc, unsigned /* Verify the response header looks sensible. */ if (nread != sizeof(response.hdr)) { - device_printf(sc->sc_dev, "read %zu bytes, expected %zu", + device_printf(sc->sc_dev, "read %zu bytes, expected %zu\n", nread, sizeof(response.hdr)); goto out; }