Skip to content

Commit

Permalink
Merge pull request #18 from jean-edouard/devidinstate
Browse files Browse the repository at this point in the history
status RPC: print vusb device ID
  • Loading branch information
eric-ch authored May 30, 2018
2 parents 75b12c5 + 10b7d44 commit c269a8c
Showing 1 changed file with 1 addition and 0 deletions.
1 change: 1 addition & 0 deletions src/rpc.c
Original file line number Diff line number Diff line change
Expand Up @@ -485,6 +485,7 @@ gboolean ctxusb_daemon_state(CtxusbDaemonObject *this,
list_for_each(pos, &devices.list) {
device = list_entry(pos, device_t, list);
l = add_to_string(OUT_state, l, " %s - %s", device->shortname, device->longname);
l = add_to_string(OUT_state, l, " ID: %d", device_make_id(device->busid, device->devid));
l = add_to_string(OUT_state, l, " Type: %d", device->type);
l = add_to_string(OUT_state, l, " Bus ID: %d, Device ID: %d", device->busid, device->devid);
l = add_to_string(OUT_state, l, " Vendor: 0x%04X, Device: 0x%04X", device->vendorid, device->deviceid);
Expand Down

0 comments on commit c269a8c

Please sign in to comment.