staging: slicoss: Align #define constants
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
@@ -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
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
Greg KH
maintainerQuoted 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
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.
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.
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.