]> git.neil.brown.name Git - history.git/commitdiff
USB: serial drivers: fixed __FUNCTION__ usages that I missed before.
authorGreg Kroah-Hartman <greg@kroah.com>
Wed, 28 Aug 2002 15:55:17 +0000 (08:55 -0700)
committerGreg Kroah-Hartman <greg@kroah.com>
Wed, 28 Aug 2002 15:55:17 +0000 (08:55 -0700)
drivers/usb/serial/ftdi_sio.c
drivers/usb/serial/usbserial.c
drivers/usb/serial/visor.c

index 0f83fa76c9c411d14f5468b231dec4382400c13f..ac340015658f4e2f0f8aca3b9489373be6eeab6b 100644 (file)
@@ -462,7 +462,7 @@ static void ftdi_sio_write_bulk_callback (struct urb *urb)
        struct usb_serial_port *port = (struct usb_serial_port *)urb->context;
        struct usb_serial *serial;
 
-       dbg(__FUNCTION__);
+       dbg("%s", __FUNCTION__);
 
        if (port_paranoia_check (port, "ftdi_sio_write_bulk_callback")) {
                return;
@@ -634,8 +634,8 @@ static __u16 translate_baudrate_to_ftdi(unsigned int cflag, enum ftdi_type ftdi_
                case B38400: urb_value = ftdi_sio_b38400; dbg("Set to 38400") ; break;
                case B57600: urb_value = ftdi_sio_b57600; dbg("Set to 57600") ; break;
                case B115200: urb_value = ftdi_sio_b115200; dbg("Set to 115200") ; break;
-               default: dbg(__FUNCTION__ " FTDI_SIO does not support the baudrate (%d) requested",
-                            (cflag & CBAUD)); 
+               default: dbg("%s - FTDI_SIO does not support the baudrate (%d) requested",
+                            __FUNCTION__, (cflag & CBAUD)); 
                   break;
                }
        } else { /* it is 8U232AM */
@@ -654,8 +654,8 @@ static __u16 translate_baudrate_to_ftdi(unsigned int cflag, enum ftdi_type ftdi_
                case B230400: urb_value = ftdi_8U232AM_48MHz_b230400; dbg("Set to 230400") ; break;
                case B460800: urb_value = ftdi_8U232AM_48MHz_b460800; dbg("Set to 460800") ; break;
                case B921600: urb_value = ftdi_8U232AM_48MHz_b921600; dbg("Set to 921600") ; break;
-               default: dbg(__FUNCTION__ " The baudrate (%d) requested is not implemented",
-                            (cflag & CBAUD)); 
+               default: dbg("%s - The baudrate (%d) requested is not implemented",
+                            __FUNCTION__, (cflag & CBAUD)); 
                   break;
                }
        }
@@ -685,10 +685,11 @@ static void ftdi_sio_break_ctl( struct usb_serial_port *port, int break_state )
                            FTDI_SIO_SET_DATA_REQUEST_TYPE,
                            urb_value , 0,
                            buf, 0, WDR_TIMEOUT) < 0) {
-               err(__FUNCTION__ " FAILED to enable/disable break state (state was %d)",break_state);
+               err("%s - FAILED to enable/disable break state (state was %d)",
+                   __FUNCTION__, break_state);
        }          
 
-       dbg(__FUNCTION__ " break state is %d - urb is %d",break_state, urb_value);
+       dbg("%s - break state is %d - urb is %d", __FUNCTION__, break_state, urb_value);
        
 }
 
@@ -778,7 +779,7 @@ static void ftdi_sio_set_termios (struct usb_serial_port *port, struct termios *
                                    FTDI_SIO_SET_BAUDRATE_REQUEST_TYPE,
                                    urb_value, 0, 
                                    buf, 0, 100) < 0) {
-                       err(__FUNCTION__ " urb failed to set baurdrate");
+                       err("%s urb failed to set baurdrate", __FUNCTION__);
                }
        }
        /* Set flow control */
index 5972beda96d39edcf323b83bf92980849198c8c8..c893549b9a2e1fc11d44b0f72657465f6a495ab8 100644 (file)
@@ -580,7 +580,7 @@ static int serial_open (struct tty_struct *tty, struct file * filp)
 static void __serial_close(struct usb_serial_port *port, struct file *filp)
 {
        if (!port->open_count) {
-               dbg (__FUNCTION__ " - port not opened");
+               dbg ("%s - port not opened", __FUNCTION__);
                return;
        }
 
@@ -719,7 +719,7 @@ static void serial_throttle (struct tty_struct * tty)
        dbg("%s - port %d", __FUNCTION__, port->number);
 
        if (!port->open_count) {
-               dbg (__FUNCTION__ " - port not open");
+               dbg ("%s - port not open", __FUNCTION__);
                goto exit;
        }
 
index ebf1ede0d0e8bde07bafbc1b337c6ea2062626b7..67078c7f8d41ab6bab4a71ee7a06f6aa6f23c0b5 100644 (file)
@@ -394,7 +394,8 @@ static int visor_write (struct usb_serial_port *port, int from_user, const unsig
        /* send it down the pipe */
        status = usb_submit_urb(urb, GFP_ATOMIC);
        if (status) {
-               err(__FUNCTION__ " - usb_submit_urb(write bulk) failed with status = %d", status);
+               err("%s - usb_submit_urb(write bulk) failed with status = %d",
+                   __FUNCTION__, status);
                count = status;
        } else {
                bytes_out += count;
@@ -742,16 +743,17 @@ static void visor_set_termios (struct usb_serial_port *port, struct termios *old
        if (cflag & CRTSCTS)
                dbg("%s - RTS/CTS is enabled", __FUNCTION__);
        else
-               dbg(__FUNCTION__ " - RTS/CTS is disabled");
+               dbg("%s - RTS/CTS is disabled", __FUNCTION__);
        
        /* determine software flow control */
        if (I_IXOFF(port->tty))
-               dbg(__FUNCTION__ " - XON/XOFF is enabled, XON = %2x, XOFF = %2x", START_CHAR(port->tty), STOP_CHAR(port->tty));
+               dbg("%s - XON/XOFF is enabled, XON = %2x, XOFF = %2x",
+                   __FUNCTION__, START_CHAR(port->tty), STOP_CHAR(port->tty));
        else
-               dbg(__FUNCTION__ " - XON/XOFF is disabled");
+               dbg("%s - XON/XOFF is disabled", __FUNCTION__);
 
        /* get the baud rate wanted */
-       dbg(__FUNCTION__ " - baud rate = %d", tty_get_baud_rate(port->tty));
+       dbg("%s - baud rate = %d", __FUNCTION__, tty_get_baud_rate(port->tty));
 
        return;
 }