summaryrefslogtreecommitdiff
path: root/examples
diff options
context:
space:
mode:
authorLudovic Rousseau <ludovic.rousseau@gmail.com>2012-09-13 15:50:43 +0200
committerPete Batard <pete@akeo.ie>2012-09-14 00:38:06 +0100
commit6fbd3dd813827751c9ebe0ea3dfe5e5cef1f2e00 (patch)
treedc937aa0ffcad2b684dbc007a60cd6f698e3624f /examples
parent01da267d93b01b39f7c8102ab32b5b9cae901b4a (diff)
downloadlibusb-6fbd3dd813827751c9ebe0ea3dfe5e5cef1f2e00.tar.gz
Samples: Display VID:PID of the tested device in xusb
* Also amend the wording of the "no option" comment. * Closes #42
Diffstat (limited to 'examples')
-rw-r--r--examples/xusb.c4
1 files changed, 2 insertions, 2 deletions
diff --git a/examples/xusb.c b/examples/xusb.c
index 14a3432..1117ace 100644
--- a/examples/xusb.c
+++ b/examples/xusb.c
@@ -750,7 +750,7 @@ static int test_device(uint16_t vid, uint16_t pid)
uint8_t string_index[3]; // indexes of the string descriptors
uint8_t endpoint_in = 0, endpoint_out = 0; // default IN and OUT endpoints
- printf("Opening device...\n");
+ printf("Opening device %04X:%04X...\n", vid, pid);
handle = libusb_open_device_with_vid_pid(NULL, vid, pid);
if (handle == NULL) {
@@ -1016,7 +1016,7 @@ int main(int argc, char** argv)
printf(" -p : test Sony PS3 SixAxis controller\n");
printf(" -s : test Microsoft Sidewinder Precision Pro (HID)\n");
printf(" -x : test Microsoft XBox Controller Type S\n");
- printf("If no option is provided, xusb attempts to run the most appropriate test\n");
+ printf("If only the vid:pid is provided, xusb attempts to run the most appropriate test\n");
return 0;
}