Skip to content
GitLab
Menu
Projects
Groups
Snippets
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
emulab
emulab-devel
Commits
409607bb
Commit
409607bb
authored
Jun 07, 2005
by
Timothy Stack
Browse files
Fix debug printf for create/update-obstacle message.
parent
990fc07f
Changes
1
Hide whitespace changes
Inline
Side-by-side
robots/mtp/mtp.c
View file @
409607bb
...
...
@@ -1354,14 +1354,23 @@ void mtp_print_packet(FILE *file, struct mtp_packet *mp)
break
;
case
MTP_CREATE_OBSTACLE
:
oc
=
&
mp
->
data
.
mtp_payload_u
.
create_obstacle
.
config
;
fprintf
(
file
,
" opcode:
\t
create-obstacle
\n
"
" robot-id: %d
\n
"
" id: %d
\n
"
" bounds: %.2f %.2f %.2f %.2f
\n
"
,
mp
->
data
.
mtp_payload_u
.
create_obstacle
.
robot_id
,
oc
->
id
,
oc
->
xmin
,
oc
->
ymin
,
oc
->
xmax
,
oc
->
ymax
);
break
;
case
MTP_UPDATE_OBSTACLE
:
oc
=
&
mp
->
data
.
mtp_payload_u
.
update_obstacle
;
fprintf
(
file
,
" opcode:
\t
%s
\n
"
" opcode:
\t
update-obstacle
\n
"
" id: %d
\n
"
" bounds: %.2f %.2f %.2f %.2f
\n
"
,
mp
->
data
.
opcode
==
MTP_CREATE_OBSTACLE
?
"create-obstacle"
:
"update-obstacle"
,
oc
->
id
,
oc
->
xmin
,
oc
->
ymin
,
oc
->
xmax
,
oc
->
ymax
);
break
;
...
...
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