From 4f90bfec12e3f5569e11aa08816e5445a35c45e8 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Mon, 1 Jul 2013 07:21:44 -0400 Subject: [PATCH] selphy: Make it a little more verbose (INFO instead of DEBUG) --- selphy_print.c | 17 ++++++++--------- 1 file changed, 8 insertions(+), 9 deletions(-) diff --git a/selphy_print.c b/selphy_print.c index d0fbdbb..a19b2d5 100644 --- a/selphy_print.c +++ b/selphy_print.c @@ -35,7 +35,7 @@ #include #include -#define VERSION "0.50" +#define VERSION "0.51" #define URI_PREFIX "selphy://" #include "backend_common.c" @@ -694,14 +694,13 @@ top: switch(state) { case S_IDLE: + INFO("Printing started, waiting for printer idle\n"); if (!fancy_memcmp(rdbuf, printers[printer_type].init_readback, READBACK_LEN, paper_code_offset, paper_code)) { state = S_PRINTER_READY; } break; case S_PRINTER_READY: - DEBUG("Sending init sequence (%d bytes)\n", header_len); - - INFO("Printing started\n"); + INFO("Sending init sequence\n"); /* Send printer init */ if ((ret = send_data(dev, endp_down, header, header_len))) @@ -716,9 +715,9 @@ top: break; case S_PRINTER_READY_Y: if (bw_mode) - DEBUG("Sending BLACK plane\n"); + INFO("Sending BLACK plane\n"); else - DEBUG("Sending YELLOW plane\n"); + INFO("Sending YELLOW plane\n"); if ((ret = send_data(dev, endp_down, plane_y, plane_len))) goto done_claimed; @@ -734,7 +733,7 @@ top: } break; case S_PRINTER_READY_M: - DEBUG("Sending MAGENTA plane\n"); + INFO("Sending MAGENTA plane\n"); if ((ret = send_data(dev, endp_down, plane_m, plane_len))) goto done_claimed; @@ -747,7 +746,7 @@ top: } break; case S_PRINTER_READY_C: - DEBUG("Sending CYAN plane\n"); + INFO("Sending CYAN plane\n"); if ((ret = send_data(dev, endp_down, plane_c, plane_len))) goto done_claimed; @@ -761,7 +760,7 @@ top: break; case S_PRINTER_DONE: if (footer_len) { - DEBUG("Sending cleanup sequence\n"); + INFO("Cleaning up\n"); if ((ret = send_data(dev, endp_down, footer, footer_len))) goto done_claimed;