]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/ipp.c
Load cups into easysw/current.
[thirdparty/cups.git] / backend / ipp.c
index 07699d655e54ce68fa66cb9eb868bfdb6fe6d11e..878f634e1f3999c2e1131f18293e858fcd79d2f3 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: ipp.c 5180 2006-02-26 01:31:45Z mike $"
+ * "$Id: ipp.c 5241 2006-03-07 22:07:44Z mike $"
  *
  *   IPP backend for the Common UNIX Printing System (CUPS).
  *
@@ -507,6 +507,8 @@ main(int  argc,                             /* I - Number of command-line args */
   * Try connecting to the remote server...
   */
 
+  fputs("STATE: +connecting-to-device\n", stderr);
+
   do
   {
     fprintf(stderr, "INFO: Connecting to %s on port %d...\n", hostname, port);
@@ -563,6 +565,7 @@ main(int  argc,                             /* I - Number of command-line args */
   }
   while (http == NULL);
 
+  fputs("STATE: -connecting-to-device\n", stderr);
   fprintf(stderr, "INFO: Connected to %s...\n", hostname);
 
  /*
@@ -1242,8 +1245,8 @@ compress_files(int  num_files,            /* I - Number of files */
     while ((bytes = cupsFileRead(in, buffer, sizeof(buffer))) > 0)
       if (cupsFileWrite(out, buffer, bytes) < bytes)
       {
-        fprintf(stderr, "ERROR: Unable to write %d bytes to \"%s\": %s\n",
-               bytes, filename, strerror(errno));
+        fprintf(stderr, "ERROR: Unable to write " CUPS_LLFMT " bytes to \"%s\": %s\n",
+               CUPS_LLCAST bytes, filename, strerror(errno));
         cupsFileClose(in);
         cupsFileClose(out);
        exit(CUPS_BACKEND_FAILED);
@@ -1615,5 +1618,5 @@ sigterm_handler(int sig)          /* I - Signal */
 
 
 /*
- * End of "$Id: ipp.c 5180 2006-02-26 01:31:45Z mike $".
+ * End of "$Id: ipp.c 5241 2006-03-07 22:07:44Z mike $".
  */