Skip site navigation (1)Skip section navigation (2)
Date:      Thu, 29 Sep 2022 11:00:32 GMT
From:      =?utf-8?Q?Kornel=20Dul=C4=99ba?= <kd@FreeBSD.org>
To:        src-committers@FreeBSD.org, dev-commits-src-all@FreeBSD.org, dev-commits-src-main@FreeBSD.org
Subject:   git: 7b54d275ef6f - main - libsa/netif.c: Replace #if with #ifdef
Message-ID:  <202209291100.28TB0W09076918@gitrepo.freebsd.org>

next in thread | raw e-mail | index | archive | help
The branch main has been updated by kd:

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

commit 7b54d275ef6f74fe6030c85445bd3770d537d408
Author:     Michał Grzelak <mig@semihalf.com>
AuthorDate: 2022-09-28 10:31:25 +0000
Commit:     Kornel Dulęba <kd@FreeBSD.org>
CommitDate: 2022-09-29 10:52:02 +0000

    libsa/netif.c: Replace #if with #ifdef
    
    Follow the convention with *_DEBUG macros in stand/libsa/* and replace
    "#if" with "#ifdef".
    
    Reviewed by:    kd
    Obtained from:  Semihalf
    Differential Revision: https://reviews.freebsd.org/D36740
---
 stand/libsa/netif.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/stand/libsa/netif.c b/stand/libsa/netif.c
index 4e91e11a9413..91d07dcf96a4 100644
--- a/stand/libsa/netif.c
+++ b/stand/libsa/netif.c
@@ -91,7 +91,7 @@ netif_match(struct netif *nif, void *machdep_hint)
 {
 	struct netif_driver *drv = nif->nif_driver;
 
-#if NETIF_DEBUG
+#ifdef NETIF_DEBUG
 	if (netif_debug)
 		printf("%s%d: netif_match (%d)\n", drv->netif_bname,
 		    nif->nif_unit, nif->nif_sel);



Want to link to this message? Use this URL: <https://mail-archive.FreeBSD.org/cgi/mid.cgi?202209291100.28TB0W09076918>