summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorKay Sievers <kay.sievers@suse.de>2005-12-20 11:23:08 +0100
committerKay Sievers <kay.sievers@suse.de>2005-12-20 11:23:08 +0100
commitcaa4fd85aeff9c40897d34fba09b4fb7c18d2198 (patch)
treee9edae101392a4a29d3ecdb682a9a6d269a25538
parentba65db20cfa6754ed7e0d0c5ecc82a58f481e070 (diff)
don't log error if database does not exist
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
-rw-r--r--udev_db.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/udev_db.c b/udev_db.c
index 6e9a1187d0..6b9d5e8426 100644
--- a/udev_db.c
+++ b/udev_db.c
@@ -212,7 +212,7 @@ int udev_db_lookup_name(const char *name, char *devpath, size_t len)
strlcat(dbpath, "/"DB_DIR, sizeof(dbpath));
dir = opendir(dbpath);
if (dir == NULL) {
- err("unable to open udev_db '%s': %s", dbpath, strerror(errno));
+ info("no udev_db available '%s': %s", dbpath, strerror(errno));
return -1;
}
@@ -283,7 +283,7 @@ int udev_db_get_all_entries(struct list_head *name_list)
strlcat(dbpath, "/"DB_DIR, sizeof(dbpath));
dir = opendir(dbpath);
if (dir == NULL) {
- err("unable to open udev_db '%s': %s", dbpath, strerror(errno));
+ info("no udev_db available '%s': %s", dbpath, strerror(errno));
return -1;
}