[dpdk-dev] [PATCH v3 03/17] net/ionic: add log

Ferruh Yigit ferruh.yigit at intel.com
Tue Dec 10 19:49:44 CET 2019


On 12/9/2019 9:46 PM, Alfredo Cardigliano wrote:
> Add debug options to the config file.
> Define macros used for logs and make use of config file options
> to enable them.
> 
> Signed-off-by: Alfredo Cardigliano <cardigliano at ntop.org>
> Reviewed-by: Shannon Nelson <snelson at pensando.io>

<...>

> @@ -0,0 +1,15 @@
> +/* SPDX-License-Identifier: (BSD-3-Clause OR GPL-2.0)
> + * Copyright(c) 2018-2019 Pensando Systems, Inc. All rights reserved.
> + */
> +
> +#include "ionic_logs.h"
> +
> +int ionic_logtype_driver;
> +
> +RTE_INIT(ionic_init_log)
> +{
> +	ionic_logtype_driver = rte_log_register("pmd.net.ionic.driver");

Up to you, but you can go with simpler "pmd.net.ionic", not sure what additional
value the last 'driver' bit is adding.




More information about the dev mailing list