Improve error message

This commit is contained in:
Moritz 'Morty' Strübe 2015-05-08 09:15:21 +02:00
parent 1e359d2324
commit 16f7c2448c

View file

@ -174,7 +174,7 @@ main(int argc, char **argv)
#endif
if(fd < 0) {
fprintf(stderr, "\n");
perror(device);
perror("open");
exit(-1);
}
fprintf(stderr, " [OK]\n");