]> rtime.felk.cvut.cz Git - mf624-simulink.git/commitdiff
Improve error/warning message
authorMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 23 Jul 2013 15:38:48 +0000 (17:38 +0200)
committerMichal Sojka <sojkam1@fel.cvut.cz>
Tue, 23 Jul 2013 15:38:48 +0000 (17:38 +0200)
mf624_SIMULINK.c

index f9cb9736d1d70c1b3926b8490b6fe935e53572c7..a753753c68b676d4ded1639f0533a849d928dd10 100644 (file)
@@ -209,7 +209,7 @@ int open_device(char* path) {
 
        device_fd = open(path, O_RDWR | O_SYNC);
        if (device_fd == -1) {
-               perror("open()");
+               perror(path);
                return -1;
        }