Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
S
Software for White Rabbit PTP Core
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
32
Issues
32
List
Board
Labels
Milestones
Merge Requests
7
Merge Requests
7
CI / CD
CI / CD
Pipelines
Schedules
Wiki
Wiki
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Commits
Issue Boards
Open sidebar
Projects
Software for White Rabbit PTP Core
Commits
333c50bb
Commit
333c50bb
authored
Jan 12, 2016
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
net: move net_verbose() to be like the other two
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
c24326a8
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
3 additions
and
14 deletions
+3
-14
trace.h
include/trace.h
+3
-0
net.c
lib/net.c
+0
-14
No files found.
include/trace.h
View file @
333c50bb
...
...
@@ -25,5 +25,8 @@
#define wrc_verbose(...) \
({if (WRC_IS_VERBOSE) __debug_printf(__VA_ARGS__);})
#define net_verbose(...) \
({if (NET_IS_VERBOSE) __debug_printf(__VA_ARGS__);})
#endif
/* __FREESTANDING_TRACE_H__ */
lib/net.c
View file @
333c50bb
...
...
@@ -55,20 +55,6 @@ struct my_socket {
static
struct
my_socket
socks
[
NET_MAX_SOCKETS
];
static
int
net_verbose
(
const
char
*
fmt
,
...)
{
va_list
args
;
int
ret
=
0
;
if
(
NET_IS_VERBOSE
)
{
va_start
(
args
,
fmt
);
ret
=
pp_vprintf
(
fmt
,
args
);
va_end
(
args
);
}
return
ret
;
}
int
ptpd_netif_init
()
{
memset
(
socks
,
0
,
sizeof
(
socks
));
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment