aboutsummaryrefslogtreecommitdiffstats
path: root/drivers/media/dvb-core
diff options
context:
space:
mode:
authorMauro Carvalho Chehab <mchehab@redhat.com>2013-01-23 15:06:02 -0500
committerMauro Carvalho Chehab <mchehab@redhat.com>2013-01-23 16:10:57 -0500
commit94a93e5f85040114d6a77c085457b3943b6da889 (patch)
tree9e47a785a5d048a3b65751cf07f84814b480bdea /drivers/media/dvb-core
parent25188bd0e66f244d8111c4459f2c2f262a13d272 (diff)
[media] dvb_frontend: print a msg if a property doesn't exist
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>
Diffstat (limited to 'drivers/media/dvb-core')
-rw-r--r--drivers/media/dvb-core/dvb_frontend.c3
1 files changed, 3 insertions, 0 deletions
diff --git a/drivers/media/dvb-core/dvb_frontend.c b/drivers/media/dvb-core/dvb_frontend.c
index 0c6f936ffac8..b059abf572d6 100644
--- a/drivers/media/dvb-core/dvb_frontend.c
+++ b/drivers/media/dvb-core/dvb_frontend.c
@@ -1479,6 +1479,9 @@ static int dtv_property_process_get(struct dvb_frontend *fe,
1479 tvp->u.st = c->block_count; 1479 tvp->u.st = c->block_count;
1480 break; 1480 break;
1481 default: 1481 default:
1482 dev_dbg(fe->dvb->device,
1483 "%s: FE property %d doesn't exist\n",
1484 __func__, tvp->cmd);
1482 return -EINVAL; 1485 return -EINVAL;
1483 } 1486 }
1484 1487