netdev.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [PATCH net-next-2.6 1/3] caif: Minor fixes in log prints.
@ 2010-09-21 21:44 sjur.brandeland
  2010-09-21 21:44 ` [PATCH net-next-2.6 2/3] caif: Fix function NULL pointer check sjur.brandeland
  2010-09-22  1:07 ` [PATCH net-next-2.6 1/3] caif: Minor fixes in log prints David Miller
  0 siblings, 2 replies; 6+ messages in thread
From: sjur.brandeland @ 2010-09-21 21:44 UTC (permalink / raw)
  To: davem; +Cc: netdev, Sjur Braendeland, Sjur Braendeland

From: Sjur Braendeland <sjur.braendeland@stericsson.com>

Use pr_debug for flow control printouts, and refine an error printout.

Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com>
---
 net/caif/caif_socket.c |    8 ++------
 net/caif/cfcnfg.c      |    2 +-
 2 files changed, 3 insertions(+), 7 deletions(-)

diff --git a/net/caif/caif_socket.c b/net/caif/caif_socket.c
index fd1f5df..3943398 100644
--- a/net/caif/caif_socket.c
+++ b/net/caif/caif_socket.c
@@ -159,9 +159,7 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
 
 	if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
 		(unsigned)sk->sk_rcvbuf && rx_flow_is_on(cf_sk)) {
-		trace_printk("CAIF: %s(): "
-			"sending flow OFF (queue len = %d %d)\n",
-			__func__,
+		pr_debug("sending flow OFF (queue len = %d %d)\n",
 			atomic_read(&cf_sk->sk.sk_rmem_alloc),
 			sk_rcvbuf_lowwater(cf_sk));
 		set_rx_flow_off(cf_sk);
@@ -174,9 +172,7 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
 		return err;
 	if (!sk_rmem_schedule(sk, skb->truesize) && rx_flow_is_on(cf_sk)) {
 		set_rx_flow_off(cf_sk);
-		trace_printk("CAIF: %s(): "
-			"sending flow OFF due to rmem_schedule\n",
-			__func__);
+		pr_debug("sending flow OFF due to rmem_schedule\n");
 		dbfs_atomic_inc(&cnt.num_rx_flow_off);
 		caif_flow_ctrl(sk, CAIF_MODEMCMD_FLOW_OFF_REQ);
 	}
diff --git a/net/caif/cfcnfg.c b/net/caif/cfcnfg.c
index ef93a13..41adafd 100644
--- a/net/caif/cfcnfg.c
+++ b/net/caif/cfcnfg.c
@@ -197,7 +197,7 @@ int cfcnfg_disconn_adapt_layer(struct cfcnfg *cnfg, struct cflayer *adap_layer)
 	caif_assert(adap_layer != NULL);
 	channel_id = adap_layer->id;
 	if (adap_layer->dn == NULL || channel_id == 0) {
-		pr_err("adap_layer->id is 0\n");
+		pr_err("adap_layer->dn == NULL or adap_layer->id is 0\n");
 		ret = -ENOTCONN;
 		goto end;
 	}
-- 
1.6.3.3


^ permalink raw reply related	[flat|nested] 6+ messages in thread

end of thread, other threads:[~2010-09-22  1:07 UTC | newest]

Thread overview: 6+ messages (download: mbox.gz follow: Atom feed
-- links below jump to the message on this page --
2010-09-21 21:44 [PATCH net-next-2.6 1/3] caif: Minor fixes in log prints sjur.brandeland
2010-09-21 21:44 ` [PATCH net-next-2.6 2/3] caif: Fix function NULL pointer check sjur.brandeland
2010-09-21 21:44   ` [PATCH net-next-2.6 3/3] caif: Use default send and receive buffer size in caif_socket sjur.brandeland
2010-09-22  1:07     ` David Miller
2010-09-22  1:07   ` [PATCH net-next-2.6 2/3] caif: Fix function NULL pointer check David Miller
2010-09-22  1:07 ` [PATCH net-next-2.6 1/3] caif: Minor fixes in log prints David Miller

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).