summaryrefslogtreecommitdiff
path: root/udev_rules.c
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@vrfy.org>2007-07-14 20:43:43 +0200
committerKay Sievers <kay.sievers@vrfy.org>2007-07-14 20:43:43 +0200
commitfb819f5554530dd136d50aa40438e9dbeeceac01 (patch)
treec8a50c6c58ab6010dc63af0035e552119a5e8f28 /udev_rules.c
parent4110664d4f25f203b7d76ee56e5e23220b04eb69 (diff)
use global udev_log variable instead of parameter in run_program
Diffstat (limited to 'udev_rules.c')
-rw-r--r--udev_rules.c5
1 files changed, 2 insertions, 3 deletions
diff --git a/udev_rules.c b/udev_rules.c
index b2b4809d79..9483c2b8f8 100644
--- a/udev_rules.c
+++ b/udev_rules.c
@@ -190,7 +190,7 @@ static int import_program_into_env(struct udevice *udev, const char *program)
char result[2048];
size_t reslen;
- if (run_program(program, udev->dev->subsystem, result, sizeof(result), &reslen, (udev_log_priority >= LOG_INFO)) != 0)
+ if (run_program(program, udev->dev->subsystem, result, sizeof(result), &reslen) != 0)
return -1;
return import_keys_into_env(udev, result, reslen);
}
@@ -837,8 +837,7 @@ try_parent:
strlcpy(program, key_val(rule, &rule->program), sizeof(program));
udev_rules_apply_format(udev, program, sizeof(program));
- if (run_program(program, udev->dev->subsystem, result, sizeof(result),
- NULL, (udev_log_priority >= LOG_INFO)) != 0) {
+ if (run_program(program, udev->dev->subsystem, result, sizeof(result), NULL) != 0) {
dbg("PROGRAM is false");
udev->program_result[0] = '\0';
if (rule->program.operation != KEY_OP_NOMATCH)