From 60801758b96f87ad4b5a532b216b6ecb60311852 Mon Sep 17 00:00:00 2001 From: mazze Date: Sat, 3 Mar 2012 22:05:39 +0000 Subject: [PATCH] Debug output silenced. Use dos.library for output of error messages. git-svn-id: https://svn.aros.org/svn/aros/trunk/AROS@44322 fb15a70f-31f2-0310-bbcc-cdcc74a49acc --- workbench/tools/InitPrinter.c | 16 +++++++--------- 1 file changed, 7 insertions(+), 9 deletions(-) diff --git a/workbench/tools/InitPrinter.c b/workbench/tools/InitPrinter.c index e73727fd4e..567404ba95 100644 --- a/workbench/tools/InitPrinter.c +++ b/workbench/tools/InitPrinter.c @@ -9,12 +9,10 @@ #include #include -#include - -#define DEBUG 1 +//#define DEBUG 1 #include -const char version[] = "$VER: InitPrinter 1.0 (27.02.2012) © AROS Dev Team"; +const char version[] = "$VER: InitPrinter 1.0 (03.03.2012) © AROS Dev Team"; char __stdiowin[]="CON:/30/400/100/InitPrinter/AUTO/CLOSE/WAIT"; @@ -36,7 +34,7 @@ static BOOL init_printer(ULONG unit) { if (OpenDevice("printer.device", unit, (struct IORequest *)PrintIO, 0)) { - printf("Error: printer.device did not open\n"); + PutStr("Error: printer.device did not open\n"); } else { @@ -50,7 +48,7 @@ static BOOL init_printer(ULONG unit) if (DoIO((struct IORequest *)PrintIO)) { - printf("Printer reset failed. Error: %d\n", PrintIO->io_Error); + Printf("Printer reset failed. Error: %d\n", (IPTR)PrintIO->io_Error); } else { @@ -62,13 +60,13 @@ static BOOL init_printer(ULONG unit) } else { - printf("Error: Could not create I/O request\n"); + PutStr("Error: Could not create I/O request\n"); } DeleteMsgPort(PrintMP); } else { - printf("Error: Could not create message port\n"); + PutStr("Error: Could not create message port\n"); } return success; } @@ -95,7 +93,7 @@ int main(void) } else { - printf("Error: Could not read arguments\n"); + PutStr("Error: Could not read arguments\n"); } return retval; -- 2.11.4.GIT