video: msm: wfd: Make logs clearer
The normal log printed after a successful stream_off is too scary.
Amended the log to be more accurate.
Change-Id: I0ee6cc2b15bf0cdfb77026ea5c6adece32a91ad7
CRs-Fixed: 358796
Signed-off-by: Deva Ramasubramanian <dramasub@codeaurora.org>
diff --git a/drivers/media/video/msm/wfd/wfd-ioctl.c b/drivers/media/video/msm/wfd/wfd-ioctl.c
index 0a2b1c1..2242aa8 100644
--- a/drivers/media/video/msm/wfd/wfd-ioctl.c
+++ b/drivers/media/video/msm/wfd/wfd-ioctl.c
@@ -517,8 +517,10 @@
core, ioctl, MDP_DQ_BUFFER, (void *)&obuf_mdp);
if (rc) {
- WFD_MSG_ERR("Either streamoff called or"
- " MDP REPORTED ERROR\n");
+ if (rc != -ENOBUFS)
+ WFD_MSG_ERR("MDP reported err %d\n", rc);
+
+ WFD_MSG_ERR("Streamoff called\n");
break;
} else {
wfd_stats_update(&inst->stats,