diff options
author | Emil Velikov <emil.velikov@collabora.com> | 2019-07-16 23:37:05 +0100 |
---|---|---|
committer | Emil Velikov <emil.l.velikov@gmail.com> | 2020-03-16 14:25:10 +0000 |
commit | 16ae0d06c6711a36c814618e06bf2be53079af81 (patch) | |
tree | 3ef875a5c40891ffb6242151720823386d259369 | |
parent | abbe23fae70b7f3bc7033d7603d331570677d431 (diff) |
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>
-rw-r--r-- | src/amdgpu_probe.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/src/amdgpu_probe.c b/src/amdgpu_probe.c index 1db78a4..229202b 100644 --- a/src/amdgpu_probe.c +++ b/src/amdgpu_probe.c @@ -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) |