Supress debug chatter in quiet mode.
This commit is contained in:
parent
35df9ed67a
commit
b2185061b7
|
@ -137,7 +137,7 @@ struct fet_device {
|
||||||
|
|
||||||
static void show_dev_info(const char *name, const struct fet_device *dev)
|
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);
|
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) {
|
if (try_open(dev, args, fet_flags & FET_FORCE_RESET) < 0) {
|
||||||
delay_ms(500);
|
delay_ms(500);
|
||||||
printc("Trying again...\n");
|
printc_dbg("Trying again...\n");
|
||||||
if (try_open(dev, args, !is_new_olimex(dev)) < 0)
|
if (try_open(dev, args, !is_new_olimex(dev)) < 0)
|
||||||
goto fail;
|
goto fail;
|
||||||
}
|
}
|
||||||
|
|
|
@ -125,7 +125,7 @@ transport_t comport_open(const char *device, int baud_rate)
|
||||||
|
|
||||||
tr->base.ops = &comport_transport;
|
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);
|
tr->serial_fd = sport_open(device, baud_rate, 0);
|
||||||
if (SPORT_ISERR(tr->serial_fd)) {
|
if (SPORT_ISERR(tr->serial_fd)) {
|
||||||
printc_err("comport: can't open serial device: %s: %s\n",
|
printc_err("comport: can't open serial device: %s: %s\n",
|
||||||
|
|
|
@ -127,7 +127,7 @@ static int open_interface(struct cp210x_transport *tr,
|
||||||
char drName[256];
|
char drName[256];
|
||||||
#endif
|
#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);
|
ino, dev->filename);
|
||||||
|
|
||||||
tr->int_number = ino;
|
tr->int_number = ino;
|
||||||
|
|
|
@ -58,7 +58,7 @@ struct rf2500_transport {
|
||||||
static int open_interface(struct rf2500_transport *tr,
|
static int open_interface(struct rf2500_transport *tr,
|
||||||
struct usb_device *dev, int ino)
|
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;
|
tr->int_number = ino;
|
||||||
|
|
||||||
|
|
Loading…
Reference in New Issue