[dpdk-dev] [PATCH v5] ethdev: add sanity checks in control APIs

Stephen Hemminger stephen at networkplumber.org
Fri Apr 16 18:25:15 CEST 2021


On Thu, 15 Apr 2021 19:09:19 +0800
"Min Hu (Connor)" <humin29 at huawei.com> wrote:

> +		RTE_ETHDEV_LOG(ERR, "Failed to get owner id by NULL\n");

This message is awkward wording.

It would be good time to fix something that has causes problems.
Redefine RTE_ETHDEV_LOG to include the function name.
There are several places where same log message can come from different
ethdev functions.

Then change the error you added to:
	RTE_ETHDEV_LOG(ERR, "NULL owner id");

Which would result in:
	eth_dev_owner_set: NULL owner id






More information about the dev mailing list