Add missing (GE)NL_SET_ERR_MSG_*() variants to the list of macros checked for strings ending with a newline.
Showing the changes to scripts (1 of 1 file). Show all
Unified · Split
| @@ -1,7 +1,6 @@ | ||
| 1 | 1 | // SPDX-License-Identifier: GPL-2.0-only |
| 2 | 2 | /// |
| 3 | −/// Catch strings ending in newline with GENL_SET_ERR_MSG, NL_SET_ERR_MSG, | |
| 4 | −/// NL_SET_ERR_MSG_MOD. | |
| 3 | +/// Catch strings ending in newline with (GE)NL_SET_ERR_MSG*. | |
| 5 | 4 | /// |
| 6 | 5 | // Confidence: Very High |
| 7 | 6 | // Copyright: (C) 2020 Intel Corporation |
| @@ -17,7 +16,11 @@ expression e; · 9 unmodified lines | ||
| 17 | 16 | constant m; |
| 18 | 17 | position p; |
| 19 | 18 | @@ |
| 20 | − \(GENL_SET_ERR_MSG\|NL_SET_ERR_MSG\|NL_SET_ERR_MSG_MOD\)(e,m@p) | |
| 19 | + \(GENL_SET_ERR_MSG\|GENL_SET_ERR_MSG_FMT\|NL_SET_ERR_MSG\|NL_SET_ERR_MSG_MOD\| | |
| 20 | + NL_SET_ERR_MSG_FMT\|NL_SET_ERR_MSG_FMT_MOD\|NL_SET_ERR_MSG_WEAK\| | |
| 21 | + NL_SET_ERR_MSG_WEAK_MOD\|NL_SET_ERR_MSG_ATTR_POL\| | |
| 22 | + NL_SET_ERR_MSG_ATTR_POL_FMT\|NL_SET_ERR_MSG_ATTR\| | |
| 23 | + NL_SET_ERR_MSG_ATTR_FMT\)(e,m@p,...) | |
| 21 | 24 | |
| 22 | 25 | @script:python@ |
| 23 | 26 | m << r.m; |
| @@ -32,7 +35,7 @@ expression r.e; · 8 unmodified lines | ||
| 32 | 35 | constant r.m; |
| 33 | 36 | position r.p; |
| 34 | 37 | @@ |
| 35 | − fname(e,m@p) | |
| 38 | + fname(e,m@p,...) | |
| 36 | 39 | |
| 37 | 40 | //---------------------------------------------------------- |
| 38 | 41 | // For context mode |
| @@ -43,7 +46,7 @@ identifier r1.fname; · 4 unmodified lines | ||
| 43 | 46 | expression r.e; |
| 44 | 47 | constant r.m; |
| 45 | 48 | @@ |
| 46 | −* fname(e,m) | |
| 49 | +* fname(e,m,...) | |
| 47 | 50 | |
| 48 | 51 | //---------------------------------------------------------- |
| 49 | 52 | // For org mode |