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:
parent
e95efe278b
commit
17d4c26550
|
@ -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.
|
* 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>
|
2006-09-07 Joerg Wunsch <j@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
|
|
@ -1868,6 +1868,7 @@ static int stk500v2_set_sck_period_mk2(PROGRAMMER * pgm, double v)
|
||||||
break;
|
break;
|
||||||
}
|
}
|
||||||
|
|
||||||
|
if (verbose > 2)
|
||||||
fprintf(stderr, "Using p = %.2f us for SCK (param = %d)\n",
|
fprintf(stderr, "Using p = %.2f us for SCK (param = %d)\n",
|
||||||
1000000 / avrispmkIIfreqs[i], i);
|
1000000 / avrispmkIIfreqs[i], 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);
|
fprintf(stderr, "%s: Unable to get parameter 0x%02x\n", progname, parm);
|
||||||
|
|
||||||
// don't issue a write if the correct value is already set.
|
// 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);
|
fprintf(stderr, "%s: Skipping paramter write; parameter value already set.\n", progname);
|
||||||
return 0;
|
return 0;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in New Issue