浏览代码

Merge "video: driver: correct firmware debug log prints"

qctecmdr 4 年之前
父节点
当前提交
30f1a68d17
共有 1 个文件被更改,包括 3 次插入3 次删除
  1. 3 3
      driver/vidc/src/venus_hfi.c

+ 3 - 3
driver/vidc/src/venus_hfi.c

@@ -993,13 +993,13 @@ static void __flush_debug_queue(struct msm_vidc_core *core,
 				__func__, pkt->size);
 			continue;
 		}
-		if (pkt->size > packet_size) {
-			d_vpr_e("%s: pkt size[%d] > packet_size[%d]\n",
+		if (pkt->size >= packet_size) {
+			d_vpr_e("%s: pkt size[%d] >= packet_size[%d]\n",
 				__func__, pkt->size, packet_size);
 			continue;
 		}
 
-		packet[packet_size - 1] = '\0';
+		packet[pkt->size] = '\0';
 		/*
 		 * All fw messages starts with new line character. This
 		 * causes dprintk to print this message in two lines