From nobody Thu Apr 27 13:13:26 2023 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 4Q6blW1jRcz478T2; Thu, 27 Apr 2023 13:13:27 +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 "R3" (verified OK)) by mx1.freebsd.org (Postfix) with ESMTPS id 4Q6blW0rQgz3wtg; Thu, 27 Apr 2023 13:13:27 +0000 (UTC) (envelope-from git@FreeBSD.org) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682601207; 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=brgvhJH64CL2a+fwsgV8gGv4dlJ6MsWhtRu5LIkR4TM=; b=ZUV15yukSExRdqOE+GHJO2dsbVSutBgdlh8J7ehw7DxT31VJ8TK68YowZXiMKWs6xovI4X YYaYYg81y81cFBPuxvk/ELmzVVZ3s0unUO15H40UZPwgyryWc8XYFfXK0kANBXIyDz9yQZ K157NmhVa4MrldI8H3LtMiActbTcxkuEdFNjQFOKfGZ39OWxxE6siwbD176Ah3qQWOuLG0 mL8EV+hg6xxgtWltus/X4soaZPCnkFW+7HGjyuRlXNl1GFXfWZG8h6Q0694vUc3Y5UvMA8 LLin3XVlDETvKErzPGqA8lThRq2ZagjW7YYyyv+psfMl72qSrSQ6u7RiEa1WrQ== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=freebsd.org; s=dkim; t=1682601207; 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=brgvhJH64CL2a+fwsgV8gGv4dlJ6MsWhtRu5LIkR4TM=; b=NZsWX/KFGzWLulzfYc5rGtLh0SQ14KYF+RQT7sAbrhEUCPb1QINj41RHZMHdd2aWDHHuDp pqf5w3NrTFobF8J/mc5NUkyGCEuNsSXbuH52TYVwugOYq3076cT8wpTzJ1kZI2gxFCPbSo qqryQE+m9wFcLyki2e6Zr7kVmUknFbjxmnp/WffCDIXfVvUz7tsLSxQ5slGhn6xCoBu6a8 Mw0GxgSZpJSKZFXoCuQii8O80JEJshwNef4LN0dB6WSeXL2wm5odwm82R2g7Y7qdPsgnva fuEDkEMxM2h41/g/hBI+/5P3w0oA4SnY8YJeDu3v/DYIaeXW9k0Vb9mHXI4MZA== ARC-Authentication-Results: i=1; mx1.freebsd.org; none ARC-Seal: i=1; s=dkim; d=freebsd.org; t=1682601207; a=rsa-sha256; cv=none; b=KqDdua1un7/oYaBkZm0qiuJyKHd6/541mNtEIpKcRW5Fjxuz1MD3f9YlsR6Dw0yYTn8bvo swnCzpZ0o5BGIsP9LKvI/Buqaw6n3l10qjh+tUATqtb9iKmeL7EIB+PRA/QMeAMBiGPeGl ZEhiBL/SML2DhMflswIGDTMRx7Ku7bIUMRiY2mWUxqgKcaOf+JRgdEJaDfxhAlOwtC+0w6 kpMSPABDSLkySUlBZEmMMf5oWADEF0+G5/TDjNhz66SHklRKho98uLhaQMLu7J6HMV0uCm +pLrHI1QAPUMGz+lWOQox46uU3ZAgJxro363S2AO4acTgZC37LC7Li4b/jG8Pw== 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 4Q6blV6xqqzJvX; Thu, 27 Apr 2023 13:13:26 +0000 (UTC) (envelope-from git@FreeBSD.org) Received: from gitrepo.freebsd.org ([127.0.1.44]) by gitrepo.freebsd.org (8.16.1/8.16.1) with ESMTP id 33RDDQEB062459; Thu, 27 Apr 2023 13:13:26 GMT (envelope-from git@gitrepo.freebsd.org) Received: (from git@localhost) by gitrepo.freebsd.org (8.16.1/8.16.1/Submit) id 33RDDQPe062458; Thu, 27 Apr 2023 13:13:26 GMT (envelope-from git) Date: Thu, 27 Apr 2023 13:13:26 GMT Message-Id: <202304271313.33RDDQPe062458@gitrepo.freebsd.org> To: src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org From: Guido Falsi Subject: git: 014e03411f20 - main - bhyve: Add DEBUG_HDA_FILE define to specify location of debug output 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: Sender: owner-dev-commits-src-all@freebsd.org X-BeenThere: dev-commits-src-all@freebsd.org MIME-Version: 1.0 Content-Type: text/plain; charset=utf-8 Content-Transfer-Encoding: 8bit X-Git-Committer: madpilot X-Git-Repository: src X-Git-Refname: refs/heads/main X-Git-Reftype: branch X-Git-Commit: 014e03411f209a833c94f0ee91984d9847ed6df4 Auto-Submitted: auto-generated X-ThisMailContainsUnwantedMimeParts: N The branch main has been updated by madpilot: URL: https://cgit.FreeBSD.org/src/commit/?id=014e03411f209a833c94f0ee91984d9847ed6df4 commit 014e03411f209a833c94f0ee91984d9847ed6df4 Author: Guido Falsi AuthorDate: 2023-04-27 07:49:01 +0000 Commit: Guido Falsi CommitDate: 2023-04-27 13:12:55 +0000 bhyve: Add DEBUG_HDA_FILE define to specify location of debug output Reviewed by: corvink Approved by: corvink Differential Revision: https://reviews.freebsd.org/D39826 --- usr.sbin/bhyve/pci_hda.c | 2 +- usr.sbin/bhyve/pci_hda.h | 3 +++ 2 files changed, 4 insertions(+), 1 deletion(-) diff --git a/usr.sbin/bhyve/pci_hda.c b/usr.sbin/bhyve/pci_hda.c index 07b0e745b0b9..4fc19c52b720 100644 --- a/usr.sbin/bhyve/pci_hda.c +++ b/usr.sbin/bhyve/pci_hda.c @@ -324,7 +324,7 @@ hda_init(nvlist_t *nvl) int err; #if DEBUG_HDA == 1 - dbg = fopen("/tmp/bhyve_hda.log", "w+"); + dbg = fopen(DEBUG_HDA_FILE, "w+"); #endif sc = calloc(1, sizeof(*sc)); diff --git a/usr.sbin/bhyve/pci_hda.h b/usr.sbin/bhyve/pci_hda.h index 8b24afac4771..ce502278bdbf 100644 --- a/usr.sbin/bhyve/pci_hda.h +++ b/usr.sbin/bhyve/pci_hda.h @@ -51,6 +51,9 @@ extern FILE *dbg; #define DPRINTF(fmt, arg...) \ do {fprintf(dbg, "%s-%d: " fmt "\n", __func__, __LINE__, ##arg); \ fflush(dbg); } while (0) +#ifndef DEBUG_HDA_FILE +#define DEBUG_HDA_FILE "/tmp/bhyve_hda.log" +#endif #else #define DPRINTF(fmt, arg...) #endif