mirror of
https://gitlab.freedesktop.org/libinput/libinput.git
synced 2026-01-03 13:50:13 +01:00
tools/record: compress a set of printfs into one
Signed-off-by: Peter Hutterer <peter.hutterer@who-t.net>
This commit is contained in:
parent
6e8aba9354
commit
1303adbf1b
1 changed files with 3 additions and 4 deletions
|
|
@ -1997,10 +1997,9 @@ select_device(void)
|
|||
free(namelist);
|
||||
|
||||
if (available_devices == 0) {
|
||||
fprintf(stderr, "No devices available. ");
|
||||
if (has_eaccess)
|
||||
fprintf(stderr, "Please re-run as root.");
|
||||
fprintf(stderr, "\n");
|
||||
fprintf(stderr,
|
||||
"No devices available.%s\n",
|
||||
has_eaccess ? " Please re-run as root." : "");
|
||||
return NULL;
|
||||
}
|
||||
|
||||
|
|
|
|||
Loading…
Add table
Reference in a new issue