Lines Matching defs:db
96 int device_add_property_aux(sd_device *device, const char *_key, const char *_value, bool db) {
102 if (db)
138 if (!db) {
1184 log_debug("device db: unknown key '%c'", key);
1254 _cleanup_free_ char *db = NULL;
1281 r = read_full_file(path, &db, &db_len);
1286 return log_debug_errno(r, "sd-device: failed to read db '%s': %m", path);
1295 if (!strchr(NEWLINE, db[i])) {
1296 key = db[i];
1303 if (db[i] != ':') {
1304 log_debug("sd-device: ignoring invalid db entry with key '%c'", key);
1308 db[i] = '\0';
1315 value = &db[i];
1321 if (strchr(NEWLINE, db[i]))
1326 if (strchr(NEWLINE, db[i])) {
1327 db[i] = '\0';
1330 log_debug_errno(r, "sd-device: failed to handle db entry '%c:%s': %m", key, value);
1337 assert_not_reached("invalid state when parsing db");