Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

USB: serqt_usb2.c: remove dbg() tracing calls

dbg() was used a lot a long time ago to trace code flow. Now that we have
ftrace, this isn't needed at all, so remove these calls.

CC: Bill Pemberton <wfp5p@virginia.edu>
CC: Rusty Russell <rusty@rustcorp.com.au>
CC: Alan Stern <stern@rowland.harvard.edu>
CC: Mauro Carvalho Chehab <mchehab@redhat.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>

-44
-44
drivers/staging/serqt_usb2/serqt_usb2.c
··· 304 304 305 305 quatech_port = urb->context; 306 306 307 - dbg("%s - port %d\n", __func__, quatech_port->port_num); 308 - 309 307 tty = tty_port_tty_get(&quatech_port->port->port); 310 308 311 309 if (tty) ··· 349 351 /* index = MINOR(port->tty->device) - serial->minor; */ 350 352 index = tty->index - serial->minor; 351 353 352 - dbg("%s - port %d\n", __func__, port->number); 353 354 dbg("%s - port->RxHolding = %d\n", __func__, qt_port->RxHolding); 354 355 355 356 if (port_paranoia_check(port, __func__) != 0) { ··· 723 726 int i; 724 727 int status; 725 728 726 - dbg("enterting %s", __func__); 727 - 728 729 /* Now setup per port private data */ 729 730 for (i = 0; i < serial->num_ports; i++) { 730 731 port = serial->port[i]; ··· 850 855 struct quatech_port *qt_port; 851 856 int i; 852 857 853 - dbg("enterting %s", __func__); 854 - 855 858 for (i = 0; i < serial->num_ports; i++) { 856 859 port = serial->port[i]; 857 860 if (!port) ··· 874 881 875 882 if (port_paranoia_check(port, __func__)) 876 883 return -ENODEV; 877 - 878 - dbg("%s - port %d\n", __func__, port->number); 879 884 880 885 serial = port->serial; 881 886 ··· 997 1006 998 1007 serial = get_usb_serial(port, __func__); 999 1008 1000 - dbg("%s - port %d\n", __func__, port->number); 1001 - 1002 1009 if (serial->num_bulk_out) { 1003 1010 if (port->write_urb->status == -EINPROGRESS) 1004 1011 chars = port->write_urb->transfer_buffer_length; ··· 1042 1053 int status; 1043 1054 unsigned int index; 1044 1055 status = 0; 1045 - 1046 - dbg("%s - port %d\n", __func__, port->number); 1047 1056 1048 1057 tty = tty_port_tty_get(&port->port); 1049 1058 index = tty->index - serial->minor; ··· 1095 1108 1096 1109 if (serial == NULL) 1097 1110 return -ENODEV; 1098 - 1099 - dbg("%s - port %d\n", __func__, port->number); 1100 1111 1101 1112 if (count == 0) { 1102 1113 dbg("%s - write request of 0 bytes\n", __func__); ··· 1157 1172 qt_port = qt_get_port_private(port); 1158 1173 1159 1174 mutex_lock(&qt_port->lock); 1160 - 1161 - dbg("%s - port %d\n", __func__, port->number); 1162 1175 1163 1176 if (serial->num_bulk_out) { 1164 1177 if (port->write_urb->status != -EINPROGRESS) ··· 1223 1240 unsigned int index; 1224 1241 int baud, divisor, remainder; 1225 1242 int status; 1226 - 1227 - dbg("%s", __func__); 1228 1243 1229 1244 index = tty->index - port->serial->minor; 1230 1245 ··· 1346 1365 1347 1366 mutex_lock(&qt_port->lock); 1348 1367 1349 - dbg("%s - port %d\n", __func__, port->number); 1350 - 1351 1368 result = 1352 1369 usb_control_msg(serial->dev, usb_sndctrlpipe(serial->dev, 0), 1353 1370 QT_BREAK_CONTROL, 0x40, onoff, index, NULL, 0, 300); ··· 1363 1384 unsigned int result = 0; 1364 1385 int status; 1365 1386 unsigned int index; 1366 - 1367 - dbg("%s - port %d, tty =0x%p\n", __func__, port->number, tty); 1368 1387 1369 1388 index = tty->index - serial->minor; 1370 1389 status = ··· 1403 1426 int status; 1404 1427 unsigned int index; 1405 1428 1406 - dbg("%s - port %d\n", __func__, port->number); 1407 - 1408 1429 index = tty->index - serial->minor; 1409 1430 status = 1410 1431 BoxGetRegister(port->serial, index, MODEM_CONTROL_REGISTER, &mcr); ··· 1436 1461 struct quatech_port *qt_port = qt_get_port_private(port); 1437 1462 int retval = -ENODEV; 1438 1463 1439 - dbg("In %s\n", __func__); 1440 - 1441 1464 if (!serial) 1442 1465 return -ENODEV; 1443 1466 1444 1467 mutex_lock(&qt_port->lock); 1445 - 1446 - dbg("%s - port %d\n", __func__, port->number); 1447 - dbg("%s - port->RxHolding = %d\n", __func__, qt_port->RxHolding); 1448 - 1449 1468 retval = qt_real_tiocmget(tty, port, serial); 1450 - 1451 1469 mutex_unlock(&qt_port->lock); 1452 1470 return retval; 1453 1471 } ··· 1454 1486 struct quatech_port *qt_port = qt_get_port_private(port); 1455 1487 int retval = -ENODEV; 1456 1488 1457 - dbg("In %s\n", __func__); 1458 - 1459 1489 if (!serial) 1460 1490 return -ENODEV; 1461 1491 1462 1492 mutex_lock(&qt_port->lock); 1463 - 1464 - dbg("%s - port %d\n", __func__, port->number); 1465 - dbg("%s - qt_port->RxHolding = %d\n", __func__, qt_port->RxHolding); 1466 - 1467 1493 retval = qt_real_tiocmset(tty, port, serial, set); 1468 - 1469 1494 mutex_unlock(&qt_port->lock); 1470 1495 return retval; 1471 1496 } ··· 1469 1508 struct usb_serial *serial = get_usb_serial(port, __func__); 1470 1509 struct quatech_port *qt_port; 1471 1510 1472 - dbg("%s - port %d\n", __func__, port->number); 1473 - 1474 1511 if (!serial) 1475 1512 return; 1476 1513 ··· 1478 1519 1479 1520 /* pass on to the driver specific version of this function */ 1480 1521 qt_port->RxHolding = 1; 1481 - dbg("%s - port->RxHolding = 1\n", __func__); 1482 1522 1483 1523 mutex_unlock(&qt_port->lock); 1484 1524 return; ··· 1496 1538 qt_port = qt_get_port_private(port); 1497 1539 1498 1540 mutex_lock(&qt_port->lock); 1499 - 1500 - dbg("%s - port %d\n", __func__, port->number); 1501 1541 1502 1542 if (qt_port->RxHolding == 1) { 1503 1543 dbg("%s -qt_port->RxHolding == 1\n", __func__);