[PATCH v3] Linux: Only one warning if no valid voltage found

2013-08-30 Thread Timothée Ravier
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

[PATCH v2] Linux: Only one warning if no valid voltage found

2013-08-30 Thread Timothée Ravier
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/

Re: [PATCH] Linux: Only one warning if no valid voltage found

2013-08-30 Thread Martin Pitt
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); > + } > +