From 822f37a68cc6f5cbd85670d318e230ed4f9271b5 Mon Sep 17 00:00:00 2001 From: Yaroslav Chvanov Date: Sun, 5 Mar 2023 16:29:29 +0300 Subject: [PATCH] libratbag: check if profile is dirty in sanity check --- src/libratbag.c | 7 +++++++ 1 file changed, 7 insertions(+) diff --git a/src/libratbag.c b/src/libratbag.c index d87ad121..754c05a0 100644 --- a/src/libratbag.c +++ b/src/libratbag.c @@ -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 */