summaryrefslogtreecommitdiffstats
path: root/src/vnet/session
diff options
context:
space:
mode:
authorFlorin Coras <fcoras@cisco.com>2022-01-10 13:44:45 -0800
committerFlorin Coras <florin.coras@gmail.com>2022-01-10 21:36:39 +0000
commit36eaaf36250ae2c4c26ec914eb20229aec8ca1c6 (patch)
treea5555ceb50805494d1c983ac9b79bfa8f647430f /src/vnet/session
parentc48ec5d568146389f3c539cea003c242f85e5239 (diff)
session: fix segment manager format coverity warning
Type: fix Signed-off-by: Florin Coras <fcoras@cisco.com> Change-Id: Ia32536a76aa3f92f80ee2cd027a9a010c19b861a
Diffstat (limited to 'src/vnet/session')
-rw-r--r--src/vnet/session/segment_manager.c6
1 files changed, 3 insertions, 3 deletions
diff --git a/src/vnet/session/segment_manager.c b/src/vnet/session/segment_manager.c
index 3b05cd024de..e72e833f53c 100644
--- a/src/vnet/session/segment_manager.c
+++ b/src/vnet/session/segment_manager.c
@@ -1032,9 +1032,9 @@ format_segment_manager (u8 *s, va_list *args)
s = format (s,
"[%u] %v app-wrk: %u segs: %u max-fifo-sz: %U "
"wmarks: %u %u %s flags: 0x%x",
- segment_manager_index (sm), app->name, sm->app_wrk_index,
- pool_elts (sm->segments), format_memory_size, max_fifo_size,
- sm->high_watermark, sm->low_watermark,
+ segment_manager_index (sm), app ? app->name : 0,
+ sm->app_wrk_index, pool_elts (sm->segments), format_memory_size,
+ max_fifo_size, sm->high_watermark, sm->low_watermark,
custom_logic ? "custom-tuning" : "no-tuning", sm->flags);
if (!verbose || !pool_elts (sm->segments))