summaryrefslogtreecommitdiffstats
path: root/init/ueventd_parser.cpp
diff options
context:
space:
mode:
authorChristopher Desjardins <christopher.desjardins@tomtom.com>2017-03-29 13:33:00 +0200
committerTom Cherry <tomcherry@google.com>2017-04-03 22:20:55 +0000
commit7d3e2c4d4ee0747bb2836747411d154b5b9738c5 (patch)
tree2329fa1e16bc525839855eacca1be56a0265c03f /init/ueventd_parser.cpp
parent8678872a0076d31335d91622b9b2b5d7b0fc3551 (diff)
downloadsystem_core-7d3e2c4d4ee0747bb2836747411d154b5b9738c5.tar.gz
system_core-7d3e2c4d4ee0747bb2836747411d154b5b9738c5.tar.bz2
system_core-7d3e2c4d4ee0747bb2836747411d154b5b9738c5.zip
Make ueventd error messages indicate where the error is in ueventd script
Test: Boot bullhead Test: Observe errors with file and line number with faulty ueventd.rc Change-Id: Ieae6151e253f1e6437dfdebd14da4e1e04a45fae
Diffstat (limited to 'init/ueventd_parser.cpp')
-rw-r--r--init/ueventd_parser.cpp4
1 files changed, 2 insertions, 2 deletions
diff --git a/init/ueventd_parser.cpp b/init/ueventd_parser.cpp
index baff58c36..554c1e35d 100644
--- a/init/ueventd_parser.cpp
+++ b/init/ueventd_parser.cpp
@@ -236,6 +236,6 @@ int ueventd_parse_config_file(const char *fn)
return 0;
}
-static void parse_line_device(parse_state*, int nargs, char** args) {
- set_device_permission(nargs, args);
+static void parse_line_device(parse_state* state, int nargs, char** args) {
+ set_device_permission(state->filename, state->line, nargs, args);
}