[PATCH] examples/kni: add CR character at print log

Thomas Monjalon thomas at monjalon.net
Tue Mar 8 14:29:29 CET 2022


07/03/2022 15:52, Ferruh Yigit:
> On 3/7/2022 9:05 AM, Tianli Lai wrote:
> > add CR character at print link state information
> > 
> > Signed-off-by: Tianli Lai <laitianli at tom.com>
> > ---
> >   examples/kni/main.c | 2 +-
> >   1 file changed, 1 insertion(+), 1 deletion(-)
> > 
> > diff --git a/examples/kni/main.c b/examples/kni/main.c
> > index f5b20a7b62..e99ef5c38a 100644
> > --- a/examples/kni/main.c
> > +++ b/examples/kni/main.c
> > @@ -719,7 +719,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);
> >   }
> 
> Fixes: db4e81351fb8 ("examples: use new link status print format")
> Cc: stable at dpdk.org
> 
> Reviewed-by: Ferruh Yigit <ferruh.yigit at intel.com>

Applied with title "examples/kni: add missing trailing newline in log"





More information about the stable mailing list