Skip to contentSkip to conversation

staging: rtl8192e: Use __func__ instead of function name

PATCH Superseded Mihaela Muraru 2 participants 5 messages Oct 14, 2017 Staging

v3 of 4 Superseded Latest is v4 →

lore
Share & tools
lore
#0 lore raw

PATCH v3 1/1 staging: rtl8192e: Use __func__ instead of function name

Use identifier __func__ instead of the name of the function.

Issue found by checkpatch.pl.

---
Changes in v3:
-breaking the modified lines and remove five point from the string to meet the condition no more than 80 characters per line.

drivers/staging/rtl8192e/dot11d.c | 8 ++++++--

 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/dot11d.c +6 -2
index 017fe04..55c699f 100644
@@ -128,12 +128,16 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
 	pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
 	for (i = 0; i < NumTriples; i++) {
 		if (MaxChnlNum >= pTriple->FirstChnl) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...1\n"
+					, __func__);
 			return;
 		}
 		if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl +
 		    pTriple->NumChnls)) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...2\n"
+					, __func__);
 			return;
 		}
 
Signature · 1 line
2.7.4
#1 lore raw
Quoted 19 lines · Mihaela Muraru

Use identifier __func__ instead of the name of the function.

Issue found by checkpatch.pl.

---
Changes in v3:
-breaking the modified lines and remove five point from the string to meet the condition no more than 80 characters per line.

drivers/staging/rtl8192e/dot11d.c | 8 ++++++--

 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/dot11d.c +0 -0
index 017fe04..55c699f 100644

drivers/staging/rtl8192e/dot11d.c void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr, · line 133

Quoted 7 lines
drivers/staging/rtl8192e/dot11d.c +3 -1
@@ -128,12 +128,16 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
 	pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
 	for (i = 0; i < NumTriples; i++) {
 		if (MaxChnlNum >= pTriple->FirstChnl) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...1\n"
+					, __func__);

You can't move these arguments back a few characters? The comma at the beginning of the line with __func__ is not nice.

julia

Quoted 21 lines
drivers/staging/rtl8192e/dot11d.c +3 -2
 			return;
 		}
 		if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl +
 		    pTriple->NumChnls)) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...2\n"
+					, __func__);
 			return;
 		}
 
--

2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20171014075657.GA2475%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.

#2 lore raw
Quoted 34 lines · Julia Lawall
Quoted 19 lines · Mihaela Muraru

Use identifier __func__ instead of the name of the function.

Issue found by checkpatch.pl.

---
Changes in v3:
-breaking the modified lines and remove five point from the string to meet the condition no more than 80 characters per line.

drivers/staging/rtl8192e/dot11d.c | 8 ++++++--

 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/dot11d.c +0 -0
index 017fe04..55c699f 100644

drivers/staging/rtl8192e/dot11d.c void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr, · line 133

Quoted 7 lines
drivers/staging/rtl8192e/dot11d.c +3 -1
@@ -128,12 +128,16 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
 	pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
 	for (i = 0; i < NumTriples; i++) {
 		if (MaxChnlNum >= pTriple->FirstChnl) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...1\n"
+					, __func__);

You can't move these arguments back a few characters? The comma at the beginning of the line with __func__ is not nice.

Quoted 2 lines

julia

I can put the comma at the end of this line "%s: Invalid country IE, skip it...1\n" and the line will have 80 characters.

It is allowed to have exact 80 characters per line?

Should I send patch v4 or to send patch v3, because treats the same issue?

Thank you,

Mihaela

Quoted 21 lines
Quoted 21 lines
drivers/staging/rtl8192e/dot11d.c +3 -2
 			return;
 		}
 		if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl +
 		    pTriple->NumChnls)) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...2\n"
+					, __func__);
 			return;
 		}
 
--

2.7.4

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20171014075657.GA2475%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.

#3 lore raw
Quoted 35 lines · Mihaela Muraru
Quoted 34 lines · Julia Lawall
Quoted 19 lines · Mihaela Muraru

Use identifier __func__ instead of the name of the function.

Issue found by checkpatch.pl.

---
Changes in v3:
-breaking the modified lines and remove five point from the string to meet the condition no more than 80 characters per line.

drivers/staging/rtl8192e/dot11d.c | 8 ++++++--

 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/dot11d.c +0 -0
index 017fe04..55c699f 100644

drivers/staging/rtl8192e/dot11d.c void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr, · line 133

