Quellcode durchsuchen

V4L/DVB (13764): [Mantis CA] SLOT: Add some debug status

Signed-off-by: Manu Abraham <manu@linuxtv.org>
Signed-off-by: Mauro Carvalho Chehab <mchehab@redhat.com>
Manu Abraham vor 15 Jahren
Ursprung
Commit
5e2a0c9901
1 geänderte Dateien mit 5 neuen und 1 gelöschten Zeilen
  1. 5 1
      drivers/media/dvb/mantis/mantis_ca.c

+ 5 - 1
drivers/media/dvb/mantis/mantis_ca.c

@@ -118,8 +118,12 @@ static int mantis_slot_status(struct dvb_ca_en50221 *en50221, int slot, int open
 
 	dprintk(verbose, MANTIS_DEBUG, 1, "Slot(%d): Poll Slot status", slot);
 
-	if (ca->slot_state == MODULE_INSERTED)
+	if (ca->slot_state == MODULE_INSERTED) {
+		dprintk(verbose, MANTIS_DEBUG, 1, "CA Module present and ready");
 		return DVB_CA_EN50221_POLL_CAM_PRESENT | DVB_CA_EN50221_POLL_CAM_READY;
+	} else {
+		dprintk(verbose, MANTIS_DEBUG, 1, "CA Module not present or not ready");
+	}
 
 	return 0;
 }