From 5f34b1070f00fcc9863e677e53941a7893ecd865 Mon Sep 17 00:00:00 2001 From: Solomon Peachy Date: Thu, 3 Oct 2019 20:26:00 -0400 Subject: [PATCH] misc: Fix missing newlines in multiple error messages. --- backend_common.c | 2 +- backend_dnpds40.c | 10 +++++----- backend_magicard.c | 2 +- backend_mitsu70x.c | 2 +- backend_sonyupd.c | 2 +- backend_sonyupdneo.c | 2 +- 6 files changed, 10 insertions(+), 10 deletions(-) diff --git a/backend_common.c b/backend_common.c index df0a75c..2265603 100644 --- a/backend_common.c +++ b/backend_common.c @@ -1228,7 +1228,7 @@ bypass: /* Attach backend to device */ if (backend->attach(backend_ctx, dev, printer_type, endp_up, endp_down, jobid)) { - ERROR("Unable to attach to printer!"); + ERROR("Unable to attach to printer!\n"); ret = CUPS_BACKEND_FAILED; goto done_close; } diff --git a/backend_dnpds40.c b/backend_dnpds40.c index 6fbd91d..b64467f 100644 --- a/backend_dnpds40.c +++ b/backend_dnpds40.c @@ -1813,7 +1813,7 @@ skip_multicut: return CUPS_BACKEND_CANCEL; } } else { - ERROR("Printer only supports legacy 2-inch cuts on 4x6 or 8x6 jobs!"); + ERROR("Printer only supports legacy 2-inch cuts on 4x6 or 8x6 jobs!\n"); dnpds40_cleanup_job(job); return CUPS_BACKEND_CANCEL; } @@ -2019,7 +2019,7 @@ top: #if 0 // XXX Fix 600dpi support on CW01 // have to read the last DPI, and send the correct CWD over? if (ctx->dpi == 600 && strcmp("RV0334", *char*)resp) { - ERROR("600DPI prints not yet supported, need 600DPI CWD load"); + ERROR("600DPI prints not yet supported, need 600DPI CWD load\n"); return CUPS_BACKEND_CANCEL; } #endif @@ -2974,7 +2974,7 @@ static int dnpds40_cmdline_arg(void *vctx, int argc, char **argv) break; } if (sleeptime < 0 || sleeptime > 99) { - ERROR("Value out of range (0-99)"); + ERROR("Value out of range (0-99)\n"); j = -1; break; } @@ -2989,7 +2989,7 @@ static int dnpds40_cmdline_arg(void *vctx, int argc, char **argv) break; } if (keep < 0 || keep > 1) { - ERROR("Value out of range (0-1)"); + ERROR("Value out of range (0-1)\n"); j = -1; break; } @@ -3033,7 +3033,7 @@ static int dnpds40_cmdline_arg(void *vctx, int argc, char **argv) break; } if (enable < 0 || enable > 1) { - ERROR("Value out of range (0-1)"); + ERROR("Value out of range (0-1)\n"); j = -1; break; } diff --git a/backend_magicard.c b/backend_magicard.c index 157a69f..b8ac6a0 100644 --- a/backend_magicard.c +++ b/backend_magicard.c @@ -429,7 +429,7 @@ static void* magicard_init(void) { struct magicard_ctx *ctx = malloc(sizeof(struct magicard_ctx)); if (!ctx) { - ERROR("Memory Allocation Failure!"); + ERROR("Memory Allocation Failure!\n"); return NULL; } memset(ctx, 0, sizeof(struct magicard_ctx)); diff --git a/backend_mitsu70x.c b/backend_mitsu70x.c index c58cc49..e68557d 100644 --- a/backend_mitsu70x.c +++ b/backend_mitsu70x.c @@ -1969,7 +1969,7 @@ top: /* Hold job if we have no legal decks for it, but printer is online. */ if (!legal) { - ERROR("Legal deck for printjob has errors, aborting job"); + ERROR("Legal deck for printjob has errors, aborting job\n"); return CUPS_BACKEND_HOLD; } diff --git a/backend_sonyupd.c b/backend_sonyupd.c index 1c4bf12..c7c2e1d 100644 --- a/backend_sonyupd.c +++ b/backend_sonyupd.c @@ -91,7 +91,7 @@ static void* upd_init(void) { struct upd_ctx *ctx = malloc(sizeof(struct upd_ctx)); if (!ctx) { - ERROR("Memory Allocation Failure!"); + ERROR("Memory Allocation Failure!\n"); return NULL; } memset(ctx, 0, sizeof(struct upd_ctx)); diff --git a/backend_sonyupdneo.c b/backend_sonyupdneo.c index bdb5055..76c1e6a 100644 --- a/backend_sonyupdneo.c +++ b/backend_sonyupdneo.c @@ -61,7 +61,7 @@ static void* updneo_init(void) { struct updneo_ctx *ctx = malloc(sizeof(struct updneo_ctx)); if (!ctx) { - ERROR("Memory Allocation Failure!"); + ERROR("Memory Allocation Failure!\n"); return NULL; } memset(ctx, 0, sizeof(struct updneo_ctx));