OSDN Git Service

tunerec: print errno when writing to output file has failed.
[rec10/rec10-git.git] / tunerec / tunerec.c
index 1aea926..b2fd0a2 100755 (executable)
@@ -300,7 +300,7 @@ void * record_write(void * priv) {
                }
                if ( rt > 0 ) {
                        // [buf] is not correctly written to [fout]
                }
                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;
                }
        }
                        goto error;
                }
        }