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
b318d922
Commit
b318d922
authored
Jul 16, 2014
by
Lucas Russo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
hal/dev_io/dev_io_core.c: print nicer init messages
parent
20e8fa20
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
9 additions
and
4 deletions
+9
-4
dev_io_core.c
hal/dev_io/dev_io_core.c
+9
-4
No files found.
hal/dev_io/dev_io_core.c
View file @
b318d922
...
...
@@ -15,6 +15,7 @@
#include "smio_thsafe_zmq_server.h"
#include "sm_io_thsafe_codes.h"
#include "sm_io_bootstrap.h"
#include "ll_io_utils.h"
/* Undef ASSERT_ALLOC to avoid conflicting with other ASSERT_ALLOC */
#ifdef ASSERT_TEST
...
...
@@ -60,10 +61,14 @@ devio_t * devio_new (char *name, char *endpoint_dev,
/* Set logfile available for all dev_mngr and dev_io instances.
* We accept NULL as a parameter, meaning to suppress all messages */
int
log_err
=
debug_set_log
(
log_file_name
);
DBE_DEBUG
(
DBG_DEV_MNGR
|
DBG_LVL_INFO
,
"[dev_io_core] Log registered to %s
\n
"
,
(
log_err
==
-
1
)
?
"NULL"
:
log_file_name
);
debug_set_log
(
log_file_name
);
char
*
dev_type_c
=
llio_type_to_str
(
type
);
DBE_DEBUG
(
DBG_DEV_MNGR
|
DBG_LVL_INFO
,
"[dev_io_core] Spawing DEVIO worker"
" for a %s device
\n\t
located on %s, broker address %s, with logfile on %s"
" ...
\n
"
,
dev_type_c
,
endpoint_dev
,
endpoint_broker
,
(
log_file_name
==
NULL
)
?
"NULL"
:
log_file_name
);
free
(
dev_type_c
);
devio_t
*
self
=
(
devio_t
*
)
zmalloc
(
sizeof
*
self
);
ASSERT_ALLOC
(
self
,
err_self_alloc
);
...
...
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