]> git.ipfire.org Git - thirdparty/cups.git/commitdiff
Show device filenames on error.
authormike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 18 Jan 2002 16:48:01 +0000 (16:48 +0000)
committermike <mike@7a7537e8-13f0-0310-91df-b6672ffda945>
Fri, 18 Jan 2002 16:48:01 +0000 (16:48 +0000)
git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/branches/branch-1.2@2047 7a7537e8-13f0-0310-91df-b6672ffda945

backend/parallel.c
backend/serial.c
backend/usb.c

index dc60a2f58c1c5147dd828319d86bb4795b5b3940..4ca57a7549b35198a15542d36c850b4525c5961d 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: parallel.c,v 1.29.2.2 2002/01/02 18:04:18 mike Exp $"
+ * "$Id: parallel.c,v 1.29.2.3 2002/01/18 16:48:00 mike Exp $"
  *
  *   Parallel port backend for the Common UNIX Printing System (CUPS).
  *
@@ -178,7 +178,8 @@ main(int  argc,             /* I - Number of command-line arguments (6 or 7) */
       }
       else
       {
-       perror("ERROR: Unable to open parallel port device file");
+       fprintf(stderr, "ERROR: Unable to open parallel port device file \"%s\": %s\n",
+               resource, strerror(errno));
        return (1);
       }
     }
@@ -634,5 +635,5 @@ list_devices(void)
 
 
 /*
- * End of "$Id: parallel.c,v 1.29.2.2 2002/01/02 18:04:18 mike Exp $".
+ * End of "$Id: parallel.c,v 1.29.2.3 2002/01/18 16:48:00 mike Exp $".
  */
index e03f9e97a10477965c8047d9c2bfe8065eb19dee..44c333c50fd8073779ea58f3377dc73c80c5418f 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: serial.c,v 1.32.2.3 2002/01/02 18:04:18 mike Exp $"
+ * "$Id: serial.c,v 1.32.2.4 2002/01/18 16:48:01 mike Exp $"
  *
  *   Serial port backend for the Common UNIX Printing System (CUPS).
  *
@@ -199,7 +199,8 @@ main(int  argc,             /* I - Number of command-line arguments (6 or 7) */
       }
       else
       {
-       perror("ERROR: Unable to open serial port device file");
+       fprintf(stderr, "ERROR: Unable to open serial port device file \"%s\": %s\n",
+               resource, strerror(errno));
        return (1);
       }
     }
@@ -862,5 +863,5 @@ list_devices(void)
 
 
 /*
- * End of "$Id: serial.c,v 1.32.2.3 2002/01/02 18:04:18 mike Exp $".
+ * End of "$Id: serial.c,v 1.32.2.4 2002/01/18 16:48:01 mike Exp $".
  */
index 71e1a318d1c4471861b68757e877c2f4bd6b05db..3e8b518d054de7bd00b81d4313ec0050f24b1ffb 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: usb.c,v 1.18.2.2 2002/01/02 18:04:18 mike Exp $"
+ * "$Id: usb.c,v 1.18.2.3 2002/01/18 16:48:01 mike Exp $"
  *
  *   USB port backend for the Common UNIX Printing System (CUPS).
  *
@@ -167,7 +167,8 @@ main(int  argc,             /* I - Number of command-line arguments (6 or 7) */
       }
       else
       {
-       perror("ERROR: Unable to open USB port device file");
+       fprintf(stderr, "ERROR: Unable to open USB port device file \"%s\": %s\n",
+               resource, strerror(errno));
        return (1);
       }
     }
@@ -445,5 +446,5 @@ list_devices(void)
 
 
 /*
- * End of "$Id: usb.c,v 1.18.2.2 2002/01/02 18:04:18 mike Exp $".
+ * End of "$Id: usb.c,v 1.18.2.3 2002/01/18 16:48:01 mike Exp $".
  */