diff options
author | Guy Harris <guy@alum.mit.edu> | 2019-01-28 14:08:02 -0800 |
---|---|---|
committer | Guy Harris <guy@alum.mit.edu> | 2019-01-28 22:08:41 +0000 |
commit | e8f54b8aed64d586bd0893e2c8b44bb42731761b (patch) | |
tree | 6b17aa54290b00b1ffc2bebd6876a46ca3a4e25a /epan/dfilter | |
parent | 311dc2f14a653738927d6a374e67610fe3a669bf (diff) |
Fix an error message.
I guess "s" in "The function s" was supposed to be "%s", giving the
function name. Make it so, and properly fetch the function name.
Change-Id: I67287f24626fa0a2816fb2cf574e5d9ff58713bf
Reviewed-on: https://code.wireshark.org/review/31787
Reviewed-by: Guy Harris <guy@alum.mit.edu>
Diffstat (limited to 'epan/dfilter')
-rw-r--r-- | epan/dfilter/grammar.lemon | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/epan/dfilter/grammar.lemon b/epan/dfilter/grammar.lemon index 72ab5118ea..301fc98032 100644 --- a/epan/dfilter/grammar.lemon +++ b/epan/dfilter/grammar.lemon @@ -105,7 +105,8 @@ any "error" symbols are shifted, if possible. */ dfilter_fail(dfw, "Syntax error near \"%s\".", hfinfo->abbrev); break; case STTYPE_FUNCTION: - dfilter_fail(dfw, "The function s was unexpected in this context."); + dfilter_fail(dfw, "The function %s was unexpected in this context.", + sttype_function_funcdef(TOKEN)->name); break; case STTYPE_SET: dfilter_fail(dfw, "Syntax error, SET."); |