Skip to content

Commit ca9c5b6

Browse files
AmanJain27intel-lab-lkp
authored andcommitted
This patch replaces all the instances of dev_info with drm_info
When a driver has multiple instances it is necessary to differentiate between them in the logs. This was done with dev_info/warn/err since DRM_INFO/WARN/ERROR don't do this. We now have drm_info/warn/err for printing the relevant debug messages. Hence, this patch uses drm_* macros to achieve drm-formatted logging Signed-off-by: Aman Jain <ahjain2706@gmail.com>
1 parent a96bfed commit ca9c5b6

File tree

1 file changed

+3
-2
lines changed

1 file changed

+3
-2
lines changed

drivers/gpu/drm/radeon/radeon_drv.c

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -49,6 +49,7 @@
4949
#include <drm/drm_probe_helper.h>
5050
#include <drm/drm_vblank.h>
5151
#include <drm/radeon_drm.h>
52+
#include <drm/drm_print.h>
5253

5354
#include "radeon_drv.h"
5455
#include "radeon.h"
@@ -308,7 +309,7 @@ static int radeon_pci_probe(struct pci_dev *pdev,
308309
case CHIP_VERDE:
309310
case CHIP_OLAND:
310311
case CHIP_HAINAN:
311-
dev_info(&pdev->dev,
312+
drm_info(&pdev->dev,
312313
"SI support disabled by module param\n");
313314
return -ENODEV;
314315
}
@@ -320,7 +321,7 @@ static int radeon_pci_probe(struct pci_dev *pdev,
320321
case CHIP_HAWAII:
321322
case CHIP_KABINI:
322323
case CHIP_MULLINS:
323-
dev_info(&pdev->dev,
324+
drm_info(&pdev->dev,
324325
"CIK support disabled by module param\n");
325326
return -ENODEV;
326327
}

0 commit comments

Comments
 (0)