Commit 2105b52e authored by Randy Dunlap's avatar Randy Dunlap Committed by David S. Miller
Browse files

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: 5968a70d

 ("textsearch: fix kernel-doc warnings and add kernel-api section")
Signed-off-by: default avatarRandy Dunlap <>
Cc: "David S. Miller" <>
Signed-off-by: default avatarDavid S. Miller <>
parent 4094871d
......@@ -89,9 +89,9 @@
* goto errout;
* }
* pos = textsearch_find_continuous(conf, \&state, example, strlen(example));
* pos = textsearch_find_continuous(conf, &state, example, strlen(example));
* if (pos != UINT_MAX)
* panic("Oh my god, dancing chickens at \%d\n", pos);
* panic("Oh my god, dancing chickens at %d\n", pos);
* textsearch_destroy(conf);
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment