Lines Matching defs:db
136 log_debug("device db: unknown key '%c'", key);
178 _cleanup_free_ char *db = NULL;
205 r = read_full_file(path, &db, &db_len);
210 return log_debug_errno(r, "sd-device: failed to read db '%s': %m", path);
219 if (!strchr(NEWLINE, db[i])) {
220 key = db[i];
227 if (db[i] != ':') {
228 log_debug("sd-device: ignoring invalid db entry with key '%c'", key);
232 db[i] = '\0';
239 value = &db[i];
245 if (strchr(NEWLINE, db[i]))
250 if (strchr(NEWLINE, db[i])) {
251 db[i] = '\0';
254 log_debug_errno(r, "sd-device: failed to handle db entry '%c:%s': %m", key, value);
261 assert_not_reached("invalid state when parsing db");
785 /* like DEVPATH_OLD, INTERFACE_OLD is not saved to the db, but only stays around for the current event */
1083 log_debug("created %s file '%s' for '%s'", has_info ? "db" : "empty",
1092 return log_error_errno(r, "failed to create %s file '%s' for '%s'", has_info ? "db" : "empty", path, device->devpath);