]> www.infradead.org Git - users/jedix/linux-maple.git/commit
drm: add drm_file_err function to add process info
authorSunil Khatri <sunil.khatri@amd.com>
Wed, 9 Apr 2025 11:39:23 +0000 (17:09 +0530)
committerAlex Deucher <alexander.deucher@amd.com>
Mon, 5 May 2025 17:29:09 +0000 (13:29 -0400)
commitfc3817fb499605a8e9cfebdc2615da0ec114b281
tree860bc51e58d9a32425e7b2f55ea2f27c588f8c95
parentc38de9db7493b866731b0ce3f76fcd4c2c63a9c2
drm: add drm_file_err function to add process info

Add a drm helper function which appends the process information for
the drm_file over drm_err formatted output.

v5: change to macro from function (Christian Koenig)
    add helper functions for lock/unlock (Christian Koenig)

v6: remove __maybe_unused and make function inline (Jani Nikula)
    remove drm_print.h

v7: Use va_format and %pV to concatenate fmt and vargs (Jani Nikula)

v8: Code formatting and typos (Ursulin tvrtko)

Signed-off-by: Sunil Khatri <sunil.khatri@amd.com>
Reviewed-by: Tvrtko Ursulin <tvrtko.ursulin@igalia.com>
Reviewed-by: Christian König <christian.koenig@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
drivers/gpu/drm/drm_file.c
include/drm/drm_file.h