Skip to content
Projects
Groups
Snippets
Help
Loading...
Sign in
Toggle navigation
P
PPSi
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
50
Issues
50
List
Board
Labels
Milestones
Merge Requests
1
Merge Requests
1
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
PPSi
Commits
5cba0e59
Commit
5cba0e59
authored
Jul 21, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
cleanup of state machine diagnostic messages
parent
076fa413
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
10 additions
and
9 deletions
+10
-9
diag-yes.c
diag/diag-yes.c
+4
-4
fsm-table.c
proto-ext-whiterabbit/fsm-table.c
+6
-5
No files found.
diag/diag-yes.c
View file @
5cba0e59
...
...
@@ -12,13 +12,13 @@ void pp_diag_fsm(struct pp_instance *ppi, char *name, int sequence, int plen)
{
if
(
sequence
==
STATE_ENTER
)
{
/* enter with or without a packet len */
pp_timed_printf
(
"fsm
for %p: ENTER %3i (%s)
, packet len %i
\n
"
,
ppi
,
ppi
->
state
,
name
,
plen
);
pp_timed_printf
(
"fsm
: ENTER %s
, packet len %i
\n
"
,
name
,
plen
);
return
;
}
/* leave has one \n more, so different states are separate */
pp_timed_printf
(
"fsm
for %p: LEAVE %3i (%s)
(next: %3i in %i ms)
\n\n
"
,
ppi
,
ppi
->
state
,
name
,
ppi
->
next_state
,
ppi
->
next_delay
);
pp_timed_printf
(
"fsm
: LEAVE %s
(next: %3i in %i ms)
\n\n
"
,
name
,
ppi
->
next_state
,
ppi
->
next_delay
);
}
void
pp_diag_trace
(
struct
pp_instance
*
ppi
,
const
char
*
f
,
int
line
)
...
...
proto-ext-whiterabbit/fsm-table.c
View file @
5cba0e59
...
...
@@ -21,13 +21,14 @@ struct pp_state_table_item pp_state_table[] __weak = {
{
PPS_PASSIVE
,
"passive"
,
pp_passive
,},
{
PPS_UNCALIBRATED
,
"uncalibrated"
,
pp_uncalibrated
,},
{
PPS_SLAVE
,
"slave"
,
pp_slave
,},
{
WRS_PRESENT
,
"wr-present"
,
wr_present
,},
{
WRS_M_LOCK
,
"wr-m-lock"
,
wr_m_lock
,},
{
WRS_S_LOCK
,
"wr-s-lock"
,
wr_s_lock
,},
{
WRS_LOCKED
,
"wr-locked"
,
wr_locked
,},
{
WRS_PRESENT
,
"
uncalibrated/
wr-present"
,
wr_present
,},
{
WRS_M_LOCK
,
"
master/
wr-m-lock"
,
wr_m_lock
,},
{
WRS_S_LOCK
,
"
uncalibrated/
wr-s-lock"
,
wr_s_lock
,},
{
WRS_LOCKED
,
"
uncalibrated/
wr-locked"
,
wr_locked
,},
{
WRS_CALIBRATION
,
"wr-calibration"
,
wr_calibration
,},
{
WRS_CALIBRATED
,
"wr-calibrated"
,
wr_calibrated
,},
{
WRS_RESP_CALIB_REQ
,
"wr-resp-calib-req"
,
wr_resp_calib_req
,},
{
WRS_RESP_CALIB_REQ
,
"wr-resp-calib-req"
,
wr_resp_calib_req
,},
{
WRS_WR_LINK_ON
,
"wr-link-on"
,
wr_link_on
,},
{
PPS_END_OF_TABLE
,}
};
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