X-Git-Url: https://vcs.maemo.org/git/?a=blobdiff_plain;f=test%2Fmonitor-connman;h=886373acadae5cbfcca4f5ae951bcd9998a2e662;hb=6f24662363c391c653d4a90518b0ff664f3ae5c4;hp=2c4b9bdddc194e670a6379029470d4b00acf8084;hpb=58a1be7d56108ec65f95f522fbd7c4ee6bff7f86;p=connman diff --git a/test/monitor-connman b/test/monitor-connman index 2c4b9bd..886373a 100755 --- a/test/monitor-connman +++ b/test/monitor-connman @@ -7,7 +7,11 @@ import dbus.mainloop.glib def property_changed(name, value, path, interface): iface = interface[interface.rfind(".") + 1:] - print "{%s} [%s] %s = %s" % (iface, path, name, str(value)) + if name in ["Strength", "Priority"]: + val = int(value) + else: + val = str(value) + print "{%s} [%s] %s = %s" % (iface, path, name, val) if __name__ == '__main__': dbus.mainloop.glib.DBusGMainLoop(set_as_default=True)