mirror of
https://git.kernel.org/pub/scm/bluetooth/bluez.git
synced 2024-12-11 21:14:36 +08:00
test: Fix fd_properties printing
This commit is contained in:
parent
bd83307026
commit
92056d5dae
@ -75,7 +75,10 @@ class Profile(dbus.service.Object):
|
||||
fd = fd.take()
|
||||
print("NewConnection(%s, %d)" % (path, fd))
|
||||
for key in properties.keys():
|
||||
print(" %s = %s" % key, properties[key])
|
||||
if key == "Version" or key == "Features":
|
||||
print(" %s = 0x%04x" % (key, properties[key]))
|
||||
else:
|
||||
print(" %s = %s" % (key, properties[key]))
|
||||
|
||||
os.close(fd)
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user