"starting at character %tu ('%s')\n",
filename, lineno, linepos - line + 1, tmp);
if (linepos[1] == '#')
- log_info("hint: comments can only start at beginning of line");
+ log_error("hint: comments can only start at beginning of line");
}
break;
}
bool udev_rules_check_timestamp(struct udev_rules *rules)
{
+ if (!rules)
+ return false;
+
return paths_check_timestamp(rules->dirs, &rules->dirs_ts_usec, true);
}
strscpyl(tag_symlink, sizeof(tag_symlink), tags_dir, unescaped_filename, NULL);
r = symlink(device_node, tag_symlink);
if (r < 0 && errno != EEXIST) {
- log_error("failed to create symlink %s -> %s: %s\n", tag_symlink, device_node, strerror(errno));
+ log_error("failed to create symlink %s -> %s: %m\n", tag_symlink, device_node);
return -errno;
} else
r = 0;