Module Name:    src
Committed By:   jmcneill
Date:           Thu Jan 30 00:21:23 UTC 2020

Modified Files:
        src/sys/dev/hdaudio: hdafg.c

Log Message:
Only dump ELD info if HDAFG_HDMI_DEBUG is defined


To generate a diff of this commit:
cvs rdiff -u -r1.19 -r1.20 src/sys/dev/hdaudio/hdafg.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/hdaudio/hdafg.c
diff -u src/sys/dev/hdaudio/hdafg.c:1.19 src/sys/dev/hdaudio/hdafg.c:1.20
--- src/sys/dev/hdaudio/hdafg.c:1.19	Sat Jan 18 12:00:33 2020
+++ src/sys/dev/hdaudio/hdafg.c	Thu Jan 30 00:21:23 2020
@@ -1,4 +1,4 @@
-/* $NetBSD: hdafg.c,v 1.19 2020/01/18 12:00:33 jmcneill Exp $ */
+/* $NetBSD: hdafg.c,v 1.20 2020/01/30 00:21:23 jmcneill Exp $ */
 
 /*
  * Copyright (c) 2009 Precedence Technologies Ltd <supp...@precedence.co.uk>
@@ -60,7 +60,7 @@
  */
 
 #include <sys/cdefs.h>
-__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.19 2020/01/18 12:00:33 jmcneill Exp $");
+__KERNEL_RCSID(0, "$NetBSD: hdafg.c,v 1.20 2020/01/30 00:21:23 jmcneill Exp $");
 
 #include <sys/types.h>
 #include <sys/param.h>
@@ -889,6 +889,7 @@ hdafg_assoc_dump_dd(struct hdafg_softc *
 			return;
 		}
 
+#ifdef HDAFG_HDMI_DEBUG
 		hda_print(sc, "  ELD version=0x%x", ELD_VER(&hdi.eld));
 		hda_print1(sc, ",len=%u", hdi.eld.header.baseline_eld_len * 4);
 		hda_print1(sc, ",edid=0x%x", ELD_CEA_EDID_VER(&hdi.eld));
@@ -914,6 +915,7 @@ hdafg_assoc_dump_dd(struct hdafg_softc *
 				    CEA_MAX_BITRATE(&hdi.sad[i]));
 			hda_print1(sc, "\n");
 		}
+#endif
 	}
 }
 

Reply via email to