Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
M
Mock Turtle
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
1
Issues
1
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
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
Mock Turtle
Commits
822a2073
Commit
822a2073
authored
Jul 01, 2015
by
Federico Vaga
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
wrtd:lib: on open set level according to core
Signed-off-by:
Federico Vaga
<
federico.vaga@cern.ch
>
parent
7a670923
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
8 additions
and
2 deletions
+8
-2
libwrtd-logging.c
applications/wrtd/lib/libwrtd-logging.c
+8
-2
No files found.
applications/wrtd/lib/libwrtd-logging.c
View file @
822a2073
...
...
@@ -75,7 +75,10 @@ static struct wrnc_hmq *wrtd_log_open(struct wrtd_node *dev,
}
if
(
channel
>
-
1
)
{
err
=
wrtd_in_log_level_set
(
dev
,
channel
,
lvl
);
if
(
core
==
WRTD_CORE_IN
)
err
=
wrtd_in_log_level_set
(
dev
,
channel
,
lvl
);
else
err
=
wrtd_out_log_level_set
(
dev
,
channel
,
lvl
);
if
(
err
)
return
NULL
;
...
...
@@ -91,7 +94,10 @@ static struct wrnc_hmq *wrtd_log_open(struct wrtd_node *dev,
}
else
{
/* Set the same logging level to all channels */
for
(
i
=
0
;
i
<
n_chan
;
++
i
)
{
err
=
wrtd_in_log_level_set
(
dev
,
i
,
lvl
);
if
(
core
==
WRTD_CORE_IN
)
err
=
wrtd_in_log_level_set
(
dev
,
i
,
lvl
);
else
err
=
wrtd_out_log_level_set
(
dev
,
i
,
lvl
);
if
(
err
)
return
NULL
;
}
...
...
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