--- initial
+++ final
@@ -1,47 +1,47 @@
 static enum dc_status allocate_mst_payload(struct pipe_ctx *pipe_ctx) {
   struct dc_stream_state *stream = pipe_ctx->stream;
   struct dc_link *link = stream->sink->link;
   struct link_encoder *link_encoder = link->link_enc;
   struct stream_encoder *stream_encoder = pipe_ctx->stream_res.stream_enc;
   struct dp_mst_stream_allocation_table proposed_table = {0};
   struct fixed31_32 avg_time_slots_per_mtp;
   struct fixed31_32 pbn;
   struct fixed31_32 pbn_per_slot;
   uint8_t i;
   /* enable_link_dp_mst already check link->enabled_stream_count
    * and stream is in link->stream[]. This is called during set mode,
    * stream_enc is available.
    */
   /* get calculate VC payload for stream: stream_alloc */
   if (dm_helpers_dp_mst_write_payload_allocation_table(stream->ctx, stream, &proposed_table, true)) {
     update_mst_stream_alloc_table(link, pipe_ctx->stream_res.stream_enc, &proposed_table);
   } else
-    dm_logger_write(link->ctx->logger, LOG_WARNING,
-                    "Failed to update"
-                    "MST allocation table for"
-                    "pipe idx:%d\n",
-                    pipe_ctx->pipe_idx);
-  dm_logger_write(link->ctx->logger, LOG_MST,
-                  "%s  "
-                  "stream_count: %d: \n ",
-                  __func__, link->mst_stream_alloc_table.stream_count);
+    DC_LOG_WARNING(link->ctx->logger,
+                   "Failed to update"
+                   "MST allocation table for"
+                   "pipe idx:%d\n",
+                   pipe_ctx->pipe_idx);
+  DC_LOG_MST(link->ctx->logger,
+             "%s  "
+             "stream_count: %d: \n ",
+             __func__, link->mst_stream_alloc_table.stream_count);
   for (i = 0; i < MAX_CONTROLLER_NUM; i++) {
-    dm_logger_write(link->ctx->logger, LOG_MST,
-                    "stream_enc[%d]: 0x%x      "
-                    "stream[%d].vcp_id: %d      "
-                    "stream[%d].slot_count: %d\n",
-                    i, link->mst_stream_alloc_table.stream_allocations[i].stream_enc, i, link->mst_stream_alloc_table.stream_allocations[i].vcp_id, i, link->mst_stream_alloc_table.stream_allocations[i].slot_count);
+    DC_LOG_MST(link->ctx->logger,
+               "stream_enc[%d]: 0x%x      "
+               "stream[%d].vcp_id: %d      "
+               "stream[%d].slot_count: %d\n",
+               i, link->mst_stream_alloc_table.stream_allocations[i].stream_enc, i, link->mst_stream_alloc_table.stream_allocations[i].vcp_id, i, link->mst_stream_alloc_table.stream_allocations[i].slot_count);
   }
   ASSERT(proposed_table.stream_count > 0);
   /* program DP source TX for payload */
   link_encoder->funcs->update_mst_stream_allocation_table(link_encoder, &link->mst_stream_alloc_table);
   /* send down message */
   dm_helpers_dp_mst_poll_for_allocation_change_trigger(stream->ctx, stream);
   dm_helpers_dp_mst_send_payload_allocation(stream->ctx, stream, true);
   /* slot X.Y for only current stream */
   pbn_per_slot = get_pbn_per_slot(stream);
   pbn = get_pbn_from_timing(pipe_ctx);
   avg_time_slots_per_mtp = dal_fixed31_32_div(pbn, pbn_per_slot);
   stream_encoder->funcs->set_mst_bandwidth(stream_encoder, avg_time_slots_per_mtp);
   return DC_OK;
 }<sep>@@
expression e1;
@@

- dm_logger_write(e1,LOG_MST,
+ DC_LOG_MST(e1,
	...)

@@
expression e1;
@@

- dm_logger_write(e1,LOG_WARNING,
+ DC_LOG_WARNING(e1,
	...)