Quoted 7 lines
drivers/staging/rtl8192e/dot11d.c +3 -1
@@ -128,12 +128,16 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
 	pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
 	for (i = 0; i < NumTriples; i++) {
 		if (MaxChnlNum >= pTriple->FirstChnl) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...1\n"
+					, __func__);

You can't move these arguments back a few characters? The comma at the beginning of the line with __func__ is not nice.

Quoted 8 lines
Quoted 2 lines

julia

I can put the comma at the end of this line "%s: Invalid country IE, skip it...1\n" and the line will have 80 characters.

It is allowed to have exact 80 characters per line?

Should I send patch v4 or to send patch v3, because treats the same issue?

Why not remove the spaces in front of the arguments so that they line up with the right side of the (. Then you can put the comma in the right place and have plentyof space after.

Once you have sent v3, afterwards you have to send v4. It doesn't matter about the issue. Greg has to know which is the most recent one.

julia

Quoted 34 lines

Thank you,

Mihaela

Quoted 14 lines
Quoted 14 lines
drivers/staging/rtl8192e/dot11d.c +3 -2
 			return;
 		}
 		if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl +
 		    pTriple->NumChnls)) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...2\n"
+					, __func__);
 			return;
 		}
 
--

2.7.4

Quoted 7 lines
Quoted 7 lines

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20171014075657.GA2475%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20171014081504.GA2769%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.

#4 lore raw
Quoted 48 lines · Julia Lawall
Quoted 35 lines · Mihaela Muraru
Quoted 34 lines · Julia Lawall
Quoted 19 lines · Mihaela Muraru

Use identifier __func__ instead of the name of the function.

Issue found by checkpatch.pl.

---
Changes in v3:
-breaking the modified lines and remove five point from the string to meet the condition no more than 80 characters per line.

drivers/staging/rtl8192e/dot11d.c | 8 ++++++--

 1 file changed, 6 insertions(+), 2 deletions(-)
drivers/staging/rtl8192e/dot11d.c +0 -0
index 017fe04..55c699f 100644

drivers/staging/rtl8192e/dot11d.c void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr, · line 133

Quoted 7 lines
drivers/staging/rtl8192e/dot11d.c +3 -1
@@ -128,12 +128,16 @@ void Dot11d_UpdateCountryIe(struct rtllib_device *dev, u8 *pTaddr,
 	pTriple = (struct chnl_txpow_triple *)(pCoutryIe + 3);
 	for (i = 0; i < NumTriples; i++) {
 		if (MaxChnlNum >= pTriple->FirstChnl) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........1\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...1\n"
+					, __func__);

You can't move these arguments back a few characters? The comma at the beginning of the line with __func__ is not nice.

Quoted 8 lines
Quoted 2 lines

julia

I can put the comma at the end of this line "%s: Invalid country IE, skip it...1\n" and the line will have 80 characters.

It is allowed to have exact 80 characters per line?

Should I send patch v4 or to send patch v3, because treats the same issue?

Quoted 9 lines

Why not remove the spaces in front of the arguments so that they line up with the right side of the (. Then you can put the comma in the right place and have plentyof space after.

Once you have sent v3, afterwards you have to send v4. It doesn't matter about the issue. Greg has to know which is the most recent one.

julia

Thank you for the explanations I will send patch v4.

Mihaela

Quoted 33 lines
Quoted 33 lines

Thank you,

Mihaela

Quoted 14 lines
Quoted 14 lines
drivers/staging/rtl8192e/dot11d.c +3 -2
 			return;
 		}
 		if (MAX_CHANNEL_NUMBER < (pTriple->FirstChnl +
 		    pTriple->NumChnls)) {
-			netdev_info(dev->dev, "Dot11d_UpdateCountryIe(): Invalid country IE, skip it........2\n");
+			netdev_info(dev->dev,
+					"%s: Invalid country IE, skip it...2\n"
+					, __func__);
 			return;
 		}
 
--

2.7.4

Quoted 7 lines
Quoted 7 lines

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20171014075657.GA2475%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.

--
You received this message because you are subscribed to the Google Groups "outreachy-kernel" group.
To unsubscribe from this group and stop receiving emails from it, send an email to [email protected]. To post to this group, send email to [email protected].
To view this discussion on the web visit https://groups.google.com/d/msgid/outreachy-kernel/20171014081504.GA2769%40domino-MS-16Y1.
For more options, visit https://groups.google.com/d/optout.