infiniband: nes: Remove duplicate function names
Subsystems (2)
PATCH 1/2 infiniband: nes: Remove duplicate function names
The macro nes_debug already ensures that __func__ (and __LINE__) is part of the output, so there's no reason to duplicate the function name in the format string itself.
--- drivers/infiniband/hw/nes/nes.c | 2 +- drivers/infiniband/hw/nes/nes_cm.c | 8 ++++---- drivers/infiniband/hw/nes/nes_verbs.c | 2 +- 3 files changed, 6 insertions(+), 6 deletions(-)
drivers/infiniband/hw/nes/nes.c +1 -1
@@ -148,7 +148,7 @@ static int nes_inetaddr_event(struct notifier_block *notifier,struct nes_vnic *nesvnic;unsigned int is_bonded; -nes_debug (NES_DBG_NETDEV ,"nes_inetaddr_event: ip address %pI4, netmask %pI4.\n" , +nes_debug (NES_DBG_NETDEV ,"ip address %pI4, netmask %pI4.\n" , &ifa->ifa_address, &ifa->ifa_mask);list_for_each_entry (nesdev, &nes_dev_list, list) { nes_debug(NES_DBG_NETDEV, "Nesdev list entry = 0x%p. (%s)\n",
drivers/infiniband/hw/nes/nes_cm.c +4 -4
@@ -2270,7 +2270,7 @@ static void passive_open_err(struct nes_cm_node *cm_node, struct sk_buff *skb,cleanup_retrans_entry (cm_node); cm_node->state =NES_CM_STATE_CLOSED ;if (reset) { -nes_debug (NES_DBG_CM ,"passive_open_err sending RST for " +nes_debug (NES_DBG_CM ,"sending RST for " "cm_node=%p state =%d\n" , cm_node, cm_node->state);send_reset (cm_node, skb); }else {
@@ -2319,7 +2319,7 @@ static void process_packet(struct nes_cm_node *cm_node, struct sk_buff *skb,skb_pull (skb,ip_hdr (skb)->ihl <<2 ); -nes_debug (NES_DBG_CM ,"process_packet: cm_node=%p state =%d syn=%d " +nes_debug (NES_DBG_CM ,"cm_node=%p state =%d syn=%d " "ack=%d rst=%d fin=%d\n" , cm_node, cm_node->state, tcph->syn, tcph->ack, tcph->rst, tcph->fin);
@@ -3218,7 +3218,7 @@ int nes_accept(struct iw_cm_id *cm_id, struct iw_cm_conn_param *conn_param) adapter = nesdev->nesadapter; cm_node = (struct nes_cm_node *)cm_id->provider_data; -nes_debug (NES_DBG_CM ,"nes_accept: cm_node= %p nesvnic=%p, netdev=%p," +nes_debug (NES_DBG_CM ,"cm_node= %p nesvnic=%p, netdev=%p," "%s\n" , cm_node, nesvnic, nesvnic->netdev, nesvnic->netdev->name);
@@ -3745,7 +3745,7 @@ static void cm_event_connected(struct nes_cm_event *event)/* get all our handles */ cm_node = event->cm_node; cm_id = cm_node->cm_id; -nes_debug (NES_DBG_CM ,"cm_event_connected - %p - cm_id = %p\n" , cm_node, cm_id); +nes_debug (NES_DBG_CM ,"%p - cm_id = %p\n" , cm_node, cm_id); nesqp = (struct nes_qp *)cm_id->provider_data; nesvnic =to_nesvnic (nesqp->ibqp.device); nesdev = nesvnic->nesdev;
drivers/infiniband/hw/nes/nes_verbs.c +1 -1
@@ -300,7 +300,7 @@ static int alloc_fast_reg_mr(struct nes_device *nesdev, struct nes_pd *nespd,nes_debug (NES_DBG_MR ,"Failed to get a cqp_request.\n" );return -ENOMEM ; } -nes_debug (NES_DBG_MR ,"alloc_fast_reg_mr: page_count = %d, " +nes_debug (NES_DBG_MR ,"page_count = %d, " "region_length = %llu\n" , page_count, region_length); cqp_request->waiting =1 ;
Signature · 1 line
2.1.3
PATCH 2/2 iser-target: Remove duplicate function names
The macro isert_dbg already ensures that __func__ is part of the output, so there's no reason to duplicate the function name in the format string itself.
--- drivers/infiniband/ulp/isert/ib_isert.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)
drivers/infiniband/ulp/isert/ib_isert.c +3 -4
@@ -949,7 +949,7 @@ isert_post_recv(struct isert_conn *isert_conn, u32 count)isert_err ("ib_post_recv() failed with ret: %d\n" , ret); isert_conn->post_recv_buf_count -= count; }else { -isert_dbg ("isert_post_recv(): Posted %d RX buffers\n" , count); +isert_dbg ("Posted %d RX buffers\n" , count); isert_conn->conn_rx_desc_head = rx_head; }return ret;
@@ -1709,8 +1709,7 @@ isert_put_cmd(struct isert_cmd *isert_cmd, bool comp_err)* associated cmd->se_cmd needs to be released. */ if (cmd->se_cmd.se_tfo !=NULL ) { -isert_dbg ("Calling transport_generic_free_cmd from" -" isert_put_cmd for 0x%02x\n" , +isert_dbg ("Calling transport_generic_free_cmd for 0x%02x\n" , cmd->iscsi_opcode);transport_generic_free_cmd (&cmd->se_cmd,0 );break ;
@@ -3136,7 +3135,7 @@ accept_wait:spin_lock_bh (&np->np_thread_lock);if (np->np_thread_state >=ISCSI_NP_THREAD_RESET ) {spin_unlock_bh (&np->np_thread_lock); -isert_dbg ("np_thread_state %d for isert_accept_np\n" , +isert_dbg ("np_thread_state %d\n" , np->np_thread_state);/** * No point in stalling here when np_thread
Signature · 1 line
2.1.3
Nicholas A. Bellinger
AppliedRe: [PATCH 2/2] iser-target: Remove duplicate function names
Quoted 33 lines · Rasmus Villemoes
The macro
isert_dbgalready ensures that__func__is part of the output, so there's no reason to duplicate the function name in the format string itself.Signed-off-by Rasmus Villemoes <[email protected]>--- drivers/infiniband/ulp/isert/ib_isert.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/infiniband/ulp/isert/ib_isert.c +2
-3@@ -949,7 +949,7 @@ isert_post_recv(struct isert_conn *isert_conn, u32 count)isert_err ("ib_post_recv() failed with ret: %d\n" , ret); isert_conn->post_recv_buf_count -= count; }else { -isert_dbg ("isert_post_recv(): Posted %d RX buffers\n" , count); +isert_dbg ("Posted %d RX buffers\n" , count); isert_conn->conn_rx_desc_head = rx_head; }return ret;@@ -1709,8 +1709,7 @@ isert_put_cmd(struct isert_cmd *isert_cmd, bool comp_err)* associated cmd->se_cmd needs to be released. */ if (cmd->se_cmd.se_tfo !=NULL ) { -isert_dbg ("Calling transport_generic_free_cmd from" -" isert_put_cmd for 0x%02x\n" , +isert_dbg ("Calling transport_generic_free_cmd for 0x%02x\n" , cmd->iscsi_opcode);transport_generic_free_cmd (&cmd->se_cmd,0 );break ;
drivers/infiniband/ulp/isert/ib_isert.c accept_wait: · line 3141
Quoted 8 lines
drivers/infiniband/ulp/isert/ib_isert.c +1
-1@@ -3136,7 +3135,7 @@ accept_wait:spin_lock_bh (&np->np_thread_lock);if (np->np_thread_state >=ISCSI_NP_THREAD_RESET ) {spin_unlock_bh (&np->np_thread_lock); -isert_dbg ("np_thread_state %d for isert_accept_np\n" , +isert_dbg ("np_thread_state %d\n" , np->np_thread_state);/** * No point in stalling here when np_thread
Applied to target-pending/for-next.
Thanks Rasmus!
--nab
Sagi Grimberg
Acked-byRe: [PATCH 2/2] iser-target: Remove duplicate function names
Quoted 45 lines · Nicholas A. Bellinger
Quoted 33 lines · Rasmus Villemoes
The macro
isert_dbgalready ensures that__func__is part of the output, so there's no reason to duplicate the function name in the format string itself.Signed-off-by Rasmus Villemoes <[email protected]>--- drivers/infiniband/ulp/isert/ib_isert.c | 7 +++---- 1 file changed, 3 insertions(+), 4 deletions(-)drivers/infiniband/ulp/isert/ib_isert.c +2
-3@@ -949,7 +949,7 @@ isert_post_recv(struct isert_conn *isert_conn, u32 count)isert_err ("ib_post_recv() failed with ret: %d\n" , ret); isert_conn->post_recv_buf_count -= count; }else { -isert_dbg ("isert_post_recv(): Posted %d RX buffers\n" , count); +isert_dbg ("Posted %d RX buffers\n" , count); isert_conn->conn_rx_desc_head = rx_head; }return ret;@@ -1709,8 +1709,7 @@ isert_put_cmd(struct isert_cmd *isert_cmd, bool comp_err)* associated cmd->se_cmd needs to be released. */ if (cmd->se_cmd.se_tfo !=NULL ) { -isert_dbg ("Calling transport_generic_free_cmd from" -" isert_put_cmd for 0x%02x\n" , +isert_dbg ("Calling transport_generic_free_cmd for 0x%02x\n" , cmd->iscsi_opcode);transport_generic_free_cmd (&cmd->se_cmd,0 );break ;drivers/infiniband/ulp/isert/ib_isert.c accept_wait: · line 3141
Quoted 8 lines
drivers/infiniband/ulp/isert/ib_isert.c +1
-1@@ -3136,7 +3135,7 @@ accept_wait:spin_lock_bh (&np->np_thread_lock);if (np->np_thread_state >=ISCSI_NP_THREAD_RESET ) {spin_unlock_bh (&np->np_thread_lock); -isert_dbg ("np_thread_state %d for isert_accept_np\n" , +isert_dbg ("np_thread_state %d\n" , np->np_thread_state);/** * No point in stalling here when np_thread Applied to target-pending/for-next.
Quoted 1 line
Thanks Rasmus!
You can add my ack if you want:
Sagi.