Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
B
Beam Positoning Monitor - Software
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
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
Beam Positoning Monitor - Software
Commits
275bc7ca
Commit
275bc7ca
authored
Jul 18, 2014
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/sm_io/*_bootstrap.c: improve info messages
parent
cf9f48dd
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
17 additions
and
12 deletions
+17
-12
sm_io_bootstrap.c
hal/sm_io/sm_io_bootstrap.c
+17
-12
No files found.
hal/sm_io/sm_io_bootstrap.c
View file @
275bc7ca
...
...
@@ -58,9 +58,6 @@ void smio_startup (void *args, zctx_t *ctx, void *pipe)
* for the same thing (see Majordomo protocol) */
th_boot_args_t
*
th_args
=
(
th_boot_args_t
*
)
args
;
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_TRACE
,
"[sm_io_bootstrap] Thread starting ...
\n
"
);
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_TRACE
,
"[sm_io_bootstrap] Thread allocating resources ...
\n
"
);
/* We must export our service as the combination of the
* devio name (coming from devio parent) and our own name ID
* followed by an optional parameter coming from priv pointer */
...
...
@@ -68,14 +65,15 @@ void smio_startup (void *args, zctx_t *ctx, void *pipe)
smio_mod_dispatch
[
th_args
->
smio_id
].
name
,
':'
);
ASSERT_ALLOC
(
smio_service
,
err_smio_service_alloc
);
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io_bootstrap] SMIO Thread %s "
"starting ...
\n
"
,
smio_service
);
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io_bootstrap] SMIO Thread %s "
"allocating resources ...
\n
"
,
smio_service
);
smio_t
*
self
=
_smio_new
(
th_args
->
parent
,
ctx
,
pipe
,
th_args
->
broker
,
smio_service
,
th_args
->
verbose
);
ASSERT_ALLOC
(
self
,
err_self_alloc
);
/* We don't need this anymore */
free
(
smio_service
);
smio_service
=
NULL
;
/* Call SMIO init function to finish initializing its internal strucutres */
SMIO_DISPATCH_FUNC_WRAPPER
(
init
);
/* Atach this SMIO instance to its parent */
...
...
@@ -101,9 +99,13 @@ err_smio_export:
/* Destroy what we did in _smio_new */
_smio_destroy
(
&
self
);
err_self_alloc:
/* We can't output this message at a later time as we depend on the smio_service
* variable. This is not so bad, though, as most of the time we will not fail
* in halutils_concat_strings () function */
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_WARN
,
"[sm_io_bootstrap] SMIO Thread %s exiting ...
\n
"
,
smio_service
);
free
(
smio_service
);
err_smio_service_alloc:
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_ERR
,
"[sm_io_bootstrap] Thread exiting
\n
"
);
free
(
th_args
);
return
;
}
...
...
@@ -117,9 +119,6 @@ void smio_config_defaults (void *args, zctx_t *ctx, void *pipe)
(
void
)
ctx
;
th_config_args_t
*
th_args
=
(
th_config_args_t
*
)
args
;
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_TRACE
,
"[sm_io_bootstrap] Config thread starting ...
\n
"
);
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_TRACE
,
"[sm_io_bootstrap] Thread allocating resources ...
\n
"
);
/* We must export our service as the combination of the
* devio name (coming from devio parent) and our own name ID
* followed by an optional parameter coming from priv pointer */
...
...
@@ -127,12 +126,18 @@ void smio_config_defaults (void *args, zctx_t *ctx, void *pipe)
smio_mod_dispatch
[
th_args
->
smio_id
].
name
,
':'
);
ASSERT_ALLOC
(
smio_service
,
err_smio_service_alloc
);
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io_bootstrap] Config Thread %s "
"starting ...
\n
"
,
smio_service
);
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io_bootstrap] Config Thread %s "
"allocating resources ...
\n
"
,
smio_service
);
SMIO_DISPATCH_FUNC_WRAPPER_GEN
(
config_defaults
,
th_args
->
broker
,
smio_service
,
th_args
->
log_file
);
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io_bootstrap] Config Thread %s "
"exiting
\n
"
,
smio_service
);
free
(
smio_service
);
err_smio_service_alloc:
DBE_DEBUG
(
DBG_SM_IO
|
DBG_LVL_INFO
,
"[sm_io_bootstrap] Config thread exiting
\n
"
);
free
(
th_args
);
return
;
}
...
...
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