Skip to content

Commit

Permalink
tools/list-devices: don't list an unset uniq as '(null)'
Browse files Browse the repository at this point in the history
  • Loading branch information
whot committed Mar 5, 2025
1 parent 12018db commit aedbdbe
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/list-devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -75,7 +75,7 @@ static void print_device_info (WacomDevice *device, WacomBusType bus_type_filter
if (vid != 0 || pid != 0 || bus != 0)
printf("- { bus: '%s',%*svid: '0x%04x', pid: '0x%04x', name: '%s', uniq: '%s' }\n",
bus, (int)(10 - strlen(bus)), " ",
vid, pid, name, uniq);
vid, pid, name, uniq ? uniq : "");
}
}
}
Expand Down

0 comments on commit aedbdbe

Please sign in to comment.