[media] dvb_frontend: print a msg if a property doesn't exist
authorMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 23 Jan 2013 20:06:02 +0000 (17:06 -0300)
committerMauro Carvalho Chehab <mchehab@redhat.com>
Wed, 23 Jan 2013 21:10:57 +0000 (19:10 -0200)
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>
drivers/media/dvb-core/dvb_frontend.c

index 0c6f936ffac8ed810608a615e6da1e78d575c4de..b059abf572d6d1afffbc2efb899509506d155ef4 100644 (file)
@@ -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;
        }