Re: [PATCH 8/8] mdev: remember line number in rule

2019-12-17 Thread Lauri Kasanen
On Mon, 16 Dec 2019 22:56:56 +0100 Jan Klötzke wrote: > --- a/util-linux/mdev.c > +++ b/util-linux/mdev.c > @@ -299,6 +299,7 @@ struct rule { > IF_FEATURE_MDEV_EXEC(char *r_cmd;) > regex_t match; > struct envmatch *envmatch; > + int lineno; > }; int16_t? Surely mdev.conf

[PATCH 8/8] mdev: remember line number in rule

2019-12-16 Thread Jan Klötzke
When rules are caches from mdev.conf then their line number cannot be retrieved from the parser anymore. Instead store the line number in the rule so that a cached rule still shows the line number where it was coming from. Signed-off-by: Jan Klötzke --- util-linux/mdev.c | 9 - 1 file