Patchwork [PATCH/RESEND,trivial] sctp : Fix typo in net/sctp/socket.c

login
register
mail settings
Submitter Masanari Iida
Date Jan. 21, 2012, 1:18 a.m.
Message ID <1327108681-1682-1-git-send-email-standby24x7@gmail.com>
Download mbox | patch
Permalink /patch/137169/
State Changes Requested
Delegated to: David Miller
Headers show

Comments

Masanari Iida - Jan. 21, 2012, 1:18 a.m.
Signed-off-by: Masanari Iida<standby24x7@gmail.com>

Correct a typo "sctp_setsocktopt_bindx" to "sctp_setsockopt_bindx"
in net/sctp/socket.c
---
 net/sctp/socket.c |    2 +-
 1 files changed, 1 insertions(+), 1 deletions(-)
David Miller - Jan. 22, 2012, 7:21 p.m.
From: Joe Perches <joe@perches.com>
Date: Fri, 20 Jan 2012 17:23:55 -0800

> On Sat, 2012-01-21 at 10:18 +0900, Masanari Iida wrote:
>> Signed-off-by: Masanari Iida<standby24x7@gmail.com>
>> 
>> Correct a typo "sctp_setsocktopt_bindx" to "sctp_setsockopt_bindx"
>> in net/sctp/socket.c
>> ---
>>  net/sctp/socket.c |    2 +-
>>  1 files changed, 1 insertions(+), 1 deletions(-)
>> 
>> diff --git a/net/sctp/socket.c b/net/sctp/socket.c
>> index 408ebd0..658483e 100644
>> --- a/net/sctp/socket.c
>> +++ b/net/sctp/socket.c
>> @@ -970,7 +970,7 @@ SCTP_STATIC int sctp_setsockopt_bindx(struct sock* sk,
>>  	void *addr_buf;
>>  	struct sctp_af *af;
>>  
>> -	SCTP_DEBUG_PRINTK("sctp_setsocktopt_bindx: sk %p addrs %p"
>> +	SCTP_DEBUG_PRINTK("sctp_setsockopt_bindx: sk %p addrs %p"
>>  			  " addrs_size %d opt %d\n", sk, addrs, addrs_size, op);
> 
> Let the compiler do it.
> 
> 	SCTP_DEBUG_PRINTK("%s: sk %p addrs %p addrs_size %d opt %d\n",
> 			  __func__, sk, addrs, addrs_size, op);

Masanari, please integrate Joe's feedback into your patch.
--
To unsubscribe from this list: send the line "unsubscribe netdev" in
the body of a message to majordomo@vger.kernel.org
More majordomo info at  http://vger.kernel.org/majordomo-info.html

Patch

diff --git a/net/sctp/socket.c b/net/sctp/socket.c
index 408ebd0..658483e 100644
--- a/net/sctp/socket.c
+++ b/net/sctp/socket.c
@@ -970,7 +970,7 @@  SCTP_STATIC int sctp_setsockopt_bindx(struct sock* sk,
 	void *addr_buf;
 	struct sctp_af *af;
 
-	SCTP_DEBUG_PRINTK("sctp_setsocktopt_bindx: sk %p addrs %p"
+	SCTP_DEBUG_PRINTK("sctp_setsockopt_bindx: sk %p addrs %p"
 			  " addrs_size %d opt %d\n", sk, addrs, addrs_size, op);
 
 	if (unlikely(addrs_size <= 0))