Commit 307eae93 authored by Oded Gabbay's avatar Oded Gabbay
Browse files

habanalabs: show correct id in error print



If the initialization of a device failed, the driver prints an error
message with the id of the device. The device index on the file system is
that id divided by 2.

Signed-off-by: default avatarOded Gabbay <oded.gabbay@gmail.com>
Reviewed-by: default avatarOmer Shpigelman <oshpigelman@habana.ai>
parent 4c172bbf
Loading
Loading
Loading
Loading
+2 −2
Original line number Diff line number Diff line
@@ -1292,10 +1292,10 @@ out_disabled:
	if (hdev->pdev)
		dev_err(&hdev->pdev->dev,
			"Failed to initialize hl%d. Device is NOT usable !\n",
			hdev->id);
			hdev->id / 2);
	else
		pr_err("Failed to initialize hl%d. Device is NOT usable !\n",
			hdev->id);
			hdev->id / 2);

	return rc;
}