Skip to content

Commit

Permalink
[USB] is now appended properly before device names
Browse files Browse the repository at this point in the history
  • Loading branch information
Cacodemon345 committed Dec 16, 2024
1 parent 386e79f commit 3445b6a
Showing 1 changed file with 2 additions and 0 deletions.
2 changes: 2 additions & 0 deletions src/device.c
Original file line number Diff line number Diff line change
Expand Up @@ -509,6 +509,8 @@ device_get_name(const device_t *dev, int bus, char *name)
sbus = "COM";
else if (dev->flags & DEVICE_LPT)
sbus = "LPT";
else if (dev->flags & DEVICE_USB)
sbus = "USB";

if (sbus != NULL) {
/* First concatenate [<Bus>] before the device's name. */
Expand Down

0 comments on commit 3445b6a

Please sign in to comment.