diff options
author | Kay Sievers <kay.sievers@suse.de> | 2005-12-20 11:23:08 +0100 |
---|---|---|
committer | Kay Sievers <kay.sievers@suse.de> | 2005-12-20 11:23:08 +0100 |
commit | caa4fd85aeff9c40897d34fba09b4fb7c18d2198 (patch) | |
tree | e9edae101392a4a29d3ecdb682a9a6d269a25538 /udev_db.c | |
parent | ba65db20cfa6754ed7e0d0c5ecc82a58f481e070 (diff) |
don't log error if database does not exist
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
Diffstat (limited to 'udev_db.c')
-rw-r--r-- | udev_db.c | 4 |
1 files changed, 2 insertions, 2 deletions
@@ -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; } |