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 #endif
if(fd < 0) { if(fd < 0) {
fprintf(stderr, "\n"); fprintf(stderr, "\n");
perror(device); perror("open");
exit(-1); exit(-1);
} }
fprintf(stderr, " [OK]\n"); fprintf(stderr, " [OK]\n");