1
0
forked from drath/libratbag

libratbag: check if profile is dirty in sanity check

This commit is contained in:
Yaroslav Chvanov
2023-03-05 16:29:29 +03:00
parent 1df7316195
commit 822f37a68c

View File

@@ -299,6 +299,13 @@ ratbag_sanity_check_device(struct ratbag_device *device)
device->name);
goto out;
}
if (profile->dirty) {
log_bug_libratbag(ratbag,
"%s: profile is dirty while probing\n",
device->name);
/* Don't bail yet, as we may have some drivers that do this. */
}
}
/* Require 1 active profile */