linux/drivers/gpu/drm/amd/display/dc/basics
Michel Dänzer 38636603d8 drm/amd/display: Don't call dm_log_to_buffer directly in dc_conn_log
dm_log_to_buffer logs unconditionally, so calling it directly resulted
in the main message being logged even when the event type isn't enabled
in the event mask.

To fix this, use the new dm_logger_append_va API.

Fixes spurious messages like

 [drm] {1920x1200, 2080x1235@154000Khz}

in dmesg when a mode is set.

v2:
* Use new dm_logger_append_va API, fixes incorrect va_list usage in v1
* Just use and decrease entry.buf_offset to get rid of the trailing
  newline

Reviewed-by: Alex Deucher <alexander.deucher@amd.com>
Signed-off-by: Michel Dänzer <michel.daenzer@amd.com>
Signed-off-by: Alex Deucher <alexander.deucher@amd.com>
2017-12-06 12:48:28 -05:00
..
Makefile amdgpu/dc: inline all the signal_types code. 2017-09-29 13:03:56 -04:00
conversion.c amdgpu/dc: use kernel ilog2 for log_2. 2017-10-06 13:00:27 -04:00
conversion.h amdgpu/dc: use kernel ilog2 for log_2. 2017-10-06 13:00:27 -04:00
fixpt31_32.c amdgpu/dc: inline fixed31_32 div_int 2017-09-29 13:03:49 -04:00
fixpt32_32.c amdgpu/dc: inline some of the fixed 32_32 fns 2017-09-29 13:03:01 -04:00
grph_object_id.c amdgpu/dc: inline dal grph object id functions. 2017-10-06 12:58:50 -04:00
log_helpers.c drm/amd/display: Don't call dm_log_to_buffer directly in dc_conn_log 2017-12-06 12:48:28 -05:00
logger.c drm/amd/display: Add dm_logger_append_va API 2017-12-06 12:48:27 -05:00
logger.h drm/amd/display: add performance trace macro to dc 2017-10-21 16:50:00 -04:00
vector.c amdgpu/dc: kfree already checks for NULL. 2017-10-06 13:05:03 -04:00