Skip to content

Commit

Permalink
[media] dvb_frontend: print a msg if a property doesn't exist
Browse files Browse the repository at this point in the history
If userspace calls a property that doesn't exist, it currently
just returns -EINVAL. However, this is more likely a problem at
the userspace application, calling it with a non-existing property.
So, add a debug message to help tracking it.

Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
  • Loading branch information
Mauro Carvalho Chehab committed Jan 23, 2013
1 parent 25188bd commit 94a93e5
Showing 1 changed file with 3 additions and 0 deletions.
3 changes: 3 additions & 0 deletions drivers/media/dvb-core/dvb_frontend.c
Original file line number Diff line number Diff line change
Expand Up @@ -1479,6 +1479,9 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
tvp->u.st = c->block_count;
break;
default:
dev_dbg(fe->dvb->device,
"%s: FE property %d doesn't exist\n",
__func__, tvp->cmd);
return -EINVAL;
}

Expand Down

0 comments on commit 94a93e5

Please sign in to comment.