drm/ttm: make ttm_mem_type_manager_func debug more useful
Provide the drm printer directly instead of just the callback. Signed-off-by: Christian König <christian.koenig@amd.com> Reviewed-by: Alex Deucher <alexander.deucher@amd.com> Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
This commit is contained in:

committed by
Alex Deucher

parent
aca8171812
commit
373533f80b
@@ -229,13 +229,14 @@ struct ttm_mem_type_manager_func {
|
||||
* struct ttm_mem_type_manager member debug
|
||||
*
|
||||
* @man: Pointer to a memory type manager.
|
||||
* @prefix: Prefix to be used in printout to identify the caller.
|
||||
* @printer: Prefix to be used in printout to identify the caller.
|
||||
*
|
||||
* This function is called to print out the state of the memory
|
||||
* type manager to aid debugging of out-of-memory conditions.
|
||||
* It may not be called from within atomic context.
|
||||
*/
|
||||
void (*debug)(struct ttm_mem_type_manager *man, const char *prefix);
|
||||
void (*debug)(struct ttm_mem_type_manager *man,
|
||||
struct drm_printer *printer);
|
||||
};
|
||||
|
||||
/**
|
||||
|
Reference in New Issue
Block a user