summaryrefslogtreecommitdiffstats
path: root/src/vnet/devices/virtio/device.c
diff options
context:
space:
mode:
authorMohsin Kazmi <sykazmi@cisco.com>2020-09-15 16:41:44 +0000
committerBeno�t Ganne <bganne@cisco.com>2020-09-16 12:55:25 +0000
commitb3a8f4e350eb1a5f08d5af4fd3a64da377ee5a5d (patch)
treedf0a28d45afd5c7a171914343b102d9172064a50 /src/vnet/devices/virtio/device.c
parentf916414b383afd37ec78509ee613df8878160406 (diff)
misc: fix the formatting style
Type: style Signed-off-by: Mohsin Kazmi <sykazmi@cisco.com> Change-Id: Id86e16677564669b0295bbb9fc1303fe39a21b6f
Diffstat (limited to 'src/vnet/devices/virtio/device.c')
-rw-r--r--src/vnet/devices/virtio/device.c14
1 files changed, 8 insertions, 6 deletions
diff --git a/src/vnet/devices/virtio/device.c b/src/vnet/devices/virtio/device.c
index 56c0a98491e..1f1abfded77 100644
--- a/src/vnet/devices/virtio/device.c
+++ b/src/vnet/devices/virtio/device.c
@@ -86,14 +86,16 @@ format_virtio_tx_trace (u8 * s, va_list * va)
virtio_tx_trace_t *t = va_arg (*va, virtio_tx_trace_t *);
u32 indent = format_get_indent (s);
- s = format (s, "%U ", format_generic_header_offset, &t->gho);
- s = format (s, "%Ubuffer 0x%x: %U",
+ s = format (s, "%Ubuffer 0x%x: %U\n",
format_white_space, indent,
t->buffer_index, format_vnet_buffer, &t->buffer);
-
- s = format (s, "\n%U%U", format_white_space, indent,
- format_ethernet_header_with_length, t->buffer.pre_data,
- sizeof (t->buffer.pre_data));
+ s =
+ format (s, "%U%U\n", format_white_space, indent,
+ format_generic_header_offset, &t->gho);
+ s =
+ format (s, "%U%U", format_white_space, indent,
+ format_ethernet_header_with_length, t->buffer.pre_data,
+ sizeof (t->buffer.pre_data));
return s;
}