Skip to content

Commit

Permalink
examples/kni: add missing trailing newline in log
Browse files Browse the repository at this point in the history
[ upstream commit 2e7997c ]

Add CR character at print link state information.

Fixes: db4e813 ("examples: use new link status print format")

Signed-off-by: Tianli Lai <laitianli@tom.com>
Reviewed-by: Ferruh Yigit <ferruh.yigit@intel.com>
  • Loading branch information
laitianli authored and bluca committed Mar 9, 2022
1 parent 66efb33 commit 6a5ad6b
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion examples/kni/main.c
Expand Up @@ -720,7 +720,7 @@ log_link_state(struct rte_kni *kni, int prev, struct rte_eth_link *link)

rte_eth_link_to_str(link_status_text, sizeof(link_status_text), link);
if (prev != link->link_status)
RTE_LOG(INFO, APP, "%s NIC %s",
RTE_LOG(INFO, APP, "%s NIC %s\n",
rte_kni_get_name(kni),
link_status_text);
}
Expand Down

0 comments on commit 6a5ad6b

Please sign in to comment.