diff options
author | Kay Sievers <kay@vrfy.org> | 2013-02-07 21:53:10 +0100 |
---|---|---|
committer | Kay Sievers <kay@vrfy.org> | 2013-02-07 21:54:49 +0100 |
commit | beb23689e357ed549f5c9d4a3440da2132a419f1 (patch) | |
tree | b43eaea30c469e2e7c34689dc35ddcbcddcae7f7 /src/libudev | |
parent | 1f28b2deb4e118cd2d2a5138ccb4cc45841c136d (diff) |
udev: remove HWDB_BIN
Diffstat (limited to 'src/libudev')
-rw-r--r-- | src/libudev/libudev-hwdb.c | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/libudev/libudev-hwdb.c b/src/libudev/libudev-hwdb.c index 09096c4d71..42ab6d9a6b 100644 --- a/src/libudev/libudev-hwdb.c +++ b/src/libudev/libudev-hwdb.c @@ -271,30 +271,30 @@ _public_ struct udev_hwdb *udev_hwdb_new(struct udev *udev) { hwdb->refcount = 1; udev_list_init(udev, &hwdb->properties_list, true); - hwdb->f = fopen(HWDB_BIN, "re"); + hwdb->f = fopen("/etc/udev/hwdb.bin", "re"); if (!hwdb->f) { - log_debug("error reading %s: %m", HWDB_BIN); + log_debug("error reading /etc/udev/hwdb.bin: %m"); udev_hwdb_unref(hwdb); return NULL; } if (fstat(fileno(hwdb->f), &hwdb->st) < 0 || (size_t)hwdb->st.st_size < offsetof(struct trie_header_f, strings_len) + 8) { - log_debug("error reading %s: %m", HWDB_BIN); + log_debug("error reading /etc/udev/hwdb.bin: %m"); udev_hwdb_unref(hwdb); return NULL; } hwdb->map = mmap(0, hwdb->st.st_size, PROT_READ, MAP_SHARED, fileno(hwdb->f), 0); if (hwdb->map == MAP_FAILED) { - log_debug("error mapping %s: %m", HWDB_BIN); + log_debug("error mapping /etc/udev/hwdb.bin: %m"); udev_hwdb_unref(hwdb); return NULL; } if (memcmp(hwdb->map, sig, sizeof(hwdb->head->signature)) != 0 || (size_t)hwdb->st.st_size != le64toh(hwdb->head->file_size)) { - log_debug("error recognizing the format of %s", HWDB_BIN); + log_debug("error recognizing the format of /etc/udev/hwdb.bin"); udev_hwdb_unref(hwdb); return NULL; } |