OSDN Git Service

tunerec: print errno when writing to output file has failed.
authorLong.inus <long.inus@hotmail.co.jp>
Tue, 23 Jul 2013 15:07:51 +0000 (00:07 +0900)
committerLong.inus <long.inus@hotmail.co.jp>
Tue, 23 Jul 2013 15:07:51 +0000 (00:07 +0900)
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]
-                       printf("output file write failed\n");
+                       printf("output file write failed. err=%d\n", errno);
                        goto error;
                }
        }