# This is a BitKeeper generated patch for the following project: # Project Name: Linux kernel tree # This patch format is intended for GNU patch command version 2.5 or higher. # This patch includes the following deltas: # ChangeSet 1.551 -> 1.552 # drivers/usb/serial/safe_serial.c 1.6 -> 1.7 # # The following is the BitKeeper ChangeSet Log # -------------------------------------------- # 02/08/28 greg@kroah.com 1.552 # USB: safe_serial driver: fixed __FUNCTION__ usages. # -------------------------------------------- # diff -Nru a/drivers/usb/serial/safe_serial.c b/drivers/usb/serial/safe_serial.c --- a/drivers/usb/serial/safe_serial.c Wed Aug 28 23:20:11 2002 +++ b/drivers/usb/serial/safe_serial.c Wed Aug 28 23:20:11 2002 @@ -211,12 +211,12 @@ dbg ("%s", __FUNCTION__); if (!serial) { - dbg (__FUNCTION__ " - bad serial pointer, exiting"); + dbg ("%s - bad serial pointer, exiting", __FUNCTION__); return; } if (urb->status) { - dbg (__FUNCTION__ " - nonzero read bulk status received: %d", urb->status); + dbg ("%s - nonzero read bulk status received: %d", __FUNCTION__, urb->status); return; } @@ -242,18 +242,18 @@ if (actual_length <= (length - 2)) { - info (__FUNCTION__ " - actual: %d", actual_length); + info ("%s - actual: %d", __FUNCTION__, actual_length); for (i = 0; i < actual_length; i++) { tty_insert_flip_char (port->tty, data[i], 0); } tty_flip_buffer_push (port->tty); } else { - err (__FUNCTION__ " - inconsistant lengths %d:%d", actual_length, - length); + err ("%s - inconsistant lengths %d:%d", __FUNCTION__, + actual_length, length); } } else { - err (__FUNCTION__ " - bad CRC %x", fcs); + err ("%s - bad CRC %x", __FUNCTION__, fcs); } } else { for (i = 0; i < length; i++) { @@ -269,7 +269,7 @@ safe_read_bulk_callback, port); if ((result = usb_submit_urb (urb, GFP_ATOMIC))) { - err (__FUNCTION__ " - failed resubmitting read urb, error %d", result); + err ("%s - failed resubmitting read urb, error %d", __FUNCTION__, result); } } @@ -285,7 +285,7 @@ count); if (!port->write_urb) { - dbg (__FUNCTION__ " - write urb NULL"); + dbg ("%s - write urb NULL", __FUNCTION__); return (0); } @@ -293,15 +293,15 @@ port->write_urb->transfer_buffer_length); if (!port->write_urb->transfer_buffer_length) { - dbg (__FUNCTION__ " - write urb transfer_buffer_length zero"); + dbg ("%s - write urb transfer_buffer_length zero", __FUNCTION__); return (0); } if (count == 0) { - dbg (__FUNCTION__ " - write request of 0 bytes"); + dbg ("%s - write request of 0 bytes", __FUNCTION__); return (0); } if (port->write_urb->status == -EINPROGRESS) { - dbg (__FUNCTION__ " - already writing"); + dbg ("%s - already writing", __FUNCTION__); return (0); } @@ -360,10 +360,10 @@ #endif port->write_urb->dev = serial->dev; if ((result = usb_submit_urb (port->write_urb, GFP_KERNEL))) { - err (__FUNCTION__ " - failed submitting write urb, error %d", result); + err ("%s - failed submitting write urb, error %d", __FUNCTION__, result); return 0; } - dbg (__FUNCTION__ " urb: %p submitted", port->write_urb); + dbg ("%s urb: %p submitted", __FUNCTION__, port->write_urb); return (count); }