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:
Joerg Wunsch 2011-09-15 20:08:15 +00:00
parent 642d152748
commit 57010bf9ba
3 changed files with 13 additions and 5 deletions

View File

@ -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>
* main.c: Restrict the cyclecounter readout to those cases where

View File

@ -145,7 +145,8 @@ static int add_pin(PROGRAMMER *pgm, int pinfunc)
else if(TYPE_2232H == ftype)
mlim=15;
else{
printf("Unknown type %d (0x%x)\n",ftype,ftype);
fprintf(stderr, "Unknown type %d (0x%x)\n",
ftype, ftype);
mlim=15;
}
/* 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)
mlim = 16;
else{
printf("Unknown type %d (0x%x)\n",
ftype, ftype);
fprintf(stderr, "Unknown type %d (0x%x)\n",
ftype, ftype);
mlim = 16;
}
if (mask >= 1 << mlim) {
@ -262,7 +263,7 @@ static int write_flush(void)
#endif
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]);
/* we need to flush here, because set_pin is used as reset.

View File

@ -226,7 +226,9 @@ static int usbtiny_open(PROGRAMMER* pgm, char* name)
if (dev->descriptor.idVendor == USBTINY_VENDOR
&& dev->descriptor.idProduct == USBTINY_PRODUCT ) { // found match?
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(name != NULL &&
(NULL == dev_name ||