From: Luiz Augusto von Dentz <luiz.dentz@gmail.com>
To: linux-bluetooth@vger.kernel.org
Subject: [PATCH BlueZ 2/4] Print Vendor/Product/Version in hexadecimal
Date: Thu, 22 Sep 2011 18:51:50 +0300 [thread overview]
Message-ID: <1316706712-17611-2-git-send-email-luiz.dentz@gmail.com> (raw)
In-Reply-To: <1316706712-17611-1-git-send-email-luiz.dentz@gmail.com>
From: Luiz Augusto von Dentz <luiz.von.dentz@intel.com>
This is how their are more commonly known.
---
test/list-devices | 6 ++++++
1 files changed, 6 insertions(+), 0 deletions(-)
diff --git a/test/list-devices b/test/list-devices
index 9120714..cb564be 100755
--- a/test/list-devices
+++ b/test/list-devices
@@ -67,6 +67,12 @@ for i in adapter_list:
print " %s = %s" % (key, list)
elif (key == "Class"):
print " %s = 0x%06x" % (key, value)
+ elif (key == "Vendor"):
+ print " %s = 0x%04x" % (key, value)
+ elif (key == "Product"):
+ print " %s = 0x%04x" % (key, value)
+ elif (key == "Version"):
+ print " %s = 0x%04x" % (key, value)
else:
print " %s = %s" % (key, value)
--
1.7.6.2
next prev parent reply other threads:[~2011-09-22 15:51 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2011-09-22 15:51 [PATCH BlueZ 1/4] Add Vendor, Product and Version properties to org.bluez.Device Luiz Augusto von Dentz
2011-09-22 15:51 ` Luiz Augusto von Dentz [this message]
2011-09-22 15:51 ` [PATCH BlueZ 3/4] Remove use of read_device_id in input plugin Luiz Augusto von Dentz
2011-09-22 15:51 ` [PATCH BlueZ 4/4] Remove use of read_device_id in wiimote plugin Luiz Augusto von Dentz
2011-10-02 22:45 ` [PATCH BlueZ 1/4] Add Vendor, Product and Version properties to org.bluez.Device Johan Hedberg
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=1316706712-17611-2-git-send-email-luiz.dentz@gmail.com \
--to=luiz.dentz@gmail.com \
--cc=linux-bluetooth@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox