Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

lib: textsearch: fix escapes in example code

This textsearch code example does not need the '\' escapes and they can
be misleading to someone reading the example. Also, gcc and sparse warn
that the "\%d" is an unknown escape sequence.

Fixes: 5968a70d7af5 ("textsearch: fix kernel-doc warnings and add kernel-api section")
Signed-off-by: Randy Dunlap <rdunlap@infradead.org>
Cc: "David S. Miller" <davem@davemloft.net>
Cc: netdev@vger.kernel.org
Signed-off-by: David S. Miller <davem@davemloft.net>

authored by

Randy Dunlap and committed by
David S. Miller
2105b52e 4094871d

+2 -2
+2 -2
lib/textsearch.c
··· 89 89 * goto errout; 90 90 * } 91 91 * 92 - * pos = textsearch_find_continuous(conf, \&state, example, strlen(example)); 92 + * pos = textsearch_find_continuous(conf, &state, example, strlen(example)); 93 93 * if (pos != UINT_MAX) 94 - * panic("Oh my god, dancing chickens at \%d\n", pos); 94 + * panic("Oh my god, dancing chickens at %d\n", pos); 95 95 * 96 96 * textsearch_destroy(conf); 97 97 */