silence some noisy printks in irda
authorDave Jones <davej@redhat.com>
Thu, 4 Oct 2012 03:36:13 +0000 (03:36 +0000)
committerDavid S. Miller <davem@davemloft.net>
Thu, 4 Oct 2012 19:53:48 +0000 (15:53 -0400)
Fuzzing causes these printks to spew constantly.
Changing them to DEBUG statements is consistent with other usage in the file,
and makes them disappear when CONFIG_IRDA_DEBUG is disabled.

Signed-off-by: Dave Jones <davej@redhat.com>
Signed-off-by: David S. Miller <davem@davemloft.net>
net/irda/af_irda.c
net/irda/irttp.c

index bb738c9f91461df7fb3d718a1ed6b771dae33f1a..b833677d83d6293724ba2d9948b37c9dbf472694 100644 (file)
@@ -468,7 +468,7 @@ static int irda_open_tsap(struct irda_sock *self, __u8 tsap_sel, char *name)
        notify_t notify;
 
        if (self->tsap) {
-               IRDA_WARNING("%s: busy!\n", __func__);
+               IRDA_DEBUG(0, "%s: busy!\n", __func__);
                return -EBUSY;
        }
 
index 5c93f2952b082b6fa5ef6c0bc8211dfdb68f3693..1002e3396f7287049b41c53e4aaa5cdc285a73e6 100644 (file)
@@ -440,7 +440,7 @@ struct tsap_cb *irttp_open_tsap(__u8 stsap_sel, int credit, notify_t *notify)
         */
        lsap = irlmp_open_lsap(stsap_sel, &ttp_notify, 0);
        if (lsap == NULL) {
-               IRDA_WARNING("%s: unable to allocate LSAP!!\n", __func__);
+               IRDA_DEBUG(0, "%s: unable to allocate LSAP!!\n", __func__);
                return NULL;
        }