summaryrefslogtreecommitdiff
path: root/client
diff options
context:
space:
mode:
authorRichard Hughes <richard@hughsie.com>2013-01-31 17:08:28 +0000
committerRichard Hughes <richard@hughsie.com>2013-01-31 17:08:28 +0000
commitf323925cc6bdd0488895e41d94150d4bef8c14b6 (patch)
tree780be9976317a06b8260afe1461e27b9cd3e0a30 /client
parentacf7b99f53a8814a065b4e217c22a9d318e2858b (diff)
downloadcolord-f323925cc6bdd0488895e41d94150d4bef8c14b6.tar.gz
Add some simple bitfield helpers
Diffstat (limited to 'client')
-rw-r--r--client/cd-util.c2
1 files changed, 1 insertions, 1 deletions
diff --git a/client/cd-util.c b/client/cd-util.c
index dd8d518..14eb8cb 100644
--- a/client/cd-util.c
+++ b/client/cd-util.c
@@ -518,7 +518,7 @@ cd_util_show_sensor (CdSensor *sensor)
caps = cd_sensor_get_caps (sensor);
caps_str = g_string_new ("");
for (i = 0; i < CD_SENSOR_CAP_LAST; i++) {
- ret = (caps & (1 << i)) > 0;
+ ret = cd_bitfield_contain (caps, i);
if (ret) {
g_string_append_printf (caps_str, "%s, ",
cd_util_sensor_cap_to_string (i));