From: Yonglong Liu Date: Tue, 21 Jan 2020 08:42:10 +0000 (+0800) Subject: net: hns3: rewrite a log in hclge_put_vector() X-Git-Tag: Ubuntu-5.4.0-17.21~510 X-Git-Url: https://git.proxmox.com/?a=commitdiff_plain;h=d0f7b4cf8fbf4b2cc94e0cdd1cc2b373e234c5aa;p=mirror_ubuntu-focal-kernel.git net: hns3: rewrite a log in hclge_put_vector() BugLink: https://launchpad.net/bugs/1861972 When gets vector fails, hclge_put_vector() should print out the vector instead of vector_id in the log and return the wrong vector_id to its caller. Signed-off-by: Yonglong Liu Signed-off-by: Huazhong Tan Signed-off-by: David S. Miller (cherry picked from commit 6f8e330d27464a7ff436f2944b84d640e42e5e6e) Signed-off-by: Ike Panhc Signed-off-by: Seth Forshee --- diff --git a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c index 4304a36154e2..4cc5c1e6eb42 100644 --- a/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c +++ b/drivers/net/ethernet/hisilicon/hns3/hns3pf/hclge_main.c @@ -4079,7 +4079,7 @@ static int hclge_put_vector(struct hnae3_handle *handle, int vector) vector_id = hclge_get_vector_index(hdev, vector); if (vector_id < 0) { dev_err(&hdev->pdev->dev, - "Get vector index fail. vector_id =%d\n", vector_id); + "Get vector index fail. vector = %d\n", vector); return vector_id; }