Supress debug chatter in quiet mode.

This commit is contained in:
Daniel Beer 2013-10-26 09:59:48 +13:00
parent 35df9ed67a
commit b2185061b7
4 changed files with 5 additions and 5 deletions

View File

@ -137,7 +137,7 @@ struct fet_device {
static void show_dev_info(const char *name, const struct fet_device *dev)
{
printc("Device: %s\n", name);
printc_dbg("Device: %s\n", name);
printc_dbg("Number of breakpoints: %d\n", dev->base.max_breakpoints);
}
@ -1037,7 +1037,7 @@ device_t fet_open(const struct device_args *args,
if (try_open(dev, args, fet_flags & FET_FORCE_RESET) < 0) {
delay_ms(500);
printc("Trying again...\n");
printc_dbg("Trying again...\n");
if (try_open(dev, args, !is_new_olimex(dev)) < 0)
goto fail;
}

View File

@ -125,7 +125,7 @@ transport_t comport_open(const char *device, int baud_rate)
tr->base.ops = &comport_transport;
printc("Trying to open %s at %d bps...\n", device, baud_rate);
printc_dbg("Trying to open %s at %d bps...\n", device, baud_rate);
tr->serial_fd = sport_open(device, baud_rate, 0);
if (SPORT_ISERR(tr->serial_fd)) {
printc_err("comport: can't open serial device: %s: %s\n",

View File

@ -127,7 +127,7 @@ static int open_interface(struct cp210x_transport *tr,
char drName[256];
#endif
printc(__FILE__": Trying to open interface %d on %s\n",
printc_dbg(__FILE__": Trying to open interface %d on %s\n",
ino, dev->filename);
tr->int_number = ino;

View File

@ -58,7 +58,7 @@ struct rf2500_transport {
static int open_interface(struct rf2500_transport *tr,
struct usb_device *dev, int ino)
{
printc("Trying to open interface %d on %s\n", ino, dev->filename);
printc_dbg("Trying to open interface %d on %s\n", ino, dev->filename);
tr->int_number = ino;