]> code.delx.au - pulseaudio/commitdiff
echo-cancel-test: When fopen() fails tell which file failed
authorStefan Huber <s.huber@bct-electronic.com>
Mon, 11 Feb 2013 09:56:46 +0000 (10:56 +0100)
committerTanu Kaskinen <tanuk@iki.fi>
Sat, 16 Feb 2013 19:46:27 +0000 (21:46 +0200)
src/modules/echo-cancel/module-echo-cancel.c

index db6b46c8b46f377cb51c2ced9d717e69f89727dc..9d94a8375d67db6a922c1c8c0d73a0618c19cc2a 100644 (file)
@@ -2103,17 +2103,17 @@ int main(int argc, char* argv[]) {
 
     u.captured_file = fopen(argv[2], "rb");
     if (u.captured_file == NULL) {
-        perror ("fopen failed");
+        perror ("Could not open capture file");
         goto fail;
     }
     u.played_file = fopen(argv[1], "rb");
     if (u.played_file == NULL) {
-        perror ("fopen failed");
+        perror ("Could not open play file");
         goto fail;
     }
     u.canceled_file = fopen(argv[3], "wb");
     if (u.canceled_file == NULL) {
-        perror ("fopen failed");
+        perror ("Could not open canceled file");
         goto fail;
     }
 
@@ -2156,7 +2156,7 @@ int main(int argc, char* argv[]) {
         u.drift_file = fopen(argv[5], "rt");
 
         if (u.drift_file == NULL) {
-            perror ("fopen failed");
+            perror ("Could not open drift file");
             goto fail;
         }
     }