summaryrefslogtreecommitdiff
path: root/backend/runloop.c
diff options
context:
space:
mode:
authormsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2010-11-30 03:16:24 +0000
committermsweet <msweet@a1ca3aef-8c08-0410-bb20-df032aa958be>2010-11-30 03:16:24 +0000
commit0837b7e828b9fc312fcf8f5741d2ba9683742672 (patch)
tree1209ad6c3a50b6fc8c2e7fdc4ce05445f17f1d86 /backend/runloop.c
parent1106b00e75e37e7f25a28ee95da560de55520018 (diff)
downloadcups-0837b7e828b9fc312fcf8f5741d2ba9683742672.tar.gz
Merge changes from CUPS 1.5svn-r9385.
git-svn-id: svn+ssh://src.apple.com/svn/cups/easysw/current@2873 a1ca3aef-8c08-0410-bb20-df032aa958be
Diffstat (limited to 'backend/runloop.c')
-rw-r--r--backend/runloop.c20
1 files changed, 10 insertions, 10 deletions
diff --git a/backend/runloop.c b/backend/runloop.c
index d225529da..2f5b5eaee 100644
--- a/backend/runloop.c
+++ b/backend/runloop.c
@@ -90,7 +90,7 @@ backendDrainOutput(int print_fd, /* I - Print file descriptor */
if (errno != EAGAIN || errno != EINTR)
{
- perror("ERROR: Unable to read print data");
+ _cupsLangPrintError("ERROR", _("Unable to read print data"));
return (-1);
}
@@ -119,8 +119,7 @@ backendDrainOutput(int print_fd, /* I - Print file descriptor */
if (errno != ENOSPC && errno != ENXIO && errno != EAGAIN &&
errno != EINTR && errno != ENOTTY)
{
- _cupsLangPrintf(stderr, _("ERROR: Unable to write print data: %s\n"),
- strerror(errno));
+ _cupsLangPrintError("ERROR", _("Unable to write print data"));
return (-1);
}
}
@@ -249,7 +248,8 @@ backendRunLoop(
if (errno == ENXIO && offline != 1 && update_state)
{
fputs("STATE: +offline-report\n", stderr);
- _cupsLangPuts(stderr, _("INFO: Printer is currently offline.\n"));
+ _cupsLangPrintFilter(stderr, "INFO",
+ _("Printer is not currently connected."));
offline = 1;
}
else if (errno == EINTR && total_bytes == 0)
@@ -318,7 +318,7 @@ backendRunLoop(
if (errno != EAGAIN || errno != EINTR)
{
- perror("ERROR: Unable to read print data");
+ _cupsLangPrintError("ERROR", _("Unable to read print data"));
return (-1);
}
@@ -357,7 +357,7 @@ backendRunLoop(
if (paperout != 1 && update_state)
{
fputs("STATE: +media-empty-warning\n", stderr);
- _cupsLangPuts(stderr, _("DEBUG: Out of paper\n"));
+ fputs("DEBUG: Out of paper\n", stderr);
paperout = 1;
}
}
@@ -366,14 +366,14 @@ backendRunLoop(
if (offline != 1 && update_state)
{
fputs("STATE: +offline-report\n", stderr);
- _cupsLangPuts(stderr, _("INFO: Printer is currently off-line.\n"));
+ _cupsLangPrintFilter(stderr, "INFO",
+ _("Printer is not currently connected."));
offline = 1;
}
}
else if (errno != EAGAIN && errno != EINTR && errno != ENOTTY)
{
- fprintf(stderr, _("ERROR: Unable to write print data: %s\n"),
- strerror(errno));
+ _cupsLangPrintError("ERROR", _("Unable to write print data"));
return (-1);
}
}
@@ -388,7 +388,7 @@ backendRunLoop(
if (offline && update_state)
{
fputs("STATE: -offline-report\n", stderr);
- _cupsLangPuts(stderr, _("INFO: Printer is now online.\n"));
+ _cupsLangPrintFilter(stderr, "INFO", _("Printer is now connected."));
offline = 0;
}