[lttng-dev] [PATCH lttng-ust] Fix formatting in strutils_star_glob_match explanation

Mathieu Desnoyers mathieu.desnoyers at efficios.com
Fri Mar 17 21:07:46 UTC 2017


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

-- 
Mathieu Desnoyers
EfficiOS Inc.
http://www.efficios.com


More information about the lttng-dev mailing list