From: msweet Date: Mon, 26 Oct 2015 16:48:23 +0000 (+0000) Subject: Don't log strings directly () X-Git-Tag: v2.2b1~166 X-Git-Url: http://git.ipfire.org/cgi-bin/gitweb.cgi?a=commitdiff_plain;h=992d9918155bc07fc5ee85cefd08e922ffd42694;p=thirdparty%2Fcups.git Don't log strings directly () git-svn-id: svn+ssh://src.apple.com/svn/cups/cups.org/trunk@12934 a1ca3aef-8c08-0410-bb20-df032aa958be --- diff --git a/CHANGES-2.1.txt b/CHANGES-2.1.txt index 5ebbee6615..6ae15c13f3 100644 --- a/CHANGES-2.1.txt +++ b/CHANGES-2.1.txt @@ -8,7 +8,7 @@ CHANGES IN CUPS V2.1.1 , , , , , , - ) + , ) - The cupsGetPPD* functions did not work with IPP printers (STR #4725) - Some older HP LaserJet printers need a delayed close when printing using the libusb-based USB backend (STR #4549) diff --git a/filter/rastertoepson.c b/filter/rastertoepson.c index 38d6d5bfce..a59e435e8c 100644 --- a/filter/rastertoepson.c +++ b/filter/rastertoepson.c @@ -119,6 +119,30 @@ StartPage( unsigned plane; /* Looping var */ + /* + * Show page device dictionary... + */ + + fprintf(stderr, "DEBUG: StartPage...\n"); + fprintf(stderr, "DEBUG: Duplex = %d\n", header->Duplex); + fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0], header->HWResolution[1]); + fprintf(stderr, "DEBUG: ImagingBoundingBox = [ %d %d %d %d ]\n", header->ImagingBoundingBox[0], header->ImagingBoundingBox[1], header->ImagingBoundingBox[2], header->ImagingBoundingBox[3]); + fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", header->Margins[0], header->Margins[1]); + fprintf(stderr, "DEBUG: ManualFeed = %d\n", header->ManualFeed); + fprintf(stderr, "DEBUG: MediaPosition = %d\n", header->MediaPosition); + fprintf(stderr, "DEBUG: NumCopies = %d\n", header->NumCopies); + fprintf(stderr, "DEBUG: Orientation = %d\n", header->Orientation); + fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); + fprintf(stderr, "DEBUG: cupsWidth = %d\n", header->cupsWidth); + fprintf(stderr, "DEBUG: cupsHeight = %d\n", header->cupsHeight); + fprintf(stderr, "DEBUG: cupsMediaType = %d\n", header->cupsMediaType); + fprintf(stderr, "DEBUG: cupsBitsPerColor = %d\n", header->cupsBitsPerColor); + fprintf(stderr, "DEBUG: cupsBitsPerPixel = %d\n", header->cupsBitsPerPixel); + fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", header->cupsBytesPerLine); + fprintf(stderr, "DEBUG: cupsColorOrder = %d\n", header->cupsColorOrder); + fprintf(stderr, "DEBUG: cupsColorSpace = %d\n", header->cupsColorSpace); + fprintf(stderr, "DEBUG: cupsCompression = %d\n", header->cupsCompression); + /* * Send a reset sequence. */ diff --git a/filter/rastertohp.c b/filter/rastertohp.c index c7cc181228..97866c4ddf 100644 --- a/filter/rastertohp.c +++ b/filter/rastertohp.c @@ -90,39 +90,15 @@ StartPage(ppd_file_t *ppd, /* I - PPD file */ */ fprintf(stderr, "DEBUG: StartPage...\n"); - fprintf(stderr, "DEBUG: MediaClass = \"%s\"\n", header->MediaClass); - fprintf(stderr, "DEBUG: MediaColor = \"%s\"\n", header->MediaColor); - fprintf(stderr, "DEBUG: MediaType = \"%s\"\n", header->MediaType); - fprintf(stderr, "DEBUG: OutputType = \"%s\"\n", header->OutputType); - - fprintf(stderr, "DEBUG: AdvanceDistance = %d\n", header->AdvanceDistance); - fprintf(stderr, "DEBUG: AdvanceMedia = %d\n", header->AdvanceMedia); - fprintf(stderr, "DEBUG: Collate = %d\n", header->Collate); - fprintf(stderr, "DEBUG: CutMedia = %d\n", header->CutMedia); fprintf(stderr, "DEBUG: Duplex = %d\n", header->Duplex); - fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0], - header->HWResolution[1]); - fprintf(stderr, "DEBUG: ImagingBoundingBox = [ %d %d %d %d ]\n", - header->ImagingBoundingBox[0], header->ImagingBoundingBox[1], - header->ImagingBoundingBox[2], header->ImagingBoundingBox[3]); - fprintf(stderr, "DEBUG: InsertSheet = %d\n", header->InsertSheet); - fprintf(stderr, "DEBUG: Jog = %d\n", header->Jog); - fprintf(stderr, "DEBUG: LeadingEdge = %d\n", header->LeadingEdge); - fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", header->Margins[0], - header->Margins[1]); + fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0], header->HWResolution[1]); + fprintf(stderr, "DEBUG: ImagingBoundingBox = [ %d %d %d %d ]\n", header->ImagingBoundingBox[0], header->ImagingBoundingBox[1], header->ImagingBoundingBox[2], header->ImagingBoundingBox[3]); + fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", header->Margins[0], header->Margins[1]); fprintf(stderr, "DEBUG: ManualFeed = %d\n", header->ManualFeed); fprintf(stderr, "DEBUG: MediaPosition = %d\n", header->MediaPosition); - fprintf(stderr, "DEBUG: MediaWeight = %d\n", header->MediaWeight); - fprintf(stderr, "DEBUG: MirrorPrint = %d\n", header->MirrorPrint); - fprintf(stderr, "DEBUG: NegativePrint = %d\n", header->NegativePrint); fprintf(stderr, "DEBUG: NumCopies = %d\n", header->NumCopies); fprintf(stderr, "DEBUG: Orientation = %d\n", header->Orientation); - fprintf(stderr, "DEBUG: OutputFaceUp = %d\n", header->OutputFaceUp); - fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], - header->PageSize[1]); - fprintf(stderr, "DEBUG: Separations = %d\n", header->Separations); - fprintf(stderr, "DEBUG: TraySwitch = %d\n", header->TraySwitch); - fprintf(stderr, "DEBUG: Tumble = %d\n", header->Tumble); + fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); fprintf(stderr, "DEBUG: cupsWidth = %d\n", header->cupsWidth); fprintf(stderr, "DEBUG: cupsHeight = %d\n", header->cupsHeight); fprintf(stderr, "DEBUG: cupsMediaType = %d\n", header->cupsMediaType); diff --git a/filter/rastertolabel.c b/filter/rastertolabel.c index 6868a73e4f..fe38f93407 100644 --- a/filter/rastertolabel.c +++ b/filter/rastertolabel.c @@ -3,7 +3,7 @@ * * Label printer filter for CUPS. * - * Copyright 2007-2014 by Apple Inc. + * Copyright 2007-2015 by Apple Inc. * Copyright 2001-2007 by Easy Software Products. * * These coded instructions, statements, and computer programs are the @@ -166,39 +166,15 @@ StartPage(ppd_file_t *ppd, /* I - PPD file */ */ fprintf(stderr, "DEBUG: StartPage...\n"); - fprintf(stderr, "DEBUG: MediaClass = \"%s\"\n", header->MediaClass); - fprintf(stderr, "DEBUG: MediaColor = \"%s\"\n", header->MediaColor); - fprintf(stderr, "DEBUG: MediaType = \"%s\"\n", header->MediaType); - fprintf(stderr, "DEBUG: OutputType = \"%s\"\n", header->OutputType); - - fprintf(stderr, "DEBUG: AdvanceDistance = %d\n", header->AdvanceDistance); - fprintf(stderr, "DEBUG: AdvanceMedia = %d\n", header->AdvanceMedia); - fprintf(stderr, "DEBUG: Collate = %d\n", header->Collate); - fprintf(stderr, "DEBUG: CutMedia = %d\n", header->CutMedia); fprintf(stderr, "DEBUG: Duplex = %d\n", header->Duplex); - fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0], - header->HWResolution[1]); - fprintf(stderr, "DEBUG: ImagingBoundingBox = [ %d %d %d %d ]\n", - header->ImagingBoundingBox[0], header->ImagingBoundingBox[1], - header->ImagingBoundingBox[2], header->ImagingBoundingBox[3]); - fprintf(stderr, "DEBUG: InsertSheet = %d\n", header->InsertSheet); - fprintf(stderr, "DEBUG: Jog = %d\n", header->Jog); - fprintf(stderr, "DEBUG: LeadingEdge = %d\n", header->LeadingEdge); - fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", header->Margins[0], - header->Margins[1]); + fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", header->HWResolution[0], header->HWResolution[1]); + fprintf(stderr, "DEBUG: ImagingBoundingBox = [ %d %d %d %d ]\n", header->ImagingBoundingBox[0], header->ImagingBoundingBox[1], header->ImagingBoundingBox[2], header->ImagingBoundingBox[3]); + fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", header->Margins[0], header->Margins[1]); fprintf(stderr, "DEBUG: ManualFeed = %d\n", header->ManualFeed); fprintf(stderr, "DEBUG: MediaPosition = %d\n", header->MediaPosition); - fprintf(stderr, "DEBUG: MediaWeight = %d\n", header->MediaWeight); - fprintf(stderr, "DEBUG: MirrorPrint = %d\n", header->MirrorPrint); - fprintf(stderr, "DEBUG: NegativePrint = %d\n", header->NegativePrint); fprintf(stderr, "DEBUG: NumCopies = %d\n", header->NumCopies); fprintf(stderr, "DEBUG: Orientation = %d\n", header->Orientation); - fprintf(stderr, "DEBUG: OutputFaceUp = %d\n", header->OutputFaceUp); - fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], - header->PageSize[1]); - fprintf(stderr, "DEBUG: Separations = %d\n", header->Separations); - fprintf(stderr, "DEBUG: TraySwitch = %d\n", header->TraySwitch); - fprintf(stderr, "DEBUG: Tumble = %d\n", header->Tumble); + fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", header->PageSize[0], header->PageSize[1]); fprintf(stderr, "DEBUG: cupsWidth = %d\n", header->cupsWidth); fprintf(stderr, "DEBUG: cupsHeight = %d\n", header->cupsHeight); fprintf(stderr, "DEBUG: cupsMediaType = %d\n", header->cupsMediaType); @@ -208,9 +184,6 @@ StartPage(ppd_file_t *ppd, /* I - PPD file */ fprintf(stderr, "DEBUG: cupsColorOrder = %d\n", header->cupsColorOrder); fprintf(stderr, "DEBUG: cupsColorSpace = %d\n", header->cupsColorSpace); fprintf(stderr, "DEBUG: cupsCompression = %d\n", header->cupsCompression); - fprintf(stderr, "DEBUG: cupsRowCount = %d\n", header->cupsRowCount); - fprintf(stderr, "DEBUG: cupsRowFeed = %d\n", header->cupsRowFeed); - fprintf(stderr, "DEBUG: cupsRowStep = %d\n", header->cupsRowStep); switch (ModelNumber) { diff --git a/filter/rastertopwg.c b/filter/rastertopwg.c index ff6b76b729..e4fe25b32f 100644 --- a/filter/rastertopwg.c +++ b/filter/rastertopwg.c @@ -89,6 +89,29 @@ main(int argc, /* I - Number of command-line args */ while (cupsRasterReadHeader2(inras, &inheader)) { + /* + * Show page device dictionary... + */ + + fprintf(stderr, "DEBUG: Duplex = %d\n", inheader.Duplex); + fprintf(stderr, "DEBUG: HWResolution = [ %d %d ]\n", inheader.HWResolution[0], inheader.HWResolution[1]); + fprintf(stderr, "DEBUG: ImagingBoundingBox = [ %d %d %d %d ]\n", inheader.ImagingBoundingBox[0], inheader.ImagingBoundingBox[1], inheader.ImagingBoundingBox[2], inheader.ImagingBoundingBox[3]); + fprintf(stderr, "DEBUG: Margins = [ %d %d ]\n", inheader.Margins[0], inheader.Margins[1]); + fprintf(stderr, "DEBUG: ManualFeed = %d\n", inheader.ManualFeed); + fprintf(stderr, "DEBUG: MediaPosition = %d\n", inheader.MediaPosition); + fprintf(stderr, "DEBUG: NumCopies = %d\n", inheader.NumCopies); + fprintf(stderr, "DEBUG: Orientation = %d\n", inheader.Orientation); + fprintf(stderr, "DEBUG: PageSize = [ %d %d ]\n", inheader.PageSize[0], inheader.PageSize[1]); + fprintf(stderr, "DEBUG: cupsWidth = %d\n", inheader.cupsWidth); + fprintf(stderr, "DEBUG: cupsHeight = %d\n", inheader.cupsHeight); + fprintf(stderr, "DEBUG: cupsMediaType = %d\n", inheader.cupsMediaType); + fprintf(stderr, "DEBUG: cupsBitsPerColor = %d\n", inheader.cupsBitsPerColor); + fprintf(stderr, "DEBUG: cupsBitsPerPixel = %d\n", inheader.cupsBitsPerPixel); + fprintf(stderr, "DEBUG: cupsBytesPerLine = %d\n", inheader.cupsBytesPerLine); + fprintf(stderr, "DEBUG: cupsColorOrder = %d\n", inheader.cupsColorOrder); + fprintf(stderr, "DEBUG: cupsColorSpace = %d\n", inheader.cupsColorSpace); + fprintf(stderr, "DEBUG: cupsCompression = %d\n", inheader.cupsCompression); + /* * Compute the real raster size... */ @@ -191,7 +214,7 @@ main(int argc, /* I - Number of command-line args */ sizeof(outheader.OutputType)); else { - fprintf(stderr, "DEBUG: Unsupported print-content-type \"%s\".\n", val); + fputs("DEBUG: Unsupported print-content-optimize value.\n", stderr); outheader.OutputType[0] = '\0'; } } @@ -232,8 +255,7 @@ main(int argc, /* I - Number of command-line args */ sizeof(outheader.cupsRenderingIntent)); else { - fprintf(stderr, "DEBUG: Unsupported print-rendering-intent \"%s\".\n", - val); + fputs("DEBUG: Unsupported print-rendering-intent value.\n", stderr); outheader.cupsRenderingIntent[0] = '\0'; } } @@ -367,7 +389,7 @@ main(int argc, /* I - Number of command-line args */ * Unsupported value... */ - fprintf(stderr, "DEBUG: Unsupported cupsBackSide \"%s\".\n", back->value); + fputs("DEBUG: Unsupported cupsBackSide value.\n", stderr); outheader.cupsInteger[1] = 1; /* CrossFeedTransform */ outheader.cupsInteger[2] = 1; /* FeedTransform */