[dpdk-dev] [PATCH 05/12] bus/vdev: change log type from EAL to PMD
Tan, Jianfeng
jianfeng.tan at intel.com
Wed Aug 30 00:27:23 CEST 2017
On 8/29/2017 5:54 AM, Gaëtan Rivet wrote:
> On Fri, Aug 25, 2017 at 09:40:45AM +0000, Jianfeng Tan wrote:
>> Signed-off-by: Jianfeng Tan <jianfeng.tan at intel.com>
>> ---
>> drivers/bus/vdev/vdev.c | 10 ++++++----
>> drivers/bus/vdev/vdev_logs.h | 40 ++++++++++++++++++++++++++++++++++++++++
>> 2 files changed, 46 insertions(+), 4 deletions(-)
>> create mode 100644 drivers/bus/vdev/vdev_logs.h
[...]
>> +
>> +#ifndef _VDEV_LOGS_H_
>> +#define _VDEV_LOGS_H_
>> +
>> +#define VDEV_LOG(level, fmt, args...) \
>> + RTE_LOG(level, PMD, "%s(): " fmt "\n", __func__, ##args)
> With the multiplication of bus implementations, wouldn't it be interesting
> to introduce an RTE_LOGTYPE_BUS?
Interesting! Let me try to do that in the next version.
Thanks,
Jianfeng
>> +
>> +#endif /* _VDEV_LOGS_H_ */
>> --
>> 2.7.4
>>
More information about the dev
mailing list