Skip to content

Commit

Permalink
tools: ts_uinput: fix minor scope issue
Browse files Browse the repository at this point in the history
  • Loading branch information
merge committed Dec 5, 2016
1 parent 7c873f3 commit 8a64572
Showing 1 changed file with 4 additions and 1 deletion.
5 changes: 4 additions & 1 deletion tools/ts_uinput.c
Original file line number Diff line number Diff line change
Expand Up @@ -631,9 +631,12 @@ int main(int argc, char **argv)
if (data.uinput_version > 3) {
char name[64];
int ret = ioctl(data.fd_uinput, UI_GET_SYSNAME(sizeof(name)), name);
if (ret >= 0)
if (ret >= 0) {
fprintf(stdout, "%s\n", name);
fflush(stdout);
} else {
perror("ioctl UI_GET_SYSNAME");
}
} else {
fprintf(stderr, DEFAULT_UINPUT_NAME ": See the kernel logs for the device number\n");
}
Expand Down

0 comments on commit 8a64572

Please sign in to comment.