--- initial
+++ final
@@ -1,41 +1,41 @@
 bool resource_build_scaling_params(struct pipe_ctx *pipe_ctx) {
   const struct dc_plane_state *plane_state = pipe_ctx->plane_state;
   struct dc_crtc_timing *timing = &pipe_ctx->stream->timing;
   struct view recout_skip = {0};
   bool res = false;
   /* Important: scaling ratio calculation requires pixel format,
    * lb depth calculation requires recout and taps require scaling ratios.
    * Inits require viewport, taps, ratios and recout of split pipe
    */
   pipe_ctx->plane_res.scl_data.format = convert_pixel_format_to_dalsurface(pipe_ctx->plane_state->format);
   calculate_scaling_ratios(pipe_ctx);
   calculate_viewport(pipe_ctx);
   if (pipe_ctx->plane_res.scl_data.viewport.height < 16 || pipe_ctx->plane_res.scl_data.viewport.width < 16) return false;
   calculate_recout(pipe_ctx, &recout_skip);
   /**
    * Setting line buffer pixel depth to 24bpp yields banding
    * on certain displays, such as the Sharp 4k
    */
   pipe_ctx->plane_res.scl_data.lb_params.depth = LB_PIXEL_DEPTH_30BPP;
   pipe_ctx->plane_res.scl_data.recout.x += timing->h_border_left;
   pipe_ctx->plane_res.scl_data.recout.y += timing->v_border_top;
   pipe_ctx->plane_res.scl_data.h_active = timing->h_addressable + timing->h_border_left + timing->h_border_right;
   pipe_ctx->plane_res.scl_data.v_active = timing->v_addressable + timing->v_border_top + timing->v_border_bottom;
   /* Taps calculations */
   if (pipe_ctx->plane_res.xfm != NULL) res = pipe_ctx->plane_res.xfm->funcs->transform_get_optimal_number_of_taps(pipe_ctx->plane_res.xfm, &pipe_ctx->plane_res.scl_data, &plane_state->scaling_quality);
   if (pipe_ctx->plane_res.dpp != NULL) res = pipe_ctx->plane_res.dpp->funcs->dpp_get_optimal_number_of_taps(pipe_ctx->plane_res.dpp, &pipe_ctx->plane_res.scl_data, &plane_state->scaling_quality);
   if (!res) {
     /* Try 24 bpp linebuffer */
     pipe_ctx->plane_res.scl_data.lb_params.depth = LB_PIXEL_DEPTH_24BPP;
     if (pipe_ctx->plane_res.xfm != NULL) res = pipe_ctx->plane_res.xfm->funcs->transform_get_optimal_number_of_taps(pipe_ctx->plane_res.xfm, &pipe_ctx->plane_res.scl_data, &plane_state->scaling_quality);
     if (pipe_ctx->plane_res.dpp != NULL) res = pipe_ctx->plane_res.dpp->funcs->dpp_get_optimal_number_of_taps(pipe_ctx->plane_res.dpp, &pipe_ctx->plane_res.scl_data, &plane_state->scaling_quality);
   }
   if (res) /* May need to re-check lb size after this in some obscure scenario */
     calculate_inits_and_adj_vp(pipe_ctx, &recout_skip);
-  dm_logger_write(pipe_ctx->stream->ctx->logger, LOG_SCALER,
-                  "%s: Viewport:\nheight:%d width:%d x:%d "
-                  "y:%d\n dst_rect:\nheight:%d width:%d x:%d "
-                  "y:%d\n",
-                  __func__, pipe_ctx->plane_res.scl_data.viewport.height, pipe_ctx->plane_res.scl_data.viewport.width, pipe_ctx->plane_res.scl_data.viewport.x, pipe_ctx->plane_res.scl_data.viewport.y, plane_state->dst_rect.height, plane_state->dst_rect.width, plane_state->dst_rect.x, plane_state->dst_rect.y);
+  DC_LOG_SCALER(pipe_ctx->stream->ctx->logger,
+                "%s: Viewport:\nheight:%d width:%d x:%d "
+                "y:%d\n dst_rect:\nheight:%d width:%d x:%d "
+                "y:%d\n",
+                __func__, pipe_ctx->plane_res.scl_data.viewport.height, pipe_ctx->plane_res.scl_data.viewport.width, pipe_ctx->plane_res.scl_data.viewport.x, pipe_ctx->plane_res.scl_data.viewport.y, plane_state->dst_rect.height, plane_state->dst_rect.width, plane_state->dst_rect.x, plane_state->dst_rect.y);
   return res;
 }<sep>@@
expression e1;
@@

- dm_logger_write(e1,LOG_SCALER,
+ DC_LOG_SCALER(e1,
	...)