From b118ea42ca05ed58ad99f6ac3ed5f7ea2f8c2344 Mon Sep 17 00:00:00 2001 From: Joerg Wunsch Date: Fri, 8 Sep 2006 21:10:05 +0000 Subject: [PATCH] Hide two debug/trace statements behind "verbose". git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@653 81a1dc3b-b13d-400b-aceb-764788c761c2 --- ChangeLog | 3 ++- stk500v2.c | 7 ++++--- 2 files changed, 6 insertions(+), 4 deletions(-) diff --git a/ChangeLog b/ChangeLog index 696c3e4c..da8d8cbf 100644 --- a/ChangeLog +++ b/ChangeLog @@ -1,6 +1,7 @@ -2006-09-07 Joerg Wunsch +2006-09-08 Joerg Wunsch * fileio.c: CPP statements start in column #1. + * stk500v2.c: Hide two debug/trace statements behind "verbose". 2006-09-07 Joerg Wunsch diff --git a/stk500v2.c b/stk500v2.c index f74efa71..d58cc183 100644 --- a/stk500v2.c +++ b/stk500v2.c @@ -1868,8 +1868,9 @@ static int stk500v2_set_sck_period_mk2(PROGRAMMER * pgm, double v) break; } - fprintf(stderr, "Using p = %.2f us for SCK (param = %d)\n", - 1000000 / avrispmkIIfreqs[i], i); + if (verbose > 2) + fprintf(stderr, "Using p = %.2f us for SCK (param = %d)\n", + 1000000 / avrispmkIIfreqs[i], i); return stk500v2_setparm(pgm, PARAM_SCK_DURATION, i); } @@ -1974,7 +1975,7 @@ static int stk500v2_setparm(PROGRAMMER * pgm, unsigned char parm, unsigned char fprintf(stderr, "%s: Unable to get parameter 0x%02x\n", progname, parm); // don't issue a write if the correct value is already set. - if (value == current_value) { + if (value == current_value && verbose > 2) { fprintf(stderr, "%s: Skipping paramter write; parameter value already set.\n", progname); return 0; }