chiark / gitweb /
don't log error if database does not exist
authorKay Sievers <kay.sievers@suse.de>
Tue, 20 Dec 2005 10:23:08 +0000 (11:23 +0100)
committerKay Sievers <kay.sievers@suse.de>
Tue, 20 Dec 2005 10:23:08 +0000 (11:23 +0100)
Signed-off-by: Kay Sievers <kay.sievers@suse.de>
udev_db.c

index 6e9a118..6b9d5e8 100644 (file)
--- 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;
        }