OSDN Git Service

tunerec: print errno when writing to output file has failed.
[rec10/rec10-git.git] / tunerec / tunerec.c
index 8201f24..b2fd0a2 100755 (executable)
@@ -300,7 +300,7 @@ void * record_write(void * priv) {
                }
                if ( rt > 0 ) {
                        // [buf] is not correctly written to [fout]
-                       printf("output file write failed\n");
+                       printf("output file write failed. err=%d\n", errno);
                        goto error;
                }
        }
@@ -318,7 +318,8 @@ int main(int argc, char *argv[]) {
        int rectime;
 
        if (argc != 6) {
-               fprintf(stderr, "Usage: %s adapter_nr freq tsid rectime output\n", argv[0]);
+               fprintf(stderr, "Usage  : %s adapter_nr freq tsid rectime output\n", argv[0]);
+               fprintf(stderr, "Version: 0.0.1\n");
                return 1;
        }
        adapter_nr = strtol(argv[1], NULL, 0);