Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
R
RIOT
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Container registry
Model registry
Operate
Environments
Monitor
Incidents
Service Desk
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
cm-projects
RIOT
Commits
7745060a
Unverified
Commit
7745060a
authored
7 years ago
by
Martine Lenders
Committed by
GitHub
7 years ago
Browse files
Options
Downloads
Plain Diff
Merge pull request #8209 from bergzand/pr/netifeth_oddebug
gnrc_netif: Fix compile errors when debug is enabled
parents
186acbd3
039bdf2a
Branches
Branches containing commit
No related tags found
No related merge requests found
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
sys/net/gnrc/netif/gnrc_netif_ethernet.c
+4
-0
4 additions, 0 deletions
sys/net/gnrc/netif/gnrc_netif_ethernet.c
sys/net/gnrc/netif/gnrc_netif_ieee802154.c
+7
-3
7 additions, 3 deletions
sys/net/gnrc/netif/gnrc_netif_ieee802154.c
with
11 additions
and
3 deletions
sys/net/gnrc/netif/gnrc_netif_ethernet.c
+
4
−
0
View file @
7745060a
...
...
@@ -26,6 +26,10 @@
#define ENABLE_DEBUG (0)
#include
"debug.h"
#if defined(MODULE_OD) && ENABLE_DEBUG
#include
"od.h"
#endif
static
int
_send
(
gnrc_netif_t
*
netif
,
gnrc_pktsnip_t
*
pkt
);
static
gnrc_pktsnip_t
*
_recv
(
gnrc_netif_t
*
netif
);
...
...
This diff is collapsed.
Click to expand it.
sys/net/gnrc/netif/gnrc_netif_ieee802154.c
+
7
−
3
View file @
7745060a
...
...
@@ -24,6 +24,10 @@
#define ENABLE_DEBUG (0)
#include
"debug.h"
#if defined(MODULE_OD) && ENABLE_DEBUG
#include
"od.h"
#endif
#ifdef MODULE_NETDEV_IEEE802154
static
int
_send
(
gnrc_netif_t
*
netif
,
gnrc_pktsnip_t
*
pkt
);
static
gnrc_pktsnip_t
*
_recv
(
gnrc_netif_t
*
netif
);
...
...
@@ -137,9 +141,9 @@ static gnrc_pktsnip_t *_recv(gnrc_netif_t *netif)
pkt
->
type
=
state
->
proto
;
#if ENABLE_DEBUG
DEBUG
(
"_recv_ieee802154: received packet from %s of length %u
\n
"
,
gnrc_netif_addr_to_str
(
s
rc_
str
,
sizeof
(
src_st
r
),
gnrc_netif_hdr_get_
src_addr
(
hdr
)
,
hdr
->
src_l2addr_len
),
gnrc_netif_addr_to_str
(
gn
rc_
netif_hdr_get_src_addr
(
hd
r
),
hdr
->
src_
l2
addr
_len
,
src_str
),
nread
);
#if defined(MODULE_OD)
od_hex_dump
(
pkt
->
data
,
nread
,
OD_WIDTH_DEFAULT
);
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment