diff options
author | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-05 04:05:17 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@vrfy.org> | 2008-11-05 04:05:17 +0100 |
commit | 08e7f22913075d25af283b3001db598840663f70 (patch) | |
tree | 8d8399ece89a3b22857ff55b1ff1475585546e30 /udev | |
parent | 0d5076dd92a35c3c7cf48e4998d08feac27827ff (diff) |
info() PROGRAM and IMPORT execution
Diffstat (limited to 'udev')
-rw-r--r-- | udev/udev-rules.c | 8 |
1 files changed, 8 insertions, 0 deletions
diff --git a/udev/udev-rules.c b/udev/udev-rules.c index 21fa11775d..e07cd3264c 100644 --- a/udev/udev-rules.c +++ b/udev/udev-rules.c @@ -2073,6 +2073,10 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event util_strlcpy(program, &rules->buf[cur->key.value_off], sizeof(program)); udev_event_apply_format(event, program, sizeof(program)); envp = udev_device_get_properties_envp(event->dev); + info(event->udev, "PROGRAM '%s' %s:%u\n", + program, + &rules->buf[rule->rule.filename_off], + rule->rule.filename_line); if (util_run_program(event->udev, program, envp, result, sizeof(result), NULL) != 0) { if (cur->key.op != OP_NOMATCH) goto nomatch; @@ -2109,6 +2113,10 @@ int udev_rules_apply_to_event(struct udev_rules *rules, struct udev_event *event util_strlcpy(import, &rules->buf[cur->key.value_off], sizeof(import)); udev_event_apply_format(event, import, sizeof(import)); + info(event->udev, "IMPORT '%s' %s:%u\n", + import, + &rules->buf[rule->rule.filename_off], + rule->rule.filename_line); if (import_program_into_properties(event->dev, import) != 0) if (cur->key.op != OP_NOMATCH) goto nomatch; |