staging: comedi: jr3_pci: omit pointless debug info
authorIan Abbott <abbotti@mev.co.uk>
Wed, 8 Mar 2017 18:44:29 +0000 (18:44 +0000)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Sun, 12 Mar 2017 13:57:00 +0000 (14:57 +0100)
`jr3_pci_open()` outputs several debug log messages containing serial
numbers of the sensors (one per subdevice) along with a pointer to the
subdevice private data structure.  The latter is of no use, so reformat
the debug log to omit it.

`jr3_pci_alloc_spriv()` outputs a debug log message containing more
useless information about the remapped base address of the board
registers, the sensor registers, and the difference between them.  Get
rid of it.

Signed-off-by: Ian Abbott <abbotti@mev.co.uk>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/comedi/drivers/jr3_pci.c

index 750c957d9724fe8d87ab32bb0554f242aee0e896..8399493e74723e67819b941dce908ec05644b2ff 100644 (file)
@@ -307,8 +307,8 @@ static int jr3_pci_open(struct comedi_device *dev)
        for (i = 0; i < dev->n_subdevices; i++) {
                s = &dev->subdevices[i];
                spriv = s->private;
-               dev_dbg(dev->class_dev, "serial: %p %d (%d)\n",
-                       spriv, spriv->serial_no, s->index);
+               dev_dbg(dev->class_dev, "serial[%d]: %d\n", s->index,
+                       spriv->serial_no);
        }
        return 0;
 }
@@ -660,11 +660,6 @@ jr3_pci_alloc_spriv(struct comedi_device *dev, struct comedi_subdevice *s)
        spriv->maxdata_list[56] = 0xffff;
        spriv->maxdata_list[57] = 0xffff;
 
-       dev_dbg(dev->class_dev, "p->sensor %p %p (%tx)\n",
-               spriv->sensor, block,
-               ((char __iomem *)spriv->sensor -
-                (char __iomem *)block));
-
        return spriv;
 }