diff mbox

[lttng-ust] Fix formatting in strutils_star_glob_match explanation

Message ID 1489784121-20343-1-git-send-email-francis.deslauriers@efficios.com
State Accepted, archived
Headers show

Commit Message

Francis Deslauriers March 17, 2017, 8:55 p.m. UTC
Replace tabs for spaces in example scenario

Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>
---
 liblttng-ust/string-utils.c | 108 ++++++++++++++++++++++----------------------
 1 file changed, 54 insertions(+), 54 deletions(-)

Comments

Mathieu Desnoyers March 17, 2017, 9:07 p.m. UTC | #1
Changed the title and changelog:

"Cleanup: formatting in strutils_star_glob_match explanation

Replace tabs for spaces in example scenario."

Can you prepare a similar patch for lttng-modules ?

Thanks,

Mathieu


----- On Mar 17, 2017, at 4:55 PM, Francis Deslauriers francis.deslauriers at efficios.com wrote:

> Replace tabs for spaces in example scenario
> 
> Signed-off-by: Francis Deslauriers <francis.deslauriers at efficios.com>
> ---
> liblttng-ust/string-utils.c | 108 ++++++++++++++++++++++----------------------
> 1 file changed, 54 insertions(+), 54 deletions(-)
> 
> diff --git a/liblttng-ust/string-utils.c b/liblttng-ust/string-utils.c
> index d597da3..cc61038 100644
> --- a/liblttng-ust/string-utils.c
> +++ b/liblttng-ust/string-utils.c
> @@ -124,139 +124,139 @@ retry:
> 	 * Example:
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		^
> +	 *                ^
> 	 *     pattern:   hi*every*one
> -	 *		^
> +	 *                ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		 ^
> +	 *                 ^
> 	 *     pattern:   hi*every*one
> -	 *		 ^
> +	 *                 ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		  ^
> +	 *                  ^
> 	 *     pattern:   hi*every*one
> -	 *		  ^
> +	 *                  ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		  ^
> +	 *                  ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ MISMATCH
> +	 *                   ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		   ^
> +	 *                   ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^
> +	 *                   ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		   ^^
> +	 *                   ^^
> 	 *     pattern:   hi*every*one
> -	 *		   ^^
> +	 *                   ^^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		   ^ ^
> +	 *                   ^ ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ ^ MISMATCH
> +	 *                   ^ ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		    ^
> +	 *                    ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ MISMATCH
> +	 *                   ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		     ^
> +	 *                     ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ MISMATCH
> +	 *                   ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^
> +	 *                      ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^
> +	 *                   ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^^
> +	 *                      ^^
> 	 *     pattern:   hi*every*one
> -	 *		   ^^
> +	 *                   ^^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^ ^
> +	 *                      ^ ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^ ^
> +	 *                   ^ ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^  ^
> +	 *                      ^  ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^  ^
> +	 *                   ^  ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *		      ^   ^
> +	 *                      ^   ^
> 	 *     pattern:   hi*every*one
> -	 *		   ^   ^
> +	 *                   ^   ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			   ^
> +	 *                           ^
> 	 *     pattern:   hi*every*one
> -	 *			^
> +	 *                        ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			   ^
> +	 *                           ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			    ^
> +	 *                            ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^
> +	 *                         ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			    ^^
> +	 *                            ^^
> 	 *     pattern:   hi*every*one
> -	 *			 ^^
> +	 *                         ^^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			    ^ ^
> +	 *                            ^ ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ ^ MISMATCH
> +	 *                         ^ ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			     ^
> +	 *                             ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			      ^
> +	 *                              ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *			       ^
> +	 *                               ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				^
> +	 *                                ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ MISMATCH
> +	 *                         ^ MISMATCH
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				 ^
> +	 *                                 ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^
> +	 *                         ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				 ^^
> +	 *                                 ^^
> 	 *     pattern:   hi*every*one
> -	 *			 ^^
> +	 *                         ^^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				 ^ ^
> +	 *                                 ^ ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^ ^
> +	 *                         ^ ^
> 	 *
> 	 *     candidate: hi ev every onyx one
> -	 *				 ^  ^
> +	 *                                 ^  ^
> 	 *     pattern:   hi*every*one
> -	 *			 ^  ^ SUCCESS
> +	 *                         ^  ^ SUCCESS
> 	 */
> 	while ((c - candidate) < candidate_len && *c != '\0') {
> 		assert(*c);
> --
> 2.7.4
diff mbox

Patch

diff --git a/liblttng-ust/string-utils.c b/liblttng-ust/string-utils.c
index d597da3..cc61038 100644
--- a/liblttng-ust/string-utils.c
+++ b/liblttng-ust/string-utils.c
@@ -124,139 +124,139 @@  retry:
 	 * Example:
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		^
+	 *                ^
 	 *     pattern:   hi*every*one
-	 *		^
+	 *                ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		 ^
+	 *                 ^
 	 *     pattern:   hi*every*one
-	 *		 ^
+	 *                 ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		  ^
+	 *                  ^
 	 *     pattern:   hi*every*one
-	 *		  ^
+	 *                  ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		  ^
+	 *                  ^
 	 *     pattern:   hi*every*one
-	 *		   ^ MISMATCH
+	 *                   ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		   ^
+	 *                   ^
 	 *     pattern:   hi*every*one
-	 *		   ^
+	 *                   ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		   ^^
+	 *                   ^^
 	 *     pattern:   hi*every*one
-	 *		   ^^
+	 *                   ^^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		   ^ ^
+	 *                   ^ ^
 	 *     pattern:   hi*every*one
-	 *		   ^ ^ MISMATCH
+	 *                   ^ ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		    ^
+	 *                    ^
 	 *     pattern:   hi*every*one
-	 *		   ^ MISMATCH
+	 *                   ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		     ^
+	 *                     ^
 	 *     pattern:   hi*every*one
-	 *		   ^ MISMATCH
+	 *                   ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^
+	 *                      ^
 	 *     pattern:   hi*every*one
-	 *		   ^
+	 *                   ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^^
+	 *                      ^^
 	 *     pattern:   hi*every*one
-	 *		   ^^
+	 *                   ^^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^ ^
+	 *                      ^ ^
 	 *     pattern:   hi*every*one
-	 *		   ^ ^
+	 *                   ^ ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^  ^
+	 *                      ^  ^
 	 *     pattern:   hi*every*one
-	 *		   ^  ^
+	 *                   ^  ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *		      ^   ^
+	 *                      ^   ^
 	 *     pattern:   hi*every*one
-	 *		   ^   ^
+	 *                   ^   ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			   ^
+	 *                           ^
 	 *     pattern:   hi*every*one
-	 *			^
+	 *                        ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			   ^
+	 *                           ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			    ^
+	 *                            ^
 	 *     pattern:   hi*every*one
-	 *			 ^
+	 *                         ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			    ^^
+	 *                            ^^
 	 *     pattern:   hi*every*one
-	 *			 ^^
+	 *                         ^^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			    ^ ^
+	 *                            ^ ^
 	 *     pattern:   hi*every*one
-	 *			 ^ ^ MISMATCH
+	 *                         ^ ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			     ^
+	 *                             ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			      ^
+	 *                              ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *			       ^
+	 *                               ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				^
+	 *                                ^
 	 *     pattern:   hi*every*one
-	 *			 ^ MISMATCH
+	 *                         ^ MISMATCH
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				 ^
+	 *                                 ^
 	 *     pattern:   hi*every*one
-	 *			 ^
+	 *                         ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				 ^^
+	 *                                 ^^
 	 *     pattern:   hi*every*one
-	 *			 ^^
+	 *                         ^^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				 ^ ^
+	 *                                 ^ ^
 	 *     pattern:   hi*every*one
-	 *			 ^ ^
+	 *                         ^ ^
 	 *
 	 *     candidate: hi ev every onyx one
-	 *				 ^  ^
+	 *                                 ^  ^
 	 *     pattern:   hi*every*one
-	 *			 ^  ^ SUCCESS
+	 *                         ^  ^ SUCCESS
 	 */
 	while ((c - candidate) < candidate_len && *c != '\0') {
 		assert(*c);