aboutsummaryrefslogtreecommitdiffstats
path: root/src/vnet/ipsec/esp_format.c
diff options
context:
space:
mode:
Diffstat (limited to 'src/vnet/ipsec/esp_format.c')
-rw-r--r--src/vnet/ipsec/esp_format.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/ipsec/esp_format.c b/src/vnet/ipsec/esp_format.c
index 615d576043b..48b728dd196 100644
--- a/src/vnet/ipsec/esp_format.c
+++ b/src/vnet/ipsec/esp_format.c
@@ -23,10 +23,10 @@ u8 *
format_esp_header (u8 * s, va_list * args)
{
esp_header_t *esp = va_arg (*args, esp_header_t *);
+ u32 spi = clib_net_to_host_u32 (esp->spi);
- s = format (s, "ESP: spi %u, seq %u",
- clib_net_to_host_u32 (esp->spi),
- clib_net_to_host_u32 (esp->seq));
+ s = format (s, "ESP: spi %u (0x%08x), seq %u",
+ spi, spi, clib_net_to_host_u32 (esp->seq));
return s;
}