diff options
author | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-14 05:30:54 +0000 |
---|---|---|
committer | Jonathan Gray <jsg@cvs.openbsd.org> | 2022-02-14 05:30:54 +0000 |
commit | c8f812b646f37ddfb9b7e4b8389283f3320a0329 (patch) | |
tree | c4d8f494d1625aaf7aa9df5d54a56c37fc306f24 /sys | |
parent | fc07ba275e7f2c843a6207e5483caaee3b3e185d (diff) |
reprint device name in attach error paths if needed
Diffstat (limited to 'sys')
-rw-r--r-- | sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c | 8 | ||||
-rw-r--r-- | sys/dev/pci/drm/radeon/radeon_kms.c | 2 |
2 files changed, 6 insertions, 4 deletions
diff --git a/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c b/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c index 27db010dc73..37245c5c442 100644 --- a/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c +++ b/sys/dev/pci/drm/amd/amdgpu/amdgpu_kms.c @@ -1891,13 +1891,15 @@ amdgpu_attach(struct device *parent, struct device *self, void *aux) drm_sched_fence_slab_init(); if (amdgpu_sync_init()) { - printf(": amdgpu_sync_init failed\n"); + printf("%s: amdgpu_sync_init failed\n", + adev->self.dv_xname); return; } if (amdgpu_fence_slab_init()) { amdgpu_sync_fini(); - printf(": amdgpu_fence_slab_init failed\n"); + printf("%s: amdgpu_fence_slab_init failed\n", + adev->self.dv_xname); return; } @@ -1910,7 +1912,7 @@ amdgpu_attach(struct device *parent, struct device *self, void *aux) if (pci_intr_map_msi(pa, &adev->intrh) == 0) adev->irq.msi_enabled = true; else if (pci_intr_map(pa, &adev->intrh) != 0) { - printf(": couldn't map interrupt\n"); + printf("%s: couldn't map interrupt\n", adev->self.dv_xname); return; } printf("%s: %s\n", adev->self.dv_xname, diff --git a/sys/dev/pci/drm/radeon/radeon_kms.c b/sys/dev/pci/drm/radeon/radeon_kms.c index 24c87b265d9..34c7a47da35 100644 --- a/sys/dev/pci/drm/radeon/radeon_kms.c +++ b/sys/dev/pci/drm/radeon/radeon_kms.c @@ -670,7 +670,7 @@ radeondrm_attach_kms(struct device *parent, struct device *self, void *aux) if (pci_intr_map_msi(pa, &rdev->intrh) == 0) rdev->msi_enabled = 1; else if (pci_intr_map(pa, &rdev->intrh) != 0) { - printf(": couldn't map interrupt\n"); + printf("%s: couldn't map interrupt\n", rdev->self.dv_xname); return; } printf("%s: %s\n", rdev->self.dv_xname, |