diff --git a/cif/CIFrdutils.c b/cif/CIFrdutils.c index 9b7de201..23fd9432 100644 --- a/cif/CIFrdutils.c +++ b/cif/CIFrdutils.c @@ -140,7 +140,7 @@ CIFReadError(const char *format, ...) if (cifLineNumber > 0) TxError("Error at line %d of CIF file: ", cifLineNumber); else - TxError("CIF file read error: ", cifLineNumber); + TxError("CIF file read error: "); va_start(args, format); Vfprintf(stderr, format, args); va_end(args); diff --git a/database/DBcellsrch.c b/database/DBcellsrch.c index c4d91492..39913083 100644 --- a/database/DBcellsrch.c +++ b/database/DBcellsrch.c @@ -1622,7 +1622,7 @@ dbTileScaleFunc(tile, scvals) (targetRect.r_ytop - targetRect.r_ybot == 0)) { TxPrintf("Tile %p at (%d, %d) has zero area after scaling: Removed.\n", - tile, targetRect.r_xbot, targetRect.r_ybot); + (void *) tile, targetRect.r_xbot, targetRect.r_ybot); return 0; } diff --git a/extract/ExtBasic.c b/extract/ExtBasic.c index 6e6d8ef8..fcd6f12f 100644 --- a/extract/ExtBasic.c +++ b/extract/ExtBasic.c @@ -383,7 +383,7 @@ extBasic(def, outFile) if (devidx < 0) { TxError("Extract error: \"device\" property has unknown " - "device type.\n", token); + "device type: %s\n", token); propfound = FALSE; } if (propfound) diff --git a/gcr/gcrDebug.c b/gcr/gcrDebug.c index dbfece8c..6f243dd8 100644 --- a/gcr/gcrDebug.c +++ b/gcr/gcrDebug.c @@ -542,11 +542,11 @@ gcrDumpCol(col, size) return; for (i = size; i >= 0; i--) - TxPrintf("[%2d] hi=%6d(%c) lo=%6d(%c) h=%6d v=%6d w=%6d f=%4d\n", i, + TxPrintf("[%2d] hi=%6d(%c) lo=%6d(%c) h=%6lu v=%6lu w=%6lu f=%4d\n", i, col[i].gcr_hi, col[i].gcr_hOk ? 'T' : 'F', col[i].gcr_lo, col[i].gcr_lOk ? 'T' : 'F', - col[i].gcr_h, col[i].gcr_v, - col[i].gcr_wanted, col[i].gcr_flags); + (pointertype) col[i].gcr_h, (pointertype) col[i].gcr_v, + (pointertype) col[i].gcr_wanted, col[i].gcr_flags); } /* diff --git a/lef/defRead.c b/lef/defRead.c index 84cacdd0..49d2bac7 100644 --- a/lef/defRead.c +++ b/lef/defRead.c @@ -348,7 +348,7 @@ DefAddRoutes(rootDef, f, oscale, special, netname, ruleset, defLayerMap, annotat } else if (!strcmp(token, "POLYGON")) { - LefError(DEF_ERROR, "Route has POLYGON entries, this is not handled!\n", + LefError(DEF_ERROR, "Route has %s entries, this is not handled!\n", token); token = LefNextToken(f, TRUE); /* read opening parens */ goto endCoord; diff --git a/plot/plotMain.c b/plot/plotMain.c index e1f94d22..fa07a297 100644 --- a/plot/plotMain.c +++ b/plot/plotMain.c @@ -281,7 +281,7 @@ PlotPrintParams() { TxPrintf("General plotting parameters are:\n"); TxPrintf(" showCellNames: %s\n", PlotShowCellNames ? "true" : "false"); - TxPrintf(""); + TxPrintf("\n"); TxPrintf("Postscript plotting parameters are:\n"); TxPrintf(" PS_cellIdFont: \"%s\"\n", PlotPSIdFont); TxPrintf(" PS_cellNameFont:\"%s\"\n", PlotPSNameFont); @@ -297,7 +297,7 @@ PlotPrintParams() TxPrintf(" PS_margin: %d (%.3f in)\n", PlotPSMargin, (float)PlotPSMargin / 72); - TxPrintf(""); + TxPrintf("\n"); TxPrintf("PNM plotting parameters are:\n"); TxPrintf(" pnmmaxmem: %d KB\n", PlotPNMmaxmem); TxPrintf(" pnmdownsample: %d\n", PlotPNMdownsample); @@ -305,7 +305,7 @@ PlotPrintParams() #ifdef VERSATEC TxPrintf(" pnmplotRTL: %s\n", PlotPNMRTL ? "true" : "false"); - TxPrintf(""); + TxPrintf("\n"); TxPrintf("HP/Versatec plotting parameters are:\n"); TxPrintf(" cellIdFont: \"%s\"\n", PlotVersIdFont); TxPrintf(" cellNameFont: \"%s\"\n", PlotVersNameFont); diff --git a/plow/PlowTest.c b/plow/PlowTest.c index aaae633b..37f2feae 100644 --- a/plow/PlowTest.c +++ b/plow/PlowTest.c @@ -336,7 +336,7 @@ PlowTest(w, cmd) break; case PC_MERGEDOWN: tp = TiSrPointNoHint(plane, &editArea.r_ll); - TxPrintf("Merging tile %p below\n", tp); + TxPrintf("Merging tile %p below\n", (void *)tp); TiToRect(tp, &editArea); TiToRect(RT(tp), &area2); (void) GeoInclude(&area2, &editArea); @@ -345,7 +345,7 @@ PlowTest(w, cmd) break; case PC_MERGEUP: tp = TiSrPointNoHint(plane, &editArea.r_ll); - TxPrintf("Merging tile %p above\n", tp); + TxPrintf("Merging tile %p above\n", (void *)tp); TiToRect(tp, &editArea); TiToRect(RT(tp), &area2); (void) GeoInclude(&area2, &editArea); @@ -355,7 +355,7 @@ PlowTest(w, cmd) case PC_PRINT: tp = TiSrPointNoHint(plane, &editArea.r_ll); TxPrintf("Tile %p LEFT=%d RIGHT=%d BOTTOM=%d TOP=%d\n", - tp, LEFT(tp), RIGHT(tp), BOTTOM(tp), TOP(tp)); + (void *)tp, LEFT(tp), RIGHT(tp), BOTTOM(tp), TOP(tp)); TxPrintf(" TRAILING=%d LEADING=%d TYPE=%s\n", TRAILING(tp), LEADING(tp), DBTypeLongName(TiGetTypeExact(tp))); break; diff --git a/textio/txCommands.c b/textio/txCommands.c index dbf82652..15077066 100644 --- a/textio/txCommands.c +++ b/textio/txCommands.c @@ -201,7 +201,7 @@ void TxPrintEvent(event) TxInputEvent *event; { - TxError("Input event at %p\n ", event); + TxError("Input event at %p\n ", (void *) event); if (event->txe_button == TX_EOF) { TxError("EOF event"); } else if (event->txe_button == TX_BYPASS) { @@ -255,7 +255,7 @@ TxPrintCommand(cmd) int i, j; char TxTemp[200]; - TxError("Command at %p\n ", cmd); + TxError("Command at %p\n ", (void *) cmd); if (cmd->tx_button == TX_CHARACTER) { TxError("Text command with %d words: ", cmd->tx_argc); for (i = 0; i < cmd->tx_argc; i++) { diff --git a/windows/windDebug.c b/windows/windDebug.c index 6f0065bb..bceac628 100644 --- a/windows/windDebug.c +++ b/windows/windDebug.c @@ -54,7 +54,7 @@ windPrintWindow(w) LinkedRect *lr; TxPrintf("\nWindow %d: '%s'\n", w->w_wid, w->w_caption); - TxPrintf(" Client %lx Surface %lx \n", w->w_client, CD2INT(w->w_surfaceID)); + TxPrintf(" Client %p Surface %lx \n", (void *) w->w_client, CD2INT(w->w_surfaceID)); TxPrintf(" All area (%d, %d) (%d, %d)\n", w->w_allArea.r_xbot, w->w_allArea.r_ybot,