From 50a6bbc7a60de732b7f14b6d0bc79de40239446a Mon Sep 17 00:00:00 2001 From: Tom Collins Date: Sat, 14 Mar 2015 18:11:34 -0700 Subject: [PATCH] utils: fix fprintf() compiler warnings in pinprocfw --- utils/pinprocfw/pinprocfw.cpp | 8 ++++---- 1 file changed, 4 insertions(+), 4 deletions(-) diff --git a/utils/pinprocfw/pinprocfw.cpp b/utils/pinprocfw/pinprocfw.cpp index 4fc8022..0bff8a2 100644 --- a/utils/pinprocfw/pinprocfw.cpp +++ b/utils/pinprocfw/pinprocfw.cpp @@ -2188,12 +2188,12 @@ int checkPROCFile() { // Check for valid board ID and rev if (board_id != file_board_id) { - fprintf(stderr, "\nERROR: board type mismatch.", board_id); + fprintf(stderr, "\nERROR: board type mismatch."); if (board_id == P_ROC_CHIP_ID && file_board_id == P3_ROC_CHIP_ID) - fprintf(stderr, "\nCannot program a P3-ROC image onto a P-ROC\n\n", file_board_id, board_id); + fprintf(stderr, "\nCannot program a P3-ROC image onto a P-ROC\n\n"); else if (board_id == P3_ROC_CHIP_ID && file_board_id == P_ROC_CHIP_ID) - fprintf(stderr, "\nCannot program a P-ROC image onto a P3-ROC\n\n", file_board_id, board_id); - else fprintf(stderr, "\nBoard and image are incompatible\n\n", file_board_id, board_id); + fprintf(stderr, "\nCannot program a P-ROC image onto a P3-ROC\n\n"); + else fprintf(stderr, "\nImage (0x%08X) and board (0x%08X) are incompatible\n\n", file_board_id, board_id); return 0; } else fprintf(stderr, "\nBoard ID verified");