From: Mauro Carvalho Chehab Date: Wed, 23 Jan 2013 20:06:02 +0000 (-0300) Subject: [media] dvb_frontend: print a msg if a property doesn't exist X-Git-Url: http://git.lede-project.org./?a=commitdiff_plain;h=94a93e5f85040114d6a77c085457b3943b6da889;p=openwrt%2Fstaging%2Fblogic.git [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 --- 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, 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; }