Avoid filling the logs with repeated warning saying that no correct
voltage value was found for a power device. Improves the situation with
bugs https://bugzilla.redhat.com/show_bug.cgi?id=847874 and
https://bugzilla.redhat.com/show_bug.cgi?id=863524
Signed-off-by: Timothée Ravier
---
v3: Add a
Avoid filling the logs with repeated warning saying that no correct
voltage value was found for a power device. Improves the situation with
bugs https://bugzilla.redhat.com/show_bug.cgi?id=847874 and
https://bugzilla.redhat.com/show_bug.cgi?id=863524
Signed-off-by: Timothée Ravier
---
src/linux/
Hey Tim,
Timothée Ravier [2013-08-29 19:37 +0200]:
> + /* no valid value found; display a warning the first time for each
> + * device */
> + if (devices_already_warned == NULL) {
> + devices_already_warned = g_hash_table_new(g_str_hash,
> g_str_equal);
> + }
> +