diff options
author | Harvey Harrison <harvey.harrison@gmail.com> | 2008-03-03 19:08:34 -0500 |
---|---|---|
committer | Greg Kroah-Hartman <gregkh@suse.de> | 2008-04-25 00:16:55 -0400 |
commit | 441b62c1edb986827154768d89bbac0ba779984f (patch) | |
tree | 13724c22d1b190a36f0ddbba38554e6c66bea6af /drivers/usb/storage | |
parent | 14722ef4acedc643f0b78b7165ceff2d300dae4d (diff) |
USB: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@suse.de>
Diffstat (limited to 'drivers/usb/storage')
-rw-r--r-- | drivers/usb/storage/scsiglue.c | 10 | ||||
-rw-r--r-- | drivers/usb/storage/transport.c | 18 | ||||
-rw-r--r-- | drivers/usb/storage/usb.c | 16 |
3 files changed, 22 insertions, 22 deletions
diff --git a/drivers/usb/storage/scsiglue.c b/drivers/usb/storage/scsiglue.c index 521f0297aef9..3fcde9f0fa5f 100644 --- a/drivers/usb/storage/scsiglue.c +++ b/drivers/usb/storage/scsiglue.c | |||
@@ -228,12 +228,12 @@ static int queuecommand(struct scsi_cmnd *srb, | |||
228 | { | 228 | { |
229 | struct us_data *us = host_to_us(srb->device->host); | 229 | struct us_data *us = host_to_us(srb->device->host); |
230 | 230 | ||
231 | US_DEBUGP("%s called\n", __FUNCTION__); | 231 | US_DEBUGP("%s called\n", __func__); |
232 | 232 | ||
233 | /* check for state-transition errors */ | 233 | /* check for state-transition errors */ |
234 | if (us->srb != NULL) { | 234 | if (us->srb != NULL) { |
235 | printk(KERN_ERR USB_STORAGE "Error in %s: us->srb = %p\n", | 235 | printk(KERN_ERR USB_STORAGE "Error in %s: us->srb = %p\n", |
236 | __FUNCTION__, us->srb); | 236 | __func__, us->srb); |
237 | return SCSI_MLQUEUE_HOST_BUSY; | 237 | return SCSI_MLQUEUE_HOST_BUSY; |
238 | } | 238 | } |
239 | 239 | ||
@@ -262,7 +262,7 @@ static int command_abort(struct scsi_cmnd *srb) | |||
262 | { | 262 | { |
263 | struct us_data *us = host_to_us(srb->device->host); | 263 | struct us_data *us = host_to_us(srb->device->host); |
264 | 264 | ||
265 | US_DEBUGP("%s called\n", __FUNCTION__); | 265 | US_DEBUGP("%s called\n", __func__); |
266 | 266 | ||
267 | /* us->srb together with the TIMED_OUT, RESETTING, and ABORTING | 267 | /* us->srb together with the TIMED_OUT, RESETTING, and ABORTING |
268 | * bits are protected by the host lock. */ | 268 | * bits are protected by the host lock. */ |
@@ -299,7 +299,7 @@ static int device_reset(struct scsi_cmnd *srb) | |||
299 | struct us_data *us = host_to_us(srb->device->host); | 299 | struct us_data *us = host_to_us(srb->device->host); |
300 | int result; | 300 | int result; |
301 | 301 | ||
302 | US_DEBUGP("%s called\n", __FUNCTION__); | 302 | US_DEBUGP("%s called\n", __func__); |
303 | 303 | ||
304 | /* lock the device pointers and do the reset */ | 304 | /* lock the device pointers and do the reset */ |
305 | mutex_lock(&(us->dev_mutex)); | 305 | mutex_lock(&(us->dev_mutex)); |
@@ -315,7 +315,7 @@ static int bus_reset(struct scsi_cmnd *srb) | |||
315 | struct us_data *us = host_to_us(srb->device->host); | 315 | struct us_data *us = host_to_us(srb->device->host); |
316 | int result; | 316 | int result; |
317 | 317 | ||
318 | US_DEBUGP("%s called\n", __FUNCTION__); | 318 | US_DEBUGP("%s called\n", __func__); |
319 | result = usb_stor_port_reset(us); | 319 | result = usb_stor_port_reset(us); |
320 | return result < 0 ? FAILED : SUCCESS; | 320 | return result < 0 ? FAILED : SUCCESS; |
321 | } | 321 | } |
diff --git a/drivers/usb/storage/transport.c b/drivers/usb/storage/transport.c index 4628f03b13bf..db55ec39bb83 100644 --- a/drivers/usb/storage/transport.c +++ b/drivers/usb/storage/transport.c | |||
@@ -198,7 +198,7 @@ int usb_stor_control_msg(struct us_data *us, unsigned int pipe, | |||
198 | int status; | 198 | int status; |
199 | 199 | ||
200 | US_DEBUGP("%s: rq=%02x rqtype=%02x value=%04x index=%02x len=%u\n", | 200 | US_DEBUGP("%s: rq=%02x rqtype=%02x value=%04x index=%02x len=%u\n", |
201 | __FUNCTION__, request, requesttype, | 201 | __func__, request, requesttype, |
202 | value, index, size); | 202 | value, index, size); |
203 | 203 | ||
204 | /* fill in the devrequest structure */ | 204 | /* fill in the devrequest structure */ |
@@ -250,7 +250,7 @@ int usb_stor_clear_halt(struct us_data *us, unsigned int pipe) | |||
250 | usb_settoggle(us->pusb_dev, usb_pipeendpoint(pipe), | 250 | usb_settoggle(us->pusb_dev, usb_pipeendpoint(pipe), |
251 | usb_pipeout(pipe), 0); | 251 | usb_pipeout(pipe), 0); |
252 | 252 | ||
253 | US_DEBUGP("%s: result = %d\n", __FUNCTION__, result); | 253 | US_DEBUGP("%s: result = %d\n", __func__, result); |
254 | return result; | 254 | return result; |
255 | } | 255 | } |
256 | 256 | ||
@@ -332,7 +332,7 @@ int usb_stor_ctrl_transfer(struct us_data *us, unsigned int pipe, | |||
332 | int result; | 332 | int result; |
333 | 333 | ||
334 | US_DEBUGP("%s: rq=%02x rqtype=%02x value=%04x index=%02x len=%u\n", | 334 | US_DEBUGP("%s: rq=%02x rqtype=%02x value=%04x index=%02x len=%u\n", |
335 | __FUNCTION__, request, requesttype, | 335 | __func__, request, requesttype, |
336 | value, index, size); | 336 | value, index, size); |
337 | 337 | ||
338 | /* fill in the devrequest structure */ | 338 | /* fill in the devrequest structure */ |
@@ -366,7 +366,7 @@ static int usb_stor_intr_transfer(struct us_data *us, void *buf, | |||
366 | unsigned int pipe = us->recv_intr_pipe; | 366 | unsigned int pipe = us->recv_intr_pipe; |
367 | unsigned int maxp; | 367 | unsigned int maxp; |
368 | 368 | ||
369 | US_DEBUGP("%s: xfer %u bytes\n", __FUNCTION__, length); | 369 | US_DEBUGP("%s: xfer %u bytes\n", __func__, length); |
370 | 370 | ||
371 | /* calculate the max packet size */ | 371 | /* calculate the max packet size */ |
372 | maxp = usb_maxpacket(us->pusb_dev, pipe, usb_pipeout(pipe)); | 372 | maxp = usb_maxpacket(us->pusb_dev, pipe, usb_pipeout(pipe)); |
@@ -393,7 +393,7 @@ int usb_stor_bulk_transfer_buf(struct us_data *us, unsigned int pipe, | |||
393 | { | 393 | { |
394 | int result; | 394 | int result; |
395 | 395 | ||
396 | US_DEBUGP("%s: xfer %u bytes\n", __FUNCTION__, length); | 396 | US_DEBUGP("%s: xfer %u bytes\n", __func__, length); |
397 | 397 | ||
398 | /* fill and submit the URB */ | 398 | /* fill and submit the URB */ |
399 | usb_fill_bulk_urb(us->current_urb, us->pusb_dev, pipe, buf, length, | 399 | usb_fill_bulk_urb(us->current_urb, us->pusb_dev, pipe, buf, length, |
@@ -424,7 +424,7 @@ static int usb_stor_bulk_transfer_sglist(struct us_data *us, unsigned int pipe, | |||
424 | return USB_STOR_XFER_ERROR; | 424 | return USB_STOR_XFER_ERROR; |
425 | 425 | ||
426 | /* initialize the scatter-gather request block */ | 426 | /* initialize the scatter-gather request block */ |
427 | US_DEBUGP("%s: xfer %u bytes, %d entries\n", __FUNCTION__, | 427 | US_DEBUGP("%s: xfer %u bytes, %d entries\n", __func__, |
428 | length, num_sg); | 428 | length, num_sg); |
429 | result = usb_sg_init(&us->current_sg, us->pusb_dev, pipe, 0, | 429 | result = usb_sg_init(&us->current_sg, us->pusb_dev, pipe, 0, |
430 | sg, num_sg, length, GFP_NOIO); | 430 | sg, num_sg, length, GFP_NOIO); |
@@ -701,7 +701,7 @@ void usb_stor_invoke_transport(struct scsi_cmnd *srb, struct us_data *us) | |||
701 | /* Stop the current URB transfer */ | 701 | /* Stop the current URB transfer */ |
702 | void usb_stor_stop_transport(struct us_data *us) | 702 | void usb_stor_stop_transport(struct us_data *us) |
703 | { | 703 | { |
704 | US_DEBUGP("%s called\n", __FUNCTION__); | 704 | US_DEBUGP("%s called\n", __func__); |
705 | 705 | ||
706 | /* If the state machine is blocked waiting for an URB, | 706 | /* If the state machine is blocked waiting for an URB, |
707 | * let's wake it up. The test_and_clear_bit() call | 707 | * let's wake it up. The test_and_clear_bit() call |
@@ -1135,7 +1135,7 @@ static int usb_stor_reset_common(struct us_data *us, | |||
1135 | 1135 | ||
1136 | int usb_stor_CB_reset(struct us_data *us) | 1136 | int usb_stor_CB_reset(struct us_data *us) |
1137 | { | 1137 | { |
1138 | US_DEBUGP("%s called\n", __FUNCTION__); | 1138 | US_DEBUGP("%s called\n", __func__); |
1139 | 1139 | ||
1140 | memset(us->iobuf, 0xFF, CB_RESET_CMD_SIZE); | 1140 | memset(us->iobuf, 0xFF, CB_RESET_CMD_SIZE); |
1141 | us->iobuf[0] = SEND_DIAGNOSTIC; | 1141 | us->iobuf[0] = SEND_DIAGNOSTIC; |
@@ -1150,7 +1150,7 @@ int usb_stor_CB_reset(struct us_data *us) | |||
1150 | */ | 1150 | */ |
1151 | int usb_stor_Bulk_reset(struct us_data *us) | 1151 | int usb_stor_Bulk_reset(struct us_data *us) |
1152 | { | 1152 | { |
1153 | US_DEBUGP("%s called\n", __FUNCTION__); | 1153 | US_DEBUGP("%s called\n", __func__); |
1154 | 1154 | ||
1155 | return usb_stor_reset_common(us, US_BULK_RESET_REQUEST, | 1155 | return usb_stor_reset_common(us, US_BULK_RESET_REQUEST, |
1156 | USB_TYPE_CLASS | USB_RECIP_INTERFACE, | 1156 | USB_TYPE_CLASS | USB_RECIP_INTERFACE, |
diff --git a/drivers/usb/storage/usb.c b/drivers/usb/storage/usb.c index f59593de3b8f..a856effad3bd 100644 --- a/drivers/usb/storage/usb.c +++ b/drivers/usb/storage/usb.c | |||
@@ -190,7 +190,7 @@ static int storage_suspend(struct usb_interface *iface, pm_message_t message) | |||
190 | /* Wait until no command is running */ | 190 | /* Wait until no command is running */ |
191 | mutex_lock(&us->dev_mutex); | 191 | mutex_lock(&us->dev_mutex); |
192 | 192 | ||
193 | US_DEBUGP("%s\n", __FUNCTION__); | 193 | US_DEBUGP("%s\n", __func__); |
194 | if (us->suspend_resume_hook) | 194 | if (us->suspend_resume_hook) |
195 | (us->suspend_resume_hook)(us, US_SUSPEND); | 195 | (us->suspend_resume_hook)(us, US_SUSPEND); |
196 | 196 | ||
@@ -207,7 +207,7 @@ static int storage_resume(struct usb_interface *iface) | |||
207 | 207 | ||
208 | mutex_lock(&us->dev_mutex); | 208 | mutex_lock(&us->dev_mutex); |
209 | 209 | ||
210 | US_DEBUGP("%s\n", __FUNCTION__); | 210 | US_DEBUGP("%s\n", __func__); |
211 | if (us->suspend_resume_hook) | 211 | if (us->suspend_resume_hook) |
212 | (us->suspend_resume_hook)(us, US_RESUME); | 212 | (us->suspend_resume_hook)(us, US_RESUME); |
213 | 213 | ||
@@ -219,7 +219,7 @@ static int storage_reset_resume(struct usb_interface *iface) | |||
219 | { | 219 | { |
220 | struct us_data *us = usb_get_intfdata(iface); | 220 | struct us_data *us = usb_get_intfdata(iface); |
221 | 221 | ||
222 | US_DEBUGP("%s\n", __FUNCTION__); | 222 | US_DEBUGP("%s\n", __func__); |
223 | 223 | ||
224 | /* Report the reset to the SCSI core */ | 224 | /* Report the reset to the SCSI core */ |
225 | usb_stor_report_bus_reset(us); | 225 | usb_stor_report_bus_reset(us); |
@@ -240,7 +240,7 @@ static int storage_pre_reset(struct usb_interface *iface) | |||
240 | { | 240 | { |
241 | struct us_data *us = usb_get_intfdata(iface); | 241 | struct us_data *us = usb_get_intfdata(iface); |
242 | 242 | ||
243 | US_DEBUGP("%s\n", __FUNCTION__); | 243 | US_DEBUGP("%s\n", __func__); |
244 | 244 | ||
245 | /* Make sure no command runs during the reset */ | 245 | /* Make sure no command runs during the reset */ |
246 | mutex_lock(&us->dev_mutex); | 246 | mutex_lock(&us->dev_mutex); |
@@ -251,7 +251,7 @@ static int storage_post_reset(struct usb_interface *iface) | |||
251 | { | 251 | { |
252 | struct us_data *us = usb_get_intfdata(iface); | 252 | struct us_data *us = usb_get_intfdata(iface); |
253 | 253 | ||
254 | US_DEBUGP("%s\n", __FUNCTION__); | 254 | US_DEBUGP("%s\n", __func__); |
255 | 255 | ||
256 | /* Report the reset to the SCSI core */ | 256 | /* Report the reset to the SCSI core */ |
257 | usb_stor_report_bus_reset(us); | 257 | usb_stor_report_bus_reset(us); |
@@ -437,7 +437,7 @@ SkipForAbort: | |||
437 | /* Associate our private data with the USB device */ | 437 | /* Associate our private data with the USB device */ |
438 | static int associate_dev(struct us_data *us, struct usb_interface *intf) | 438 | static int associate_dev(struct us_data *us, struct usb_interface *intf) |
439 | { | 439 | { |
440 | US_DEBUGP("-- %s\n", __FUNCTION__); | 440 | US_DEBUGP("-- %s\n", __func__); |
441 | 441 | ||
442 | /* Fill in the device-related fields */ | 442 | /* Fill in the device-related fields */ |
443 | us->pusb_dev = interface_to_usbdev(intf); | 443 | us->pusb_dev = interface_to_usbdev(intf); |
@@ -816,7 +816,7 @@ static int usb_stor_acquire_resources(struct us_data *us) | |||
816 | /* Release all our dynamic resources */ | 816 | /* Release all our dynamic resources */ |
817 | static void usb_stor_release_resources(struct us_data *us) | 817 | static void usb_stor_release_resources(struct us_data *us) |
818 | { | 818 | { |
819 | US_DEBUGP("-- %s\n", __FUNCTION__); | 819 | US_DEBUGP("-- %s\n", __func__); |
820 | 820 | ||
821 | /* Tell the control thread to exit. The SCSI host must | 821 | /* Tell the control thread to exit. The SCSI host must |
822 | * already have been removed so it won't try to queue | 822 | * already have been removed so it won't try to queue |
@@ -842,7 +842,7 @@ static void usb_stor_release_resources(struct us_data *us) | |||
842 | /* Dissociate from the USB device */ | 842 | /* Dissociate from the USB device */ |
843 | static void dissociate_dev(struct us_data *us) | 843 | static void dissociate_dev(struct us_data *us) |
844 | { | 844 | { |
845 | US_DEBUGP("-- %s\n", __FUNCTION__); | 845 | US_DEBUGP("-- %s\n", __func__); |
846 | 846 | ||
847 | kfree(us->sensebuf); | 847 | kfree(us->sensebuf); |
848 | 848 | ||