Skip to content

HTTPS clone URL

Subversion checkout URL

You can clone with HTTPS or Subversion.

Download ZIP
Browse files

add bus number and device address display

Its useful to show for an enumerated USB device:
 * Device Address assigned
 * on which Bus number

Signed-off-by: Vikram Pandita <vikrampandita@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
  • Loading branch information...
commit bb469f36f705e28c1d05f344c6e6d708dcdeac53 1 parent 3da5842
vikram pandita vikrampandita authored committed
Showing with 8 additions and 0 deletions.
  1. +8 −0 usbtree.c
8 usbtree.c
View
@@ -110,6 +110,14 @@ static void PopulateListBox (int deviceId)
sprintf (string, "\nSpeed: %s", tempString);
gtk_text_buffer_insert_at_cursor(textDescriptionBuffer, string,strlen(string));
+ /* Add Bus number */
+ sprintf (string, "\nBus:%4d", busNumber);
+ gtk_text_buffer_insert_at_cursor(textDescriptionBuffer, string,strlen(string));
+
+ /* Add device address */
+ sprintf (string, "\nAddress:%4d", deviceNumber);
+ gtk_text_buffer_insert_at_cursor(textDescriptionBuffer, string,strlen(string));
+
/* add ports if available */
if (device->maxChildren) {
sprintf (string, "\nNumber of Ports: %i", device->maxChildren);
Please sign in to comment.
Something went wrong with that request. Please try again.