Skip to content

Commit b04367d

Browse files
Sjur Braendelanddavem330
authored andcommitted
caif: Minor fixes in log prints.
Use pr_debug for flow control printouts, and refine an error printout. Signed-off-by: Sjur Braendeland <sjur.brandeland@stericsson.com> Signed-off-by: David S. Miller <davem@davemloft.net>
1 parent 9c44c9f commit b04367d

2 files changed

Lines changed: 3 additions & 7 deletions

File tree

‎net/caif/caif_socket.c‎

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -159,9 +159,7 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
159159

160160
if (atomic_read(&sk->sk_rmem_alloc) + skb->truesize >=
161161
(unsigned)sk->sk_rcvbuf && rx_flow_is_on(cf_sk)) {
162-
trace_printk("CAIF: %s(): "
163-
"sending flow OFF (queue len = %d %d)\n",
164-
__func__,
162+
pr_debug("sending flow OFF (queue len = %d %d)\n",
165163
atomic_read(&cf_sk->sk.sk_rmem_alloc),
166164
sk_rcvbuf_lowwater(cf_sk));
167165
set_rx_flow_off(cf_sk);
@@ -174,9 +172,7 @@ static int caif_queue_rcv_skb(struct sock *sk, struct sk_buff *skb)
174172
return err;
175173
if (!sk_rmem_schedule(sk, skb->truesize) && rx_flow_is_on(cf_sk)) {
176174
set_rx_flow_off(cf_sk);
177-
trace_printk("CAIF: %s(): "
178-
"sending flow OFF due to rmem_schedule\n",
179-
__func__);
175+
pr_debug("sending flow OFF due to rmem_schedule\n");
180176
dbfs_atomic_inc(&cnt.num_rx_flow_off);
181177
caif_flow_ctrl(sk, CAIF_MODEMCMD_FLOW_OFF_REQ);
182178
}

‎net/caif/cfcnfg.c‎

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ int cfcnfg_disconn_adapt_layer(struct cfcnfg *cnfg, struct cflayer *adap_layer)
197197
caif_assert(adap_layer != NULL);
198198
channel_id = adap_layer->id;
199199
if (adap_layer->dn == NULL || channel_id == 0) {
200-
pr_err("adap_layer->id is 0\n");
200+
pr_err("adap_layer->dn == NULL or adap_layer->id is 0\n");
201201
ret = -ENOTCONN;
202202
goto end;
203203
}

0 commit comments

Comments
 (0)