}
        }
 
-       DPU_DEBUG("plane%u: pnum:%d fmt: %4.4s w:%u fl:%u\n",
-                       plane->base.id, pdpu->pipe - SSPP_VIG0,
+       DPU_DEBUG_PLANE(pdpu, "pnum:%d fmt: %4.4s w:%u fl:%u\n",
+                       pdpu->pipe - SSPP_VIG0,
                        (char *)&fmt->base.pixel_format,
                        src_width, total_fl);
 
                        (fmt) ? fmt->base.pixel_format : 0,
                        pdpu->is_rt_pipe, total_fl, qos_lut, lut_usage);
 
-       DPU_DEBUG("plane%u: pnum:%d fmt: %4.4s rt:%d fl:%u lut:0x%llx\n",
-                       plane->base.id,
+       DPU_DEBUG_PLANE(pdpu, "pnum:%d fmt: %4.4s rt:%d fl:%u lut:0x%llx\n",
                        pdpu->pipe - SSPP_VIG0,
                        fmt ? (char *)&fmt->base.pixel_format : NULL,
                        pdpu->is_rt_pipe, total_fl, qos_lut);
                        pdpu->pipe_qos_cfg.danger_lut,
                        pdpu->pipe_qos_cfg.safe_lut);
 
-       DPU_DEBUG("plane%u: pnum:%d fmt: %4.4s mode:%d luts[0x%x, 0x%x]\n",
-               plane->base.id,
+       DPU_DEBUG_PLANE(pdpu, "pnum:%d fmt: %4.4s mode:%d luts[0x%x, 0x%x]\n",
                pdpu->pipe - SSPP_VIG0,
                fmt ? (char *)&fmt->base.pixel_format : NULL,
                fmt ? fmt->fetch_mode : -1,
                pdpu->pipe_qos_cfg.danger_safe_en = false;
        }
 
-       DPU_DEBUG("plane%u: pnum:%d ds:%d vb:%d pri[0x%x, 0x%x] is_rt:%d\n",
-               plane->base.id,
+       DPU_DEBUG_PLANE(pdpu, "pnum:%d ds:%d vb:%d pri[0x%x, 0x%x] is_rt:%d\n",
                pdpu->pipe - SSPP_VIG0,
                pdpu->pipe_qos_cfg.danger_safe_en,
                pdpu->pipe_qos_cfg.vblank_en,
        qos_params.num = pdpu->pipe_hw->idx - SSPP_VIG0;
        qos_params.is_rt = pdpu->is_rt_pipe;
 
-       DPU_DEBUG("plane%d pipe:%d vbif:%d xin:%d rt:%d, clk_ctrl:%d\n",
-                       plane->base.id, qos_params.num,
+       DPU_DEBUG_PLANE(pdpu, "pipe:%d vbif:%d xin:%d rt:%d, clk_ctrl:%d\n",
+                       qos_params.num,
                        qos_params.vbif_idx,
                        qos_params.xin_id, qos_params.is_rt,
                        qos_params.clk_ctrl);