Hide two debug/trace statements behind "verbose".

git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@653 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
Joerg Wunsch 2006-09-08 21:10:05 +00:00
parent 76b13550bc
commit b118ea42ca
2 changed files with 6 additions and 4 deletions

View File

@ -1,6 +1,7 @@
2006-09-07 Joerg Wunsch <j@uriah.heep.sax.de>
2006-09-08 Joerg Wunsch <j@uriah.heep.sax.de>
* fileio.c: CPP statements start in column #1.
* stk500v2.c: Hide two debug/trace statements behind "verbose".
2006-09-07 Joerg Wunsch <j@uriah.heep.sax.de>

View File

@ -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;
}