Skip to content

Commit

Permalink
Fix Lindent to not indent preprocessor comments so far
Browse files Browse the repository at this point in the history
I recently ran Lindent over the AdvanSys driver and it moved the
comments on #else and #endif lines way over to the right:

	#else                          /* ADVANSYS_DEBUG */

This doesn't match what I expect from kernel style, but it is
documented.  We just need another flag to indent to make this look like:

	#else /* ADVANSYS_DEBUG */

Signed-off-by: Matthew Wilcox <matthew@wil.cx>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>
  • Loading branch information
Matthew Wilcox authored and Linus Torvalds committed Jul 20, 2007
1 parent 178554a commit e609ccc
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion scripts/Lindent
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
#!/bin/sh
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs "$@"
indent -npro -kr -i8 -ts8 -sob -l80 -ss -ncs -cp1 "$@"

0 comments on commit e609ccc

Please sign in to comment.