Skip to contentSkip to conversation

staging: slicoss: Align #define constants

PATCH In review Janani Ravichandran 3 participants 6 messages Feb 10, 2016 Staging

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 staging: slicoss: Align #define constants

Aligning the constants in the macros improves code readability.

---
 drivers/staging/slicoss/slicoss.c | 6 +++---
 1 file changed, 3 insertions(+), 3 deletions(-)
drivers/staging/slicoss/slicoss.c +3 -3
index c490b71..a91c60a 100644
@@ -58,9 +58,9 @@
 #define DEBUG_MICROCODE                 1
 #define DBG                             1
 #define SLIC_INTERRUPT_PROCESS_LIMIT	1
-#define SLIC_OFFLOAD_IP_CHECKSUM		1
-#define STATS_TIMER_INTERVAL			2
-#define PING_TIMER_INTERVAL			    1
+#define SLIC_OFFLOAD_IP_CHECKSUM	1
+#define STATS_TIMER_INTERVAL		2
+#define PING_TIMER_INTERVAL		1
 #define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
 
 #include <linux/kernel.h>
Signature · 1 line
2.5.0
#1 lore raw

This is embarrassing. The alignment looked fine on vim. All the constants were in the
same column. I don't understand why the alignment looks so bad in the patch. Can someone
explain this? :/

Quoted 2 lines
maintainer
#2 lore raw
Quoted 5 lines · Janani Ravichandran

This is embarrassing. The alignment looked fine on vim. All the constants were in the
same column. I don't understand why the alignment looks so bad in the patch. Can someone
explain this? :/

What looks wrong to you now? The patch looks good to me, please explain, by quoting the lines you feel are not correct.

thanks,

greg k-h

#3 lore raw
Quoted 9 lines · Greg KH
Quoted 5 lines · Janani Ravichandran

This is embarrassing. The alignment looked fine on vim. All the constants were in the
same column. I don't understand why the alignment looks so bad in the patch. Can someone
explain this? :/

What looks wrong to you now? The patch looks good to me, please explain, by quoting the lines you feel are not correct.

The three context lines above the patch don't seem to be lined up with each other.

julia

Quoted 12 lines

thanks,

greg k-h

Signature · 5 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/20160210061105.GA22525%40kroah.com.
For more options, visit https://groups.google.com/d/optout.
#4 lore raw
In reply to Janani Ravichandran
Quoted 5 lines · Janani Ravichandran

This is embarrassing. The alignment looked fine on vim. All the constants were in the
same column. I don't understand why the alignment looks so bad in the patch. Can someone
explain this? :/

I had the impression that a newline disappeared.

julia

Quoted 12 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 visithttps://groups.google.com/d/msgid/outreachy-kernel/cd332ec7-4bf6-4854-859d- 3ab667383154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.

#5 lore raw
In reply to Janani Ravichandran
Quoted 5 lines · Janani Ravichandran

This is embarrassing. The alignment looked fine on vim. All the constants were in the
same column. I don't understand why the alignment looks so bad in the patch. Can someone
explain this? :/

Oops, sorry I was thinking of the case of the 4 with lots of space in front of it.

Perhaps it is a tab issue? Check whether the various numbers are preceded by spaces or tabs.

julia

Quoted 12 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 visithttps://groups.google.com/d/msgid/outreachy-kernel/cd332ec7-4bf6-4854-859d- 3ab667383154%40googlegroups.com.
For more options, visit https://groups.google.com/d/optout.