]> git.ipfire.org Git - thirdparty/cups.git/blobdiff - backend/runloop.c
Merge changes from CUPS 1.3.1.
[thirdparty/cups.git] / backend / runloop.c
index a3499e95f219803846480400f357bbd9eba7a976..0cd38bb61661a1d109dd4f484bcea18c97c999f0 100644 (file)
@@ -1,5 +1,5 @@
 /*
- * "$Id: runloop.c 6649 2007-07-11 21:46:42Z mike $"
+ * "$Id: runloop.c 6835 2007-08-22 18:34:34Z mike $"
  *
  *   Common run loop APIs for the Common UNIX Printing System (CUPS).
  *
@@ -118,8 +118,8 @@ backendDrainOutput(int print_fd,    /* I - Print file descriptor */
         if (errno != ENOSPC && errno != ENXIO && errno != EAGAIN &&
            errno != EINTR && errno != ENOTTY)
        {
-         fprintf(stderr, _("ERROR: Unable to write print data: %s\n"),
-                 strerror(errno));
+         _cupsLangPrintf(stderr, _("ERROR: Unable to write print data: %s\n"),
+                         strerror(errno));
          return (-1);
        }
       }
@@ -230,7 +230,7 @@ backendRunLoop(
        if (errno == ENXIO && offline != 1)
        {
          fputs("STATE: +offline-error\n", stderr);
-         fputs(_("INFO: Printer is currently off-line.\n"), stderr);
+         _cupsLangPuts(stderr, _("INFO: Printer is currently off-line.\n"));
          offline = 1;
        }
        else if (errno == EINTR && total_bytes == 0)
@@ -321,7 +321,7 @@ backendRunLoop(
          if (paperout != 1)
          {
            fputs("STATE: +media-empty-error\n", stderr);
-           fputs(_("ERROR: Out of paper!\n"), stderr);
+           _cupsLangPuts(stderr, _("ERROR: Out of paper!\n"));
            paperout = 1;
          }
         }
@@ -330,7 +330,7 @@ backendRunLoop(
          if (offline != 1)
          {
            fputs("STATE: +offline-error\n", stderr);
-           fputs(_("INFO: Printer is currently off-line.\n"), stderr);
+           _cupsLangPuts(stderr, _("INFO: Printer is currently off-line.\n"));
            offline = 1;
          }
        }
@@ -352,7 +352,7 @@ backendRunLoop(
        if (offline)
        {
          fputs("STATE: -offline-error\n", stderr);
-         fputs(_("INFO: Printer is now on-line.\n"), stderr);
+         _cupsLangPuts(stderr, _("INFO: Printer is now on-line.\n"));
          offline = 0;
        }
 
@@ -374,5 +374,5 @@ backendRunLoop(
 
 
 /*
- * End of "$Id: runloop.c 6649 2007-07-11 21:46:42Z mike $".
+ * End of "$Id: runloop.c 6835 2007-08-22 18:34:34Z mike $".
  */