git: db4a3bae6e2d - main - uart/ns8250: Tweak printfs to always prefix messages with uart:

From: Warner Losh <imp_at_FreeBSD.org>
Date: Mon, 14 Oct 2024 22:17:35 UTC
The branch main has been updated by imp:

URL: https://cgit.FreeBSD.org/src/commit/?id=db4a3bae6e2d00cfa64fc9aed5f76e128ab0386a

commit db4a3bae6e2d00cfa64fc9aed5f76e128ab0386a
Author:     Warner Losh <imp@FreeBSD.org>
AuthorDate: 2024-10-14 21:57:38 +0000
Commit:     Warner Losh <imp@FreeBSD.org>
CommitDate: 2024-10-14 22:03:58 +0000

    uart/ns8250: Tweak printfs to always prefix messages with uart:
    
    It can be confusing when the ns8250 driver prints error messages with
    just ns8250 as the prefix. Add uart: to the live and commented out
    printfs.
    
    Sponsored by:           Netflix
    Reviewed by:            andrew, markj
    Differential Revision:  https://reviews.freebsd.org/D47073
---
 sys/dev/uart/uart_dev_ns8250.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)

diff --git a/sys/dev/uart/uart_dev_ns8250.c b/sys/dev/uart/uart_dev_ns8250.c
index 7aef4df97e12..9f88a43f462a 100644
--- a/sys/dev/uart/uart_dev_ns8250.c
+++ b/sys/dev/uart/uart_dev_ns8250.c
@@ -187,7 +187,7 @@ ns8250_drain(struct uart_bas *bas, int what)
 		while ((uart_getreg(bas, REG_LSR) & LSR_TEMT) == 0 && --limit)
 			DELAY(delay);
 		if (limit == 0) {
-			/* printf("ns8250: transmitter appears stuck... "); */
+			/* printf("uart: ns8250: transmitter appears stuck... "); */
 			return (EIO);
 		}
 	}
@@ -215,7 +215,7 @@ ns8250_drain(struct uart_bas *bas, int what)
 			DELAY(delay << 2);
 		}
 		if (limit == 0) {
-			/* printf("ns8250: receiver appears broken... "); */
+			/* printf("uart: ns8250: receiver appears broken... "); */
 			return (EIO);
 		}
 	}
@@ -255,7 +255,7 @@ ns8250_flush(struct uart_bas *bas, int what)
 	if ((lsr & LSR_RXRDY) && (what & UART_FLUSH_RECEIVER))
 		drain |= UART_DRAIN_RECEIVER;
 	if (drain != 0) {
-		printf("ns8250: UART FCR is broken\n");
+		printf("uart: ns8250: UART FCR is broken\n");
 		ns8250_drain(bas, drain);
 	}
 }