Better indent
This commit is contained in:
parent
6034def186
commit
fd241b08f0
1 changed files with 7 additions and 7 deletions
14
src/packet.c
14
src/packet.c
|
@ -139,11 +139,11 @@ void dump_buffer_packet(struct buffer_packet* bp) {
|
|||
}
|
||||
|
||||
void dump_abstract_packet(union abstract_packet* ap) {
|
||||
printf("<Abstract Packet>\n");
|
||||
printf(" size=%d, cmd=%d\n", ap->fmt.headers.size, ap->fmt.headers.cmd);
|
||||
printf(" <Abstract Packet>\n");
|
||||
printf(" size=%d, cmd=%d\n", ap->fmt.headers.size, ap->fmt.headers.cmd);
|
||||
switch (ap->fmt.headers.cmd) {
|
||||
case CMD_HEALTH:
|
||||
printf(" <Health>id=%d, deltat=%d, prevlink=%d, min_blocked_pkt=%d, bitfield=%08x</Health>\n",
|
||||
printf(" <Health>id=%d, deltat=%d, prevlink=%d, min_blocked_pkt=%d, bitfield=%08x</Health>\n",
|
||||
ap->fmt.content.health.id,
|
||||
ap->fmt.content.health.deltat,
|
||||
ap->fmt.content.health.prevlink,
|
||||
|
@ -151,17 +151,17 @@ void dump_abstract_packet(union abstract_packet* ap) {
|
|||
ap->fmt.content.health.bitfield);
|
||||
break;
|
||||
case CMD_CLEAR:
|
||||
printf(" <Clear>id=%d, port=%d</Clear>\n",
|
||||
printf(" <Clear>id=%d, port=%d</Clear>\n",
|
||||
ap->fmt.content.clear.id,
|
||||
ap->fmt.content.clear.port);
|
||||
break;
|
||||
case CMD_XOR:
|
||||
printf(" <Xor>Unimplemented</Xor>\n");
|
||||
printf(" <Xor>Unimplemented</Xor>\n");
|
||||
break;
|
||||
default:
|
||||
printf(" <Unknown/>");
|
||||
printf(" <Unknown/>\n");
|
||||
break;
|
||||
|
||||
}
|
||||
printf("</Abstract Packet>");
|
||||
printf(" </Abstract Packet>\n");
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue