Эх сурвалжийг харах

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

qctecmdr 4 жил өмнө
parent
commit
30f1a68d17

+ 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);
 				__func__, pkt->size);
 			continue;
 			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);
 				__func__, pkt->size, packet_size);
 			continue;
 			continue;
 		}
 		}
 
 
-		packet[packet_size - 1] = '\0';
+		packet[pkt->size] = '\0';
 		/*
 		/*
 		 * All fw messages starts with new line character. This
 		 * All fw messages starts with new line character. This
 		 * causes dprintk to print this message in two lines
 		 * causes dprintk to print this message in two lines