Moving begin & end comment quotes to separate line
PATCH 1/1 Moving begin & end comment quotes to separate line
Changes made to ks7010/eap_packet.h lines 54,63,65,67,71,77 where the end quotes and begin quotes for the multi line comment were not in a separate line.
--- drivers/staging/ks7010/eap_packet.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-)
drivers/staging/ks7010/eap_packet.h +14 -7
@@ -51,24 +51,31 @@ enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2,struct ieee802_1x_eapol_key {unsigned char type;unsigned short key_length; -/* does not repeat within the life of the keying material used to -* encrypt the Key field; 64-bit NTP timestamp MAY be used here */ +/* +* does not repeat within the life of the keying material used to +* encrypt the Key field; 64-bit NTP timestamp MAY be used here +*/ unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN ];unsigned char key_iv[IEEE8021X_KEY_IV_LEN ];/* cryptographically random number */ unsigned char key_index;/* key flag in the most significant bit: * 0 = broadcast (default key), * 1 = unicast (key mapping key); key index is in the -* 7 least significant bits */ -/* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as -* the key */ +* 7 least significant bits +*/ +/* +* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as +* the key +*/ unsigned char key_signature[IEEE8021X_KEY_SIGN_LEN ]; -/* followed by key: if packet body length = 44 + key length, then the +/* +* followed by key: if packet body length = 44 + key length, then the * key field (of key_length bytes) contains the key in encrypted form; * if packet body length = 44, key field is absent and key_length * represents the number of least significant octets from * MS-MPPE-Send-Key attribute to be used as the keying material; -* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key */ +* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key +*/ } __attribute__ ((packed));#define WPA_NONCE_LEN 32
Signature · 1 line
2.9.2
Quoted 2 lines · Gargi Sharma
Changes made to
ks7010/eap_packet.hlines 54,63,65,67,71,77 where the end quotes and begin quotes for the multi line comment were not in a separate line.
The commit message exceeds 80 characters per line.
Actually, it's not necessary to put the line numbers that are modified. That can be seen from the patch itself. The idea instead is to put some information in the subject line about what files the patch affects. Then the maintainer can orient himself before looking at the actual change.
You can find what should be done using git long --oneline file For example, for your file:
git log --oneline drivers/staging/ks7010/eap_packet.h
gives:
c5d9a03 staging: ks7010: cleanup file headers
5d7696b staging: ks7010: indent eap_packet.h
13a9930 staging: ks7010: add driver from Nanonote extra-repository
So your subject line could be:
[PATCH] staging: ks7010: adjust comment begin and end markers
Your subject text is also OK, but it is a bit more verbose. It is better to put the smallest number of words that will convey the idea, and put the full details in the main log message.
julia
Quoted 59 lines
Signed-off-by Gargi Sharma <[email protected]>--- drivers/staging/ks7010/eap_packet.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-)drivers/staging/ks7010/eap_packet.h +14
-8@@ -51,24 +51,31 @@ enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2,struct ieee802_1x_eapol_key {unsigned char type;unsigned short key_length; -/* does not repeat within the life of the keying material used to -* encrypt the Key field; 64-bit NTP timestamp MAY be used here */ +/* +* does not repeat within the life of the keying material used to +* encrypt the Key field; 64-bit NTP timestamp MAY be used here +*/ unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN ];unsigned char key_iv[IEEE8021X_KEY_IV_LEN ];/* cryptographically random number */ unsigned char key_index;/* key flag in the most significant bit: * 0 = broadcast (default key), * 1 = unicast (key mapping key); key index is in the -* 7 least significant bits */ -/* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as -* the key */ +* 7 least significant bits +*/ +/* +* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as +* the key +*/ unsigned char key_signature[IEEE8021X_KEY_SIGN_LEN ]; -/* followed by key: if packet body length = 44 + key length, then the +/* +* followed by key: if packet body length = 44 + key length, then the * key field (of key_length bytes) contains the key in encrypted form; * if packet body length = 44, key field is absent and key_length * represents the number of least significant octets from * MS-MPPE-Send-Key attribute to be used as the keying material; -* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key */ +* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key +*/ } __attribute__ ((packed));#define WPA_NONCE_LEN 32 --2.9.2
--
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/20160912173343.11114-1-gs051095%40gmail.com.
For more options, visit https://groups.google.com/d/optout.
Thank you for your patience Julia! I'll keep all these pointers in mind while sending the next patch. Should I send another patch with a new commit message and subject?
Best,
gargi
Quoted 110 lines · Julia Lawall
Quoted 1 line · Gargi Sharma
Changes made to
ks7010/eap_packet.hlines 54,63,65,67,71,77 where theend quotes and
Quoted 1 line
begin quotes for the multi line comment were not in a separate line.
The commit message exceeds 80 characters per line.
Actually, it's not necessary to put the line numbers that are modified. That can be seen from the patch itself. The idea instead is to put some information in the subject line about what files the patch affects. Then the maintainer can orient himself before looking at the actual change.
You can find what should be done using git long --oneline file For example, for your file:
git log --oneline
drivers/staging/ks7010/eap_packet.hgives:
c5d9a03 staging: ks7010: cleanup file headers
5d7696b staging: ks7010: indenteap_packet.h
13a9930 staging: ks7010: add driver from Nanonote extra-repositorySo your subject line could be:
[PATCH] staging: ks7010: adjust comment begin and end markers
Your subject text is also OK, but it is a bit more verbose. It is better to put the smallest number of words that will convey the idea, and put the full details in the main log message.
julia
Review
Quoted 7 lines
Signed-off-by Gargi Sharma <[email protected]>--- drivers/staging/ks7010/eap_packet.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-)(quoted diff) +0
-0
b/drivers/staging/ks7010/eap_packet.hdrivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN =
Quoted 4 lines
index 16a392a..ad5dff8 100644
drivers/staging/ks7010/eap_packet.h +0
-0@@ -51,24 +51,31 @@ enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN =2,
drivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2,
Quoted 11 lines
drivers/staging/ks7010/eap_packet.h +4
-2struct ieee802_1x_eapol_key {unsigned char type;unsigned short key_length; -/* does not repeat within the life of the keying material used to -* encrypt the Key field; 64-bit NTP timestamp MAY be used here */ +/* +* does not repeat within the life of the keying material used to +* encrypt the Key field; 64-bit NTP timestamp MAY be used here +*/ unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN ];unsigned char key_iv[IEEE8021X_KEY_IV_LEN ];/* cryptographically random number */
drivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = · line 60
Quoted 1 line
drivers/staging/ks7010/eap_packet.h +0
-0unsigned char key_index;/* key flag in the most significant bit:
drivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = · line 62
Quoted 2 lines
drivers/staging/ks7010/eap_packet.h +0
-0* 0 = broadcast (default key), * 1 = unicast (key mapping key); key index is in the
drivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = · line 62
Quoted 2 lines
drivers/staging/ks7010/eap_packet.h +0
-2-* 7 least significant bits */ -/* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
drivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2,
Quoted 5 lines
drivers/staging/ks7010/eap_packet.h +4
-1-* the key */ +* 7 least significant bits +*/ +/* +* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
drivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2,
Quoted 5 lines
drivers/staging/ks7010/eap_packet.h +2
-1+* the key +*/ unsigned char key_signature[IEEE8021X_KEY_SIGN_LEN ]; -/* followed by key: if packet body length = 44 + key length, then the
drivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = · line 72
Quoted 2 lines
drivers/staging/ks7010/eap_packet.h +2
-0+/* +* followed by key: if packet body length = 44 + key length, then the
drivers/staging/ks7010/eap_packet.h enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = · line 73
Quoted 1 line
drivers/staging/ks7010/eap_packet.h +0
-0* key field (of key_length bytes) contains the key in encrypted form;
Quoted 12 lines
drivers/staging/ks7010/eap_packet.h +2
-2* if packet body length = 44, key field is absent and key_length * represents the number of least significant octets from * MS-MPPE-Send-Key attribute to be used as the keying material; -* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key */ +* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key +*/ } __attribute__ ((packed));#define WPA_NONCE_LEN 32 --2.9.2
Quoted 2 lines
--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it, send
an email to [email protected].
Quoted 2 lines
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/20160912173343.11114-1-gs051095%40gmail.com.
Quoted 2 lines
For more options, visit https://groups.google.com/d/optout.
Quoted 3 lines · Gargi Sharma
Thank you for your patience Julia! I'll keep all these pointers in mind while sending the next patch. Should I send another patch with a new commit message and subject?
Yes, I think it would be good to fix up the current one, with v2, the improved subject, etc.
julia
Quoted 149 lines
Best,
gargiOn Mon, Sep 12, 2016 at 11:12 PM, Julia Lawall <[email protected]> wrote:
On Mon, 12 Sep 2016, Gargi Sharma wrote:
> Changes made to
ks7010/eap_packet.hlines 54,63,65,67,71,77 where the end quotes and
> begin quotes for the multi line comment were not in a separate line.The commit message exceeds 80 characters per line.
Actually, it's not necessary to put the line numbers that are modified.
That can be seen from the patch itself. The idea instead is to put some
information in the subject line about what files the patch affects. Then
the maintainer can orient himself before looking at the actual change.You can find what should be done using git long --oneline file For example, for your file:
git log --oneline
drivers/staging/ks7010/eap_packet.hgives:
c5d9a03 staging: ks7010: cleanup file headers 5d7696b staging: ks7010: indent
eap_packet.h13a9930 staging: ks7010: add driver from Nanonote extra-repositorySo your subject line could be:
[PATCH] staging: ks7010: adjust comment begin and end markers
Your subject text is also OK, but it is a bit more verbose. It is better
to put the smallest number of words that will convey the idea, and put the
full details in the main log message.julia
>
> Signed-off-by: Gargi Sharma <[email protected]>
> ---
>drivers/staging/ks7010/eap_packet.h| 21
++++++++++++++-------
> 1 file changed, 14 insertions(+), 7 deletions(-) >
> diff --gita/drivers/staging/ks7010/eap_packet.hb/drivers/staging/ks7010/eap_packet.h
> index 16a392a..ad5dff8 100644
> ---a/drivers/staging/ks7010/eap_packet.h
> +++b/drivers/staging/ks7010/eap_packet.h
> @@ -51,24 +51,31 @@ enum {EAPOL_KEY_TYPE_RC4= 1,EAPOL_KEY_TYPE_RSN= 2,
> structieee802_1x_eapol_key{
> unsigned char type;
> unsigned shortkey_length;
> - /* does not repeat within the life of the keying material used to
> - * encrypt the Key field; 64-bit NTP timestamp MAY be used here */
> + /*
> + * does not repeat within the life of the keying material used to
> + * encrypt the Key field; 64-bit NTP timestamp MAY be used here
> + */
> unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN];
> unsigned char key_iv[IEEE8021X_KEY_IV_LEN]; /* cryptographically random number */
> unsigned char key_index; /* key flag in the most significant bit:
> * 0 = broadcast (default key),
> * 1 = unicast (key mapping key); key index is in the
> - * 7 least significant bits */
> - /* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
> - * the key */
> + * 7 least significant bits
> + */
> + /*
> + * HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
> + * the key
> + */
> unsigned char key_signature[IEEE8021X_KEY_SIGN_LEN]; >
> - /* followed by key: if packet body length = 44 + key length, then the
> + /*
> + * followed by key: if packet body length = 44 + key length, then the
> * key field (ofkey_lengthbytes) contains the key in encrypted form;
> * if packet body length = 44, key field is absent andkey_length
> * represents the number of least significant octets from
> * MS-MPPE-Send-Key attribute to be used as the keying material;
> - * RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key */
> + * RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key
> + */
> }__attribute__((packed));
>
> #defineWPA_NONCE_LEN32
> --
> 2.9.2
>Quoted 2 lines
--
You received this message because you are subscribed to the GoogleGroups "outreachy-kernel" group.
Quoted 1 line
To unsubscribe from this group and stop receiving emails from it,
send an email to [email protected].
Quoted 1 line
To post to this group, send email to
Quoted 1 line
To view this discussion on the web visithttps://groups.google.com/d/msgid/outreachy-kernel/20160912173343.11114-1-g
s051095%40gmail.com.
Quoted 2 lines
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 visithttps://groups.google.com/d/msgid/outreachy-kernel/CAOCi2DFUU3B%2BMF4NDtr%3 DvqjOd4kZgFJfK9-SnoavzyAjnygsfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Quoted 3 lines · Gargi Sharma
Thank you for your patience Julia! I'll keep all these pointers in mind while sending the next patch. Should I send another patch with a new commit message and subject?
Hi,
One minor point on non-technical side. When responding to email, make sure you respond inline, rather than top-posting.
You can have a look at the details about how to respond to mails:
https://kernelnewbies.org/FirstKernelPatch#head-9799d3ebaa1221875dfdb0a05c4063dc4eb474a1
Quoted 125 lines
Best,
gargiQuoted 100 lines · Julia Lawall
Quoted 3 lines · Gargi Sharma
Changes made to
ks7010/eap_packet.hlines 54,63,65,67,71,77 where the end quotes and
begin quotes for the multi line comment were not in a separate line.The commit message exceeds 80 characters per line.
Actually, it's not necessary to put the line numbers that are modified. That can be seen from the patch itself. The idea instead is to put some information in the subject line about what files the patch affects. Then the maintainer can orient himself before looking at the actual change.
You can find what should be done using git long --oneline file For example, for your file:
git log --oneline
drivers/staging/ks7010/eap_packet.hgives:
c5d9a03 staging: ks7010: cleanup file headers
5d7696b staging: ks7010: indenteap_packet.h
13a9930 staging: ks7010: add driver from Nanonote extra-repositorySo your subject line could be:
[PATCH] staging: ks7010: adjust comment begin and end markers
Your subject text is also OK, but it is a bit more verbose. It is better to put the smallest number of words that will convey the idea, and put the full details in the main log message.
julia
Quoted 62 lines
Signed-off-by Gargi Sharma <[email protected]>--- drivers/staging/ks7010/eap_packet.h | 21 ++++++++++++++------- 1 file changed, 14 insertions(+), 7 deletions(-)drivers/staging/ks7010/eap_packet.h +4
-2@@ -51,24 +51,31 @@ enum { EAPOL_KEY_TYPE_RC4 = 1, EAPOL_KEY_TYPE_RSN = 2,struct ieee802_1x_eapol_key {unsigned char type;unsigned short key_length; -/* does not repeat within the life of the keying material used to -* encrypt the Key field; 64-bit NTP timestamp MAY be used here */ +/* +* does not repeat within the life of the keying material used to +* encrypt the Key field; 64-bit NTP timestamp MAY be used here +*/ unsigned char replay_counter[IEEE8021X_REPLAY_COUNTER_LEN ];unsigned char key_iv[IEEE8021X_KEY_IV_LEN ];/* cryptographically random number */
unsigned charkey_index; /* key flag in the most
significant bit:
* 0 = broadcast (default key),
* 1 = unicast (key mapping key);
key index is in thedrivers/staging/ks7010/eap_packet.h +0
-2-* 7 least significant bits */ -/* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
drivers/staging/ks7010/eap_packet.h +4
-1-* the key */ +* 7 least significant bits +*/ +/* +* HMAC-MD5 message integrity check computed with MS-MPPE-Send-Key as
drivers/staging/ks7010/eap_packet.h +2
-1+* the key +*/ unsigned char key_signature[IEEE8021X_KEY_SIGN_LEN ]; -/* followed by key: if packet body length = 44 + key length, then the
drivers/staging/ks7010/eap_packet.h +2
-0+/* +* followed by key: if packet body length = 44 + key length, then the
* key field (ofkey_lengthbytes) contains the key in encrypted
form;
* if packet body length = 44, key field is absent andkey_length
* represents the number of least significant octets from
* MS-MPPE-Send-Key attribute to be used as the keying material;drivers/staging/ks7010/eap_packet.h +2
-2-* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key */ +* RC4 key used in encryption = Key-IV + MS-MPPE-Recv-Key +*/ } __attribute__ ((packed));#define WPA_NONCE_LEN 32 --2.9.2
Quoted 10 lines
Quoted 10 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/20160912173343.11114-1-gs051095%40gmail.com.
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/CAOCi2DFUU3B%2BMF4NDtr%3DvqjOd4kZgFJfK9-SnoavzyAjnygsfQ%40mail.gmail.com.
For more options, visit https://groups.google.com/d/optout.
Signature · 2 lines
Vaishali http://vaishalithakkar.in/