aboutsummaryrefslogtreecommitdiff
path: root/printutils/lpr.c
diff options
context:
space:
mode:
Diffstat (limited to 'printutils/lpr.c')
-rw-r--r--printutils/lpr.c12
1 files changed, 6 insertions, 6 deletions
diff --git a/printutils/lpr.c b/printutils/lpr.c
index 7acb6c357..77d1a79a4 100644
--- a/printutils/lpr.c
+++ b/printutils/lpr.c
@@ -167,7 +167,7 @@ int lpqr_main(int argc UNUSED_PARAM, char *argv[])
// LPR ------------------------
//
if (opts & LPR_V)
- bb_error_msg("connected to server");
+ bb_simple_error_msg("connected to server");
job = getpid() % 1000;
hostname = safe_gethostname();
@@ -206,7 +206,7 @@ int lpqr_main(int argc UNUSED_PARAM, char *argv[])
* Standard lpr works around it by refusing to send such jobs:
*/
if (st.st_size == 0) {
- bb_error_msg("nothing to print");
+ bb_simple_error_msg("nothing to print");
continue;
}
@@ -246,7 +246,7 @@ int lpqr_main(int argc UNUSED_PARAM, char *argv[])
// send control file
if (opts & LPR_V)
- bb_error_msg("sending control file");
+ bb_simple_error_msg("sending control file");
/* "Acknowledgement processing must occur as usual
* after the command is sent." */
cflen = (unsigned)strlen(controlfile);
@@ -262,12 +262,12 @@ int lpqr_main(int argc UNUSED_PARAM, char *argv[])
// send data file, with name "dfaXXX"
if (opts & LPR_V)
- bb_error_msg("sending data file");
+ bb_simple_error_msg("sending data file");
fdprintf(fd, "\x3" "%"OFF_FMT"u d%s\n", st.st_size, remote_filename);
get_response_or_say_and_die(fd, "sending data file");
if (bb_copyfd_size(dfd, fd, st.st_size) != st.st_size) {
// We're screwed. We sent less bytes than we advertised.
- bb_error_msg_and_die("local file changed size?!");
+ bb_simple_error_msg_and_die("local file changed size?!");
}
write(fd, "", 1); // send ACK
get_response_or_say_and_die(fd, "sending data file");
@@ -283,7 +283,7 @@ int lpqr_main(int argc UNUSED_PARAM, char *argv[])
// say job accepted
if (opts & LPR_V)
- bb_error_msg("job accepted");
+ bb_simple_error_msg("job accepted");
// next, please!
job = (job + 1) % 1000;