diff options
author | Marco d'Itri <md@Linux.IT> | 2005-11-07 18:44:18 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-11-07 18:44:18 +0100 |
commit | ff3e4bed21aaff673284f2e024da26c1e39cfda6 (patch) | |
tree | 41d3656f4ec95d0b3d7cc4d510501b7a2529c5b1 /udev_rules_parse.c | |
parent | b6d474506f8935084e423f78035ea7206d4c3da0 (diff) |
add strerror() to error logs
Diffstat (limited to 'udev_rules_parse.c')
-rw-r--r-- | udev_rules_parse.c | 2 |
1 files changed, 1 insertions, 1 deletions
diff --git a/udev_rules_parse.c b/udev_rules_parse.c index 9041c383e0..b664b983fb 100644 --- a/udev_rules_parse.c +++ b/udev_rules_parse.c @@ -538,7 +538,7 @@ static int parse_file(struct udev_rules *rules, const char *filename) int retval = 0; if (file_map(filename, &buf, &bufsize) != 0) { - err("can't open '%s' as rules file", filename); + err("can't open '%s' as rules file: %s", filename, strerror(errno)); return -1; } dbg("reading '%s' as rules file", filename); |