Remove stray printf()s by fprintf(stderr).
git-svn-id: svn://svn.savannah.nongnu.org/avrdude/trunk/avrdude@1015 81a1dc3b-b13d-400b-aceb-764788c761c2
This commit is contained in:
parent
642d152748
commit
57010bf9ba
|
@ -1,3 +1,8 @@
|
||||||
|
2011-09-15 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
|
* avrftdi.c: Remove stray printf()s by fprintf(stderr)
|
||||||
|
* usbtiny.c: (Ditto.)
|
||||||
|
|
||||||
2011-09-15 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
2011-09-15 Joerg Wunsch <j.gnu@uriah.heep.sax.de>
|
||||||
|
|
||||||
* main.c: Restrict the cyclecounter readout to those cases where
|
* main.c: Restrict the cyclecounter readout to those cases where
|
||||||
|
|
|
@ -145,7 +145,8 @@ static int add_pin(PROGRAMMER *pgm, int pinfunc)
|
||||||
else if(TYPE_2232H == ftype)
|
else if(TYPE_2232H == ftype)
|
||||||
mlim=15;
|
mlim=15;
|
||||||
else{
|
else{
|
||||||
printf("Unknown type %d (0x%x)\n",ftype,ftype);
|
fprintf(stderr, "Unknown type %d (0x%x)\n",
|
||||||
|
ftype, ftype);
|
||||||
mlim=15;
|
mlim=15;
|
||||||
}
|
}
|
||||||
/* check that the pin number is in range */
|
/* check that the pin number is in range */
|
||||||
|
@ -205,8 +206,8 @@ static int add_pins(PROGRAMMER *pgm, int pinfunc)
|
||||||
else if (TYPE_2232H == ftype)
|
else if (TYPE_2232H == ftype)
|
||||||
mlim = 16;
|
mlim = 16;
|
||||||
else{
|
else{
|
||||||
printf("Unknown type %d (0x%x)\n",
|
fprintf(stderr, "Unknown type %d (0x%x)\n",
|
||||||
ftype, ftype);
|
ftype, ftype);
|
||||||
mlim = 16;
|
mlim = 16;
|
||||||
}
|
}
|
||||||
if (mask >= 1 << mlim) {
|
if (mask >= 1 << mlim) {
|
||||||
|
@ -262,7 +263,7 @@ static int write_flush(void)
|
||||||
#endif
|
#endif
|
||||||
|
|
||||||
if (verbose > 3)
|
if (verbose > 3)
|
||||||
printf("FTDI LOG: %02x %02x %02x %02x %02x %02x\n",
|
fprintf(stderr, "FTDI LOG: %02x %02x %02x %02x %02x %02x\n",
|
||||||
buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
|
buf[0], buf[1], buf[2], buf[3], buf[4], buf[5]);
|
||||||
|
|
||||||
/* we need to flush here, because set_pin is used as reset.
|
/* we need to flush here, because set_pin is used as reset.
|
||||||
|
|
|
@ -226,7 +226,9 @@ static int usbtiny_open(PROGRAMMER* pgm, char* name)
|
||||||
if (dev->descriptor.idVendor == USBTINY_VENDOR
|
if (dev->descriptor.idVendor == USBTINY_VENDOR
|
||||||
&& dev->descriptor.idProduct == USBTINY_PRODUCT ) { // found match?
|
&& dev->descriptor.idProduct == USBTINY_PRODUCT ) { // found match?
|
||||||
if(verbose)
|
if(verbose)
|
||||||
printf("avrdude: usbdev_open(): Found USBtinyISP, bus:device: %s:%s\n", bus->dirname, dev->filename);
|
fprintf(stderr,
|
||||||
|
"%s: usbdev_open(): Found USBtinyISP, bus:device: %s:%s\n",
|
||||||
|
progname, bus->dirname, dev->filename);
|
||||||
// if -P was given, match device by device name and bus name
|
// if -P was given, match device by device name and bus name
|
||||||
if(name != NULL &&
|
if(name != NULL &&
|
||||||
(NULL == dev_name ||
|
(NULL == dev_name ||
|
||||||
|
|
Loading…
Reference in New Issue