git: 5aa9f8dae3d4 - main - mgb: Use MGB_DEBUG instead of DEBUG

Ed Maste emaste at FreeBSD.org
Wed Sep 29 14:02:44 UTC 2021


The branch main has been updated by emaste:

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

commit 5aa9f8dae3d40e1780a688ce01401e799b25e7c3
Author:     Ed Maste <emaste at FreeBSD.org>
AuthorDate: 2021-09-29 13:59:10 +0000
Commit:     Ed Maste <emaste at FreeBSD.org>
CommitDate: 2021-09-29 14:00:55 +0000

    mgb: Use MGB_DEBUG instead of DEBUG
    
    The debug register dump routine is not hooked up and is really only
    useful to driver developers, so put it under an mgb-specific MGB_DEBUG
    rather than general DEBUG.
    
    MFC after:      1 week
    Fixes:          8890ab7758b8 ("Introduce if_mgb driver...")
    Sponsored by:   The FreeBSD Foundation
---
 sys/dev/mgb/if_mgb.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sys/dev/mgb/if_mgb.c b/sys/dev/mgb/if_mgb.c
index bc944c92625c..c62b666f098b 100644
--- a/sys/dev/mgb/if_mgb.c
+++ b/sys/dev/mgb/if_mgb.c
@@ -620,7 +620,7 @@ mgb_init(if_ctx_t ctx)
 		    error);
 }
 
-#ifdef DEBUG
+#ifdef MGB_DEBUG
 static void
 mgb_dump_some_stats(struct mgb_softc *sc)
 {


More information about the dev-commits-src-all mailing list