Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
White Rabbit Switch - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
86
Issues
86
List
Board
Labels
Milestones
Merge Requests
4
Merge Requests
4
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
White Rabbit Switch - Software
Commits
44eaafca
Commit
44eaafca
authored
Jun 12, 2014
by
Alessandro Rubini
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace: fix TRACE macro and its users
Signed-off-by:
Alessandro Rubini
<
rubini@gnudd.com
>
parent
5181075e
Hide whitespace changes
Inline
Side-by-side
Showing
4 changed files
with
4 additions
and
4 deletions
+4
-4
trace.h
userspace/include/trace.h
+1
-1
hal_main.c
userspace/wrsw_hal/hal_main.c
+1
-1
hal_ports.c
userspace/wrsw_hal/hal_ports.c
+1
-1
rtud.c
userspace/wrsw_rtud/rtud.c
+1
-1
No files found.
userspace/include/trace.h
View file @
44eaafca
...
...
@@ -9,7 +9,7 @@
#define TRACE_FATAL 3
#ifdef DEBUG
#define TRACE(...) trace_printf(__FILE__, __LINE__, __VA_ARGS__)
;
#define TRACE(...) trace_printf(__FILE__, __LINE__, __VA_ARGS__)
#else
#define TRACE(...)
#endif
...
...
userspace/wrsw_hal/hal_main.c
View file @
44eaafca
...
...
@@ -181,7 +181,7 @@ int hal_init()
if
(
!
hal_config_get_string
(
"global.sfp_database_path"
,
sfp_db_path
,
sizeof
(
sfp_db_path
)))
{
if
(
shw_sfp_read_db
(
sfp_db_path
)
<
0
)
{
TRACE
(
TRACE_ERROR
,
"Can't read SFP database (%s)"
,
sfp_db_path
)
TRACE
(
TRACE_ERROR
,
"Can't read SFP database (%s)"
,
sfp_db_path
)
;
}
else
{
TRACE
(
TRACE_INFO
,
"Loaded SFP database (%s)"
,
sfp_db_path
);
}
...
...
userspace/wrsw_hal/hal_ports.c
View file @
44eaafca
...
...
@@ -480,7 +480,7 @@ static void on_insert_sfp(hal_port_state_t *p)
{
struct
shw_sfp_header
shdr
;
if
(
shw_sfp_read_verify_header
(
p
->
hw_index
,
&
shdr
)
<
0
)
TRACE
(
TRACE_ERROR
,
"Failed to read SFP configuration header"
)
TRACE
(
TRACE_ERROR
,
"Failed to read SFP configuration header"
)
;
else
{
struct
shw_sfp_caldata
*
cdata
;
TRACE
(
TRACE_INFO
,
"SFP Info: Manufacturer: %.16s P/N: %.16s, S/N: %.16s"
,
shdr
.
vendor_name
,
shdr
.
vendor_pn
,
shdr
.
vendor_serial
);
...
...
userspace/wrsw_rtud/rtud.c
View file @
44eaafca
...
...
@@ -167,7 +167,7 @@ static void rtu_update_ports_state()
if
(
port_state
[
i
].
is_up
&&
!
link_up
)
{
TRACE
(
TRACE_INFO
,
"Port %s went down, removing corresponding entries..."
,
port_state
[
i
].
if_name
)
port_state
[
i
].
if_name
)
;
rtu_fd_clear_entries_for_port
(
port_state
[
i
].
hw_index
);
...
...
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