msm: camera: Print out event type when timeout happens

Signed-off-by: Mekala Natarajan <mekalan@codeaurora.org>
This commit is contained in:
Mekala Natarajan
2013-11-13 12:26:08 -08:00
parent 8aa1d84691
commit 8533ea5918

View File

@@ -654,7 +654,8 @@ int msm_post_event(struct v4l2_event *event, int timeout)
msecs_to_jiffies(timeout)); msecs_to_jiffies(timeout));
if (list_empty_careful(&cmd_ack->command_q.list)) { if (list_empty_careful(&cmd_ack->command_q.list)) {
if (!rc) { if (!rc) {
pr_err("%s: Timed out\n", __func__); pr_err("%s: Timed out for event type %d\n",
__func__, event->type);
rc = -ETIMEDOUT; rc = -ETIMEDOUT;
} }
if (rc < 0) { if (rc < 0) {