Skip to contentSkip to conversation

silence some noisy printks in irda

PATCH Applied Dave Jones 2 participants 2 messages Oct 4, 2012

Subsystems (2)
lore
Share & tools
lore

Dave Jones

author
#0 lore raw

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.

net/irda/af_irda.c +1 -1
index bb738c9..b833677 100644
@@ -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;
 	}
 
net/irda/irttp.c +1 -1
index 5c93f29..1002e33 100644
@@ -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;
 	}
 
maintainer Applied
#1 lore raw

From: Dave Jones <[email protected]>
Date: Thu, 4 Oct 2012 09:36:13 -0400

Quoted 5 lines

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.

Applied.