Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
Tammo Jan Dijkema
dt_ctrl
Commits
c9abd663
Commit
c9abd663
authored
Nov 24, 2014
by
Jeroen Vreeken
Browse files
Add debug code to command test block
parent
fe33bbf7
Changes
1
Hide whitespace changes
Inline
Side-by-side
controller/test/block_test_command.c
View file @
c9abd663
...
...
@@ -19,6 +19,7 @@
#include
<stdio.h>
#include
<stdlib.h>
#include
<string.h>
#include
<inttypes.h>
#include
<controller/controller_block.h>
#include
<controller/controller_command.h>
...
...
@@ -42,6 +43,8 @@ static void calculate_test_command(struct controller_block *block)
if
(
!
priv
->
start_sec
)
{
priv
->
start_sec
=
controller_time_seconds
;
priv
->
start_nsec
=
controller_time_nseconds
%
1000000000
;
log_send
(
LOG_T_DEBUG
,
"%s: Start time: %"
PRIu64
".%09"
PRIu32
,
block
->
name
,
priv
->
start_sec
,
priv
->
start_nsec
);
}
if
(
priv
->
cur
<
priv
->
entries_nr
)
{
...
...
@@ -56,6 +59,8 @@ static void calculate_test_command(struct controller_block *block)
entry
->
t
.
tv_nsec
+=
priv
->
start_nsec
;
}
log_send
(
LOG_T_DEBUG
,
"%s: Filter command %d and write to queue"
,
command
->
name
,
priv
->
cur
);
if
(
command
->
filter
)
r
=
command
->
filter
(
command
,
entry
);
if
(
r
==
0
)
...
...
Write
Preview
Supports
Markdown
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