Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
W
wr-switch-sw
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
image/svg+xml
Discourse
Discourse
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Commits
Open sidebar
white-rabbit
wr-switch-sw
Commits
97b47560
Commit
97b47560
authored
Feb 05, 2016
by
Adam Wujek
💬
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
userspace/wrsw_hal: print error when found errors in dot-config
Signed-off-by:
Adam Wujek
<
adam.wujek@cern.ch
>
parent
1a05465f
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
7 additions
and
1 deletion
+7
-1
hal_main.c
userspace/wrsw_hal/hal_main.c
+7
-1
No files found.
userspace/wrsw_hal/hal_main.c
View file @
97b47560
...
...
@@ -79,11 +79,17 @@ static int hal_init(void)
{
//trace_log_stderr();
int
line
;
pr_info
(
"initializing...
\n
"
);
memset
(
cleanup_cb
,
0
,
sizeof
(
cleanup_cb
));
libwr_cfg_read_file
(
"/wr/etc/dot-config"
);
/* FIXME: accept -f */
line
=
libwr_cfg_read_file
(
"/wr/etc/dot-config"
);
/* FIXME: accept -f */
if
(
line
==
-
1
)
pr_error
(
"Unable to read dot-config or error in line 1
\n
"
);
else
if
(
line
)
pr_error
(
"Error in dot-config, error in line %d
\n
"
,
-
line
);
shw_sfp_read_db
();
/* Set up trap for some signals - the main purpose is to
...
...
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