Fixup the amdgpu_bus_id() string format

The func is a u, instead of a signed int.

v2: Drop the precision - s/1u/u/ (Michel)

Signed-off-by: Emil Velikov <emil.velikov@collabora.com>
Reviewed-by: Michel Dänzer <michel.daenzer@amd.com>
Acked-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:
Emil Velikov
2019-07-16 23:37:05 +01:00
committed by Emil Velikov
parent abbe23fae7
commit 16ae0d06c6

View File

@@ -81,7 +81,7 @@ static char *amdgpu_bus_id(ScrnInfoPtr pScrn, struct pci_device *dev)
{
char *busid;
XNFasprintf(&busid, "pci:%04x:%02x:%02x.%d",
XNFasprintf(&busid, "pci:%04x:%02x:%02x.%u",
dev->domain, dev->bus, dev->dev, dev->func);
if (!busid)