summaryrefslogtreecommitdiff
path: root/backend/runloop.c
diff options
context:
space:
mode:
authorjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-04-02 15:56:16 +0000
committerjlovell <jlovell@a1ca3aef-8c08-0410-bb20-df032aa958be>2007-04-02 15:56:16 +0000
commitc0e1af835b65e53b4506f37f235c7cdc820dffa8 (patch)
tree02074fc1df79e914b7a6777ab1e6e9e6da1e79ad /backend/runloop.c
parentf42414bf8a43f4c1b464bf1de9d357edba4fd439 (diff)
downloadcups-c0e1af835b65e53b4506f37f235c7cdc820dffa8.tar.gz
Load cups into easysw/current.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@303 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'backend/runloop.c')
-rw-r--r--backend/runloop.c18
1 files changed, 10 insertions, 8 deletions
diff --git a/backend/runloop.c b/backend/runloop.c
index 461bbb4e7..dc2890a89 100644
--- a/backend/runloop.c
+++ b/backend/runloop.c
@@ -1,5 +1,5 @@
/*
- * "$Id: runloop.c 6170 2007-01-02 17:26:41Z mike $"
+ * "$Id: runloop.c 6403 2007-03-27 16:00:56Z mike $"
*
* Common run loop API for the Common UNIX Printing System (CUPS).
*
@@ -68,7 +68,8 @@ backendRunLoop(
#endif /* HAVE_SIGACTION && !HAVE_SIGSET */
- fprintf(stderr, "DEBUG: backendRunLoop(print_fd=%d, device_fd=%d, use_bc=%d)\n",
+ fprintf(stderr,
+ "DEBUG: backendRunLoop(print_fd=%d, device_fd=%d, use_bc=%d)\n",
print_fd, device_fd, use_bc);
/*
@@ -132,7 +133,7 @@ backendRunLoop(
if (errno == ENXIO && !offline)
{
fputs("STATE: +offline-error\n", stderr);
- fputs("INFO: Printer is currently off-line.\n", stderr);
+ fputs(_("INFO: Printer is currently off-line.\n"), stderr);
offline = 1;
}
@@ -216,8 +217,8 @@ backendRunLoop(
{
if (!paperout)
{
- fputs("ERROR: Out of paper!\n", stderr);
fputs("STATE: +media-empty-error\n", stderr);
+ fputs(_("ERROR: Out of paper!\n"), stderr);
paperout = 1;
}
}
@@ -226,13 +227,14 @@ backendRunLoop(
if (!offline)
{
fputs("STATE: +offline-error\n", stderr);
- fputs("INFO: Printer is currently off-line.\n", stderr);
+ fputs(_("INFO: Printer is currently off-line.\n"), stderr);
offline = 1;
}
}
else if (errno != EAGAIN && errno != EINTR && errno != ENOTTY)
{
- perror("ERROR: Unable to write print data");
+ fprintf(stderr, _("ERROR: Unable to write print data: %s\n"),
+ strerror(errno));
return (-1);
}
}
@@ -247,7 +249,7 @@ backendRunLoop(
if (offline)
{
fputs("STATE: -offline-error\n", stderr);
- fputs("INFO: Printer is now on-line.\n", stderr);
+ fputs(_("INFO: Printer is now on-line.\n"), stderr);
offline = 0;
}
@@ -269,5 +271,5 @@ backendRunLoop(
/*
- * End of "$Id: runloop.c 6170 2007-01-02 17:26:41Z mike $".
+ * End of "$Id: runloop.c 6403 2007-03-27 16:00:56Z mike $".
*/