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
d0fc17b6
Commit
d0fc17b6
authored
Jul 23, 2012
by
Aurelio Colosimo
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
trivial: fix diagnositic output
parent
93f10e0b
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
9 additions
and
7 deletions
+9
-7
diag-yes.c
diag/diag-yes.c
+2
-1
fsm.c
fsm.c
+7
-6
No files found.
diag/diag-yes.c
View file @
d0fc17b6
...
...
@@ -63,5 +63,6 @@ void pp_timed_printf(char *fmt, ...)
va_start
(
args
,
fmt
);
pp_vsprintf
(
buf
,
fmt
,
args
);
va_end
(
args
);
pp_printf
(
"%09d.%03d %s"
,
t
.
seconds
,
t
.
nanoseconds
/
1000000
,
buf
);
pp_printf
(
"%09d.%03d %s"
,
(
int
)
t
.
seconds
,
(
int
)
t
.
nanoseconds
/
1000000
,
buf
);
}
fsm.c
View file @
d0fc17b6
...
...
@@ -17,12 +17,13 @@ int pp_state_machine(struct pp_instance *ppi, uint8_t *packet, int plen)
{
struct
pp_state_table_item
*
ip
;
int
state
,
err
;
#ifdef PPSI_MASTER__
if
((
plen
>
0
))
pp_printf
(
"RECV %02d %d.%d %s
\n
"
,
plen
,
ppi
->
last_rcv_time
.
seconds
,
ppi
->
last_rcv_time
.
nanoseconds
,
pp_msg_names
[
packet
[
0
]
&
0x0f
]);
#endif
if
(
plen
>
0
)
PP_PRINTF
(
"RECV %02d %d.%d %s
\n
"
,
plen
,
(
int
)
ppi
->
last_rcv_time
.
seconds
,
(
int
)
ppi
->
last_rcv_time
.
nanoseconds
,
pp_msg_names
[
packet
[
0
]
&
0x0f
]);
if
(
packet
)
msg_unpack_header
(
ppi
,
packet
);
...
...
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