diff --git a/tools/libinput-record.c b/tools/libinput-record.c index 7efb0f6e..ecbf6e44 100644 --- a/tools/libinput-record.c +++ b/tools/libinput-record.c @@ -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; }