- strlcpy(temp, key_val(rule, &rule->symlink), sizeof(temp));
- udev_rules_apply_format(udev, temp, sizeof(temp));
- if (rule->string_escape == ESCAPE_UNSET ||
- rule->string_escape == ESCAPE_REPLACE) {
- count = replace_chars(temp, ALLOWED_CHARS_FILE " ");
- if (count > 0)
- info("%i character(s) replaced\n" , count);
- }
- dbg("rule applied, added symlink(s) '%s'\n", temp);
+ util_strlcpy(temp, key_val(rule, &rule->symlink), sizeof(temp));
+ udev_rules_apply_format(udevice, temp, sizeof(temp));
+ if (rule->string_escape == ESCAPE_UNSET)
+ count = util_replace_chars(temp, ALLOWED_CHARS_FILE " ");
+ else if (rule->string_escape == ESCAPE_REPLACE)
+ count = util_replace_chars(temp, ALLOWED_CHARS_FILE);
+ if (count > 0)
+ info(udevice->udev, "%i character(s) replaced\n" , count);
+ dbg(udevice->udev, "rule applied, added symlink(s) '%s'\n", temp);