Skip to content

Commit

Permalink
tools/list-local-devices: add a space for an empty styli array
Browse files Browse the repository at this point in the history
Previously it was "styli:[]" which doesn't look nice enough.
  • Loading branch information
whot committed Nov 7, 2024
1 parent 603c8a5 commit a6d7b88
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion tools/list-local-devices.c
Original file line number Diff line number Diff line change
Expand Up @@ -142,7 +142,7 @@ tablet_print_yaml(gpointer data, gpointer user_data)
g_list_foreach(d->nodes, print_devnode, NULL);

styli = libwacom_get_styli(d->dev, &nstyli);
printf(" styli:%s\n", nstyli > 0 ? "" : "[]");
printf(" styli:%s\n", nstyli > 0 ? "" : " []");
for (int i = 0; i < nstyli; i++) {
const WacomStylus *stylus = styli[i];
const char *type = "invalid";
Expand Down

0 comments on commit a6d7b88

Please sign in to comment.