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
84
Issues
84
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
ee3fd196
Commit
ee3fd196
authored
Mar 01, 2016
by
Grzegorz Daniluk
Committed by
Adam Wujek
Mar 02, 2016
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrsw_hal: cleanup in log messages - levels and content
parent
2d7a0a52
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
with
6 additions
and
7 deletions
+6
-7
hal_exports.c
userspace/wrsw_hal/hal_exports.c
+1
-1
hal_main.c
userspace/wrsw_hal/hal_main.c
+3
-4
hal_ports.c
userspace/wrsw_hal/hal_ports.c
+2
-2
No files found.
userspace/wrsw_hal/hal_exports.c
View file @
ee3fd196
...
...
@@ -229,7 +229,7 @@ int hal_check_running()
struct
wrs_shm_head
*
hal_head
;
hal_head
=
wrs_shm_get
(
wrs_shm_hal
,
""
,
WRS_SHM_READ
);
if
(
!
hal_head
)
{
pr_
info
(
"Unable to open shm for HAL! Unable to check if there "
pr_
error
(
"Unable to open shm for HAL! Unable to check if there "
"is another HAL instance running. Error: %s
\n
"
,
strerror
(
errno
));
exit
(
-
1
);
...
...
userspace/wrsw_hal/hal_main.c
View file @
ee3fd196
...
...
@@ -50,7 +50,7 @@ static void call_cleanup_cbs(void)
{
int
i
;
pr_
info
(
"Cleaning up...
\n
"
);
pr_
debug
(
"Cleaning up...
\n
"
);
for
(
i
=
0
;
i
<
MAX_CLEANUP_CALLBACKS
;
i
++
)
if
(
cleanup_cb
[
i
])
cleanup_cb
[
i
]
();
...
...
@@ -82,7 +82,7 @@ static int hal_init(void)
//trace_log_stderr();
int
line
;
pr_
info
(
"initializing...
\n
"
);
pr_
debug
(
"initializing...
\n
"
);
memset
(
cleanup_cb
,
0
,
sizeof
(
cleanup_cb
));
...
...
@@ -220,8 +220,7 @@ int main(int argc, char *argv[])
wrs_msg_init
(
argc
,
argv
);
/* Print HAL's version */
wrs_msg
(
LOG_ALERT
,
"wrsw_hal. Commit %s, built on "
__DATE__
"
\n
"
,
__GIT_VER__
);
pr_info
(
"wrsw_hal. Commit %s, built on "
__DATE__
"
\n
"
,
__GIT_VER__
);
/* Prevent from running HAL twice - it will likely freeze the system */
if
(
hal_check_running
())
{
...
...
userspace/wrsw_hal/hal_ports.c
View file @
ee3fd196
...
...
@@ -161,7 +161,7 @@ static int hal_port_init(int index)
pr_error
(
"port index %i (%s): invalid role "
"
\"
%s
\"
specified
\n
"
,
index
,
name
,
s
);
pr_
info
(
"Port %s: mode %i
\n
"
,
p
->
name
,
val
);
pr_
debug
(
"Port %s: mode %i
\n
"
,
p
->
name
,
val
);
}
/* Get fiber type */
...
...
@@ -553,7 +553,7 @@ static void hal_port_poll_sfp(void)
if
(
ports
[
i
].
in_use
&&
(
mask
^
old_mask
)
&
(
1
<<
hw_index
))
{
int
insert
=
mask
&
(
1
<<
hw_index
);
pr_info
(
"Detected SFP %s "
pr_info
(
"
SFP Info:
Detected SFP %s "
"on port %s.
\n
"
,
insert
?
"insertion"
:
"removal"
,
ports
[
i
].
name
);
...
...
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