[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211222155816.256405-3-miquel.raynal@bootlin.com>
Date: Wed, 22 Dec 2021 16:58:11 +0100
From: Miquel Raynal <miquel.raynal@...tlin.com>
To: Alexander Aring <alex.aring@...il.com>,
Stefan Schmidt <stefan@...enfreihafen.org>,
linux-wpan@...r.kernel.org
Cc: David Girault <david.girault@...vo.com>,
Romuald Despres <romuald.despres@...vo.com>,
Frederic Blain <frederic.blain@...vo.com>,
Thomas Petazzoni <thomas.petazzoni@...tlin.com>,
netdev@...r.kernel.org, Miquel Raynal <miquel.raynal@...tlin.com>
Subject: [wpan-tools 2/7] iwpan: Export iwpan_debug
From: David Girault <david.girault@...vo.com>
This debug flag will be used later on in different files.
Signed-off-by: David Girault <david.girault@...vo.com>
Signed-off-by: Miquel Raynal <miquel.raynal@...tlin.com>
---
src/iwpan.c | 2 +-
src/iwpan.h | 2 ++
2 files changed, 3 insertions(+), 1 deletion(-)
diff --git a/src/iwpan.c b/src/iwpan.c
index fb7bef1..3cf5fe2 100644
--- a/src/iwpan.c
+++ b/src/iwpan.c
@@ -21,7 +21,7 @@
/* TODO libnl 1.x compatibility code */
-static int iwpan_debug = 0;
+int iwpan_debug = 0;
static int nl802154_init(struct nl802154_state *state)
{
diff --git a/src/iwpan.h b/src/iwpan.h
index 48c4f03..860dd37 100644
--- a/src/iwpan.h
+++ b/src/iwpan.h
@@ -120,4 +120,6 @@ DECLARE_SECTION(get);
const char *iftype_name(enum nl802154_iftype iftype);
+extern int iwpan_debug;
+
#endif /* __IWPAN_H */
--
2.27.0
Powered by blists - more mailing lists