Re: [PATCH] drm/print: Handle NULL drm device in __drm_printk()

2023-11-17 Thread Jani Nikula
On Thu, 16 Nov 2023, Luben Tuikov wrote: > drm_{err,warn,...}() use __drm_printk() which takes a drm device pointer and > uses the embedded device pointer to print the device. This facility handles > NULL device pointer, but not NULL drm device pointer. This patch makes > __drm_printk() also

[PATCH] drm/print: Handle NULL drm device in __drm_printk()

2023-11-16 Thread Luben Tuikov
drm_{err,warn,...}() use __drm_printk() which takes a drm device pointer and uses the embedded device pointer to print the device. This facility handles NULL device pointer, but not NULL drm device pointer. This patch makes __drm_printk() also handle a NULL drm device pointer. The printed output