From nobody Mon Oct 14 22:17:35 2024 X-Original-To: dev-commits-src-all@mlmmj.nyi.freebsd.org Received: from mx1.freebsd.org (mx1.freebsd.org [IPv6:2610:1c1:1:606c::19:1]) by mlmmj.nyi.freebsd.org (Postfix) with ESMTP id 4XSBRz4jN5z5ZG2p; Mon, 14 Oct 2024 22:17:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from mxrelay.nyi.freebsd.org (mxrelay.nyi.freebsd.org [IPv6:2610:1c1:1:606c::19:3]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256 client-signature RSA-PSS (4096 bits) client-digest SHA256) (Client CN "mxrelay.nyi.freebsd.org", Issuer "R11" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4XSBRz32yZz3xPN; Mon, 14 Oct 2024 22:17:35 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728944255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7vakyaG4j+g7voK7RzjHqUmvXaIy4ADjfhENj+q69Z4=; b=YVzhzWDoXyXd8CUcCiesL0UC8LBrLdNoy3nAmavBPbrmtt7xmYQeaE5ZThasVChBsm3EY/ BdXxaxK89ugnmq2xY1ePvnfIhGUHSO+iwoc+6UP0N9UhtKtCx/9E/IIFpc9GmS3KtyDeBF TEHcU1iKA+i3uktLJ44FqVcd2QF2Wpo+XGFssY/uuKCOyVmpKNcEEObBn864KYCsvkkXUa ml3V2r4O5q0+g52pGSbRhkCa5aCIjx4pBTPBAgm8pdC82b95fbPwh3HPUxYnzAxHROFjW0 vc63NvAaY1JajsIsKR/UgoYnWlK6L57mGKCVCICcl3HT1lUYoAcueEjVGYVsGQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1728944255; h=from:from:reply-to:subject:subject:date:date:message-id:message-id: to:to:cc:mime-version:mime-version:content-type:content-type: content-transfer-encoding:content-transfer-encoding; bh=7vakyaG4j+g7voK7RzjHqUmvXaIy4ADjfhENj+q69Z4=; b=ScIsTTSwaJyhoQnrxlJtkkoYrRP+6NlW3Pvu7om2FVuHQINqiUQk+bEZ9lbH/KQKfh2z5T B8MsIuTSraVXzZpWCVSVvQjAcuD39bij7NKQIdkCn48wDNMOHAN3Ecv+3MiuSoQRmy3szS RpCWsvMuVa++LBQ9t+RG+omEmOrzdKBIjv5dVUGBUNcuO77vK9JJfYicIfuGOC2fSIaHz0 ActDtyKZDMIMBCyyGByHO45pukgzaLn2NwGswnTZBWZ7YXRzN8W4plAMw0Plq/36PlxAvu y/xueU6jZHDguRzi5wlbP4DI5ZoSx1QHloXv7U/dAjjQ+lrlO5uvgmLcVPbadg== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1728944255; a=rsa-sha256; cv=none; b=WRrg7b1RM9arHTvlcewco3+ABaGu35AXjaOn8SbotzGx8x6bBmI0pIurG04Zm7Z/L1sYRc rUnoDa0xu9L/QDlrkG6ttulfA/S+JzR7sVA90HmJl+2tMYRgJTNG2GatbQO5KJxPT/4exE ARTr0S5gSsDq8NptxVMNewebxF8ug5WBzYa3+nkfAQEg2ENRdI+uy6QTY4gRq+KijybXWU qrlQ8xDuk32rxpC6j9DF6WdJHHijFruKOeIZfxen35q0QrGEICRvkJk+L+DBYyTcuq3gK2 RHjrV2to5p0wBTo/UfhqFLkNnzpGDZSJs/KPVpctrjJrfkLB/OsV9Mw4oDvwZA== Received: from gitrepo.freebsd.org (gitrepo.freebsd.org [IPv6:2610:1c1:1:6068::e6a:5]) (using TLSv1.3 with cipher TLS_AES_256_GCM_SHA384 (256/256 bits) key-exchange X25519 server-signature RSA-PSS (4096 bits) server-digest SHA256) (Client did not present a certificate) by mxrelay.nyi.freebsd.org (Postfix) with ESMTPS id 4XSBRz2d1Qzw3Y; Mon, 14 Oct 2024 22:17:35 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.18.1/8.18.1) with ESMTP id 49EMHZr0074819; Mon, 14 Oct 2024 22:17:35 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.18.1/8.18.1/Submit) id 49EMHZLK074816; Mon, 14 Oct 2024 22:17:35 GMT (envelope-from git) Date: Mon, 14 Oct 2024 22:17:35 GMT Message-Id: <202410142217.49EMHZLK074816@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Warner Losh Subject: git: db4a3bae6e2d - main - uart/ns8250: Tweak printfs to always prefix messages with uart: List-Id: Commit messages for all branches of the src repository List-Archive: https://lists.freebsd.org/archives/dev-commits-src-all List-Help: List-Post: List-Subscribe: List-Unsubscribe: X-BeenThere: dev-commits-src-all@freebsd.org Sender: owner-dev-commits-src-all@FreeBSD.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: imp X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: db4a3bae6e2d00cfa64fc9aed5f76e128ab0386a Auto-Submitted: auto-generated The branch main has been updated by imp: URL: https://cgit.FreeBSD.org/src/commit/?id=db4a3bae6e2d00cfa64fc9aed5f76e128ab0386a commit db4a3bae6e2d00cfa64fc9aed5f76e128ab0386a Author: Warner Losh AuthorDate: 2024-10-14 21:57:38 +0000 Commit: Warner Losh 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); } }