Commit 0f3fa4b0 authored by Andrew Morton's avatar Andrew Morton Committed by Linus Torvalds

[PATCH] remove concatenation with __FUNCTION__ arch/*

From: Tony Breeds <tony@bakeyournoodle.com>
parent c1179fa6
...@@ -481,7 +481,7 @@ static void h3800_control_egpio(enum ipaq_egpio_type x, int setp) ...@@ -481,7 +481,7 @@ static void h3800_control_egpio(enum ipaq_egpio_type x, int setp)
case IPAQ_EGPIO_CODEC_NRESET: case IPAQ_EGPIO_CODEC_NRESET:
case IPAQ_EGPIO_AUDIO_ON: case IPAQ_EGPIO_AUDIO_ON:
case IPAQ_EGPIO_QMUTE: case IPAQ_EGPIO_QMUTE:
printk(__FUNCTION__ ": error - should not be called\n"); printk("%s: error - should not be called\n", __FUNCTION__);
break; break;
case IPAQ_EGPIO_OPT_NVRAM_ON: case IPAQ_EGPIO_OPT_NVRAM_ON:
SET_ASIC2(GPIO2_OPT_ON_NVRAM); SET_ASIC2(GPIO2_OPT_ON_NVRAM);
...@@ -523,7 +523,7 @@ static int h3800_pm_callback(int req) ...@@ -523,7 +523,7 @@ static int h3800_pm_callback(int req)
static u16 asic2_data; static u16 asic2_data;
int result = 0; int result = 0;
printk(__FUNCTION__ " %d\n", req); printk("%s %d\n", __FUNCTION__, req);
switch (req) { switch (req) {
case PM_RESUME: case PM_RESUME:
...@@ -551,7 +551,7 @@ static int h3800_pm_callback(int req) ...@@ -551,7 +551,7 @@ static int h3800_pm_callback(int req)
asic2_data = H3800_ASIC2_GPIOPIOD; asic2_data = H3800_ASIC2_GPIOPIOD;
break; break;
default: default:
printk(__FUNCTION__ ": unrecognized PM callback\n"); printk("%s: unrecognized PM callback\n", __FUNCTION__);
break; break;
} }
return result; return result;
...@@ -591,7 +591,7 @@ static void h3800_IRQ_demux(unsigned int irq, struct irqdesc *desc, struct pt_re ...@@ -591,7 +591,7 @@ static void h3800_IRQ_demux(unsigned int irq, struct irqdesc *desc, struct pt_re
{ {
int i; int i;
if (0) printk(__FUNCTION__ ": interrupt received\n"); if (0) printk("%s: interrupt received\n", __FUNCTION__);
desc->chip->ack(irq); desc->chip->ack(irq);
...@@ -601,21 +601,21 @@ static void h3800_IRQ_demux(unsigned int irq, struct irqdesc *desc, struct pt_re ...@@ -601,21 +601,21 @@ static void h3800_IRQ_demux(unsigned int irq, struct irqdesc *desc, struct pt_re
/* KPIO */ /* KPIO */
irq = H3800_ASIC2_KPIINTFLAG; irq = H3800_ASIC2_KPIINTFLAG;
if (0) printk(__FUNCTION__" KPIO 0x%08X\n", irq); if (0) printk("%s KPIO 0x%08X\n", __FUNCTION__, irq);
for (j = 0; j < H3800_KPIO_IRQ_COUNT; j++) for (j = 0; j < H3800_KPIO_IRQ_COUNT; j++)
if (irq & kpio_irq_mask[j]) if (irq & kpio_irq_mask[j])
do_edge_IRQ(H3800_KPIO_IRQ_COUNT + j, irq_desc + H3800_KPIO_IRQ_COUNT + j, regs); do_edge_IRQ(H3800_KPIO_IRQ_COUNT + j, irq_desc + H3800_KPIO_IRQ_COUNT + j, regs);
/* GPIO2 */ /* GPIO2 */
irq = H3800_ASIC2_GPIINTFLAG; irq = H3800_ASIC2_GPIINTFLAG;
if (0) printk(__FUNCTION__" GPIO 0x%08X\n", irq); if (0) printk("%s GPIO 0x%08X\n", __FUNCTION__, irq);
for (j = 0; j < H3800_GPIO_IRQ_COUNT; j++) for (j = 0; j < H3800_GPIO_IRQ_COUNT; j++)
if (irq & gpio_irq_mask[j]) if (irq & gpio_irq_mask[j])
do_edge_IRQ(H3800_GPIO_IRQ_COUNT + j, irq_desc + H3800_GPIO_IRQ_COUNT + j , regs); do_edge_IRQ(H3800_GPIO_IRQ_COUNT + j, irq_desc + H3800_GPIO_IRQ_COUNT + j , regs);
} }
if (i >= MAX_ASIC_ISR_LOOPS) if (i >= MAX_ASIC_ISR_LOOPS)
printk(__FUNCTION__ ": interrupt processing overrun\n"); printk("%s: interrupt processing overrun\n", __FUNCTION__);
/* For level-based interrupts */ /* For level-based interrupts */
desc->chip->unmask(irq); desc->chip->unmask(irq);
......
...@@ -199,12 +199,12 @@ get_std_req_name(int req) ...@@ -199,12 +199,12 @@ get_std_req_name(int req)
static void static void
dump_setup(struct usb_ctrlrequest* s) dump_setup(struct usb_ctrlrequest* s)
{ {
dbg(__FUNCTION__ ": requesttype=%d", s->requesttype); dbg("%s: requesttype=%d", __FUNCTION__, s->requesttype);
dbg(__FUNCTION__ ": request=%d %s", s->request, dbg("%s: request=%d %s", __FUNCTION__, s->request,
get_std_req_name(s->request)); get_std_req_name(s->request));
dbg(__FUNCTION__ ": value=0x%04x", s->wValue); dbg("%s: value=0x%04x", __FUNCTION__, s->wValue);
dbg(__FUNCTION__ ": index=%d", s->index); dbg("%s: index=%d", __FUNCTION__, s->index);
dbg(__FUNCTION__ ": length=%d", s->length); dbg("%s: length=%d", __FUNCTION__, s->length);
} }
#endif #endif
...@@ -436,10 +436,10 @@ kickstart_send_packet(endpoint_t * ep) ...@@ -436,10 +436,10 @@ kickstart_send_packet(endpoint_t * ep)
u32 cs; u32 cs;
usbdev_pkt_t *pkt = ep->inlist.head; usbdev_pkt_t *pkt = ep->inlist.head;
vdbg(__FUNCTION__ ": ep%d, pkt=%p", ep->address, pkt); vdbg("%s: ep%d, pkt=%p", __FUNCTION__, ep->address, pkt);
if (!pkt) { if (!pkt) {
err(__FUNCTION__ ": head=NULL! list->count=%d", err("%s: head=NULL! list->count=%d", __FUNCTION__,
ep->inlist.count); ep->inlist.count);
return; return;
} }
...@@ -484,7 +484,7 @@ send_packet_complete(endpoint_t * ep) ...@@ -484,7 +484,7 @@ send_packet_complete(endpoint_t * ep)
(au_readl(ep->reg->ctrl_stat) & USBDEV_CS_NAK) ? (au_readl(ep->reg->ctrl_stat) & USBDEV_CS_NAK) ?
PKT_STATUS_NAK : PKT_STATUS_ACK; PKT_STATUS_NAK : PKT_STATUS_ACK;
vdbg(__FUNCTION__ ": ep%d, %s pkt=%p, list count=%d", vdbg("%s: ep%d, %s pkt=%p, list count=%d", __FUNCTION__,
ep->address, (pkt->status & PKT_STATUS_NAK) ? ep->address, (pkt->status & PKT_STATUS_NAK) ?
"NAK" : "ACK", pkt, ep->inlist.count); "NAK" : "ACK", pkt, ep->inlist.count);
} }
...@@ -529,7 +529,7 @@ send_packet(struct usb_dev* dev, usbdev_pkt_t *pkt, int async) ...@@ -529,7 +529,7 @@ send_packet(struct usb_dev* dev, usbdev_pkt_t *pkt, int async)
link_tail(ep, list, pkt); link_tail(ep, list, pkt);
vdbg(__FUNCTION__ ": ep%d, pkt=%p, size=%d, list count=%d", vdbg("%s: ep%d, pkt=%p, size=%d, list count=%d", __FUNCTION__,
ep->address, pkt, pkt->size, list->count); ep->address, pkt, pkt->size, list->count);
if (list->count == 1) { if (list->count == 1) {
...@@ -555,7 +555,7 @@ kickstart_receive_packet(endpoint_t * ep) ...@@ -555,7 +555,7 @@ kickstart_receive_packet(endpoint_t * ep)
// get and link a new packet for next reception // get and link a new packet for next reception
if (!(pkt = add_packet(ep, &ep->outlist, ep->max_pkt_size))) { if (!(pkt = add_packet(ep, &ep->outlist, ep->max_pkt_size))) {
err(__FUNCTION__ ": could not alloc new packet"); err("%s: could not alloc new packet", __FUNCTION__);
return; return;
} }
...@@ -615,7 +615,7 @@ receive_packet_complete(endpoint_t * ep) ...@@ -615,7 +615,7 @@ receive_packet_complete(endpoint_t * ep)
if (ep->address == 0 && (cs & USBDEV_CS_SU)) if (ep->address == 0 && (cs & USBDEV_CS_SU))
pkt->status |= PKT_STATUS_SU; pkt->status |= PKT_STATUS_SU;
vdbg(__FUNCTION__ ": ep%d, %s pkt=%p, size=%d", vdbg("%s: ep%d, %s pkt=%p, size=%d", __FUNCTION__,
ep->address, (pkt->status & PKT_STATUS_NAK) ? ep->address, (pkt->status & PKT_STATUS_NAK) ?
"NAK" : "ACK", pkt, pkt->size); "NAK" : "ACK", pkt, pkt->size);
...@@ -719,7 +719,7 @@ do_set_address(struct usb_dev* dev, struct usb_ctrlrequest* setup) ...@@ -719,7 +719,7 @@ do_set_address(struct usb_dev* dev, struct usb_ctrlrequest* setup)
int new_state = dev->state; int new_state = dev->state;
int new_addr = le16_to_cpu(setup->wValue); int new_addr = le16_to_cpu(setup->wValue);
dbg(__FUNCTION__ ": our address=%d", new_addr); dbg("%s: our address=%d", __FUNCTION__, new_addr);
if (new_addr > 127) { if (new_addr > 127) {
// usb spec doesn't tell us what to do, so just go to // usb spec doesn't tell us what to do, so just go to
...@@ -918,18 +918,18 @@ do_setup (struct usb_dev* dev, struct usb_ctrlrequest* setup) ...@@ -918,18 +918,18 @@ do_setup (struct usb_dev* dev, struct usb_ctrlrequest* setup)
{ {
req_method_t m; req_method_t m;
dbg(__FUNCTION__ ": req %d %s", setup->bRequestType, dbg("%s: req %d %s", __FUNCTION__, setup->bRequestType,
get_std_req_name(setup->bRequestType)); get_std_req_name(setup->bRequestType));
if ((setup->bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD || if ((setup->bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD ||
(setup->bRequestType & USB_RECIP_MASK) != USB_RECIP_DEVICE) { (setup->bRequestType & USB_RECIP_MASK) != USB_RECIP_DEVICE) {
err(__FUNCTION__ ": invalid requesttype 0x%02x", err("%s: invalid requesttype 0x%02x", __FUNCTION__,
setup->bRequestType); setup->bRequestType);
return; return;
} }
if ((setup->bRequestType & 0x80) == USB_DIR_OUT && setup->wLength) if ((setup->bRequestType & 0x80) == USB_DIR_OUT && setup->wLength)
dbg(__FUNCTION__ ": OUT phase! length=%d", setup->wLength); dbg("%s: OUT phase! length=%d", __FUNCTION__, setup->wLength);
if (setup->bRequestType < sizeof(req_method)/sizeof(req_method_t)) if (setup->bRequestType < sizeof(req_method)/sizeof(req_method_t))
m = req_method[setup->bRequestType]; m = req_method[setup->bRequestType];
...@@ -980,7 +980,7 @@ process_ep0_receive (struct usb_dev* dev) ...@@ -980,7 +980,7 @@ process_ep0_receive (struct usb_dev* dev)
#endif #endif
do_setup(dev, (struct usb_ctrlrequest*)pkt->payload); do_setup(dev, (struct usb_ctrlrequest*)pkt->payload);
} else } else
err(__FUNCTION__ ": wrong size SETUP received"); err("%s: wrong size SETUP received", __FUNCTION__);
break; break;
case DATA_STAGE: case DATA_STAGE:
/* /*
......
...@@ -24,7 +24,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write, ...@@ -24,7 +24,7 @@ asmlinkage void do_page_fault(struct pt_regs *regs, unsigned long write,
asmlinkage void tlb_refill_debug(struct pt_regs regs) asmlinkage void tlb_refill_debug(struct pt_regs regs)
{ {
show_regs(&regs); show_regs(&regs);
panic(__FUNCTION__ " called. This Does Not Happen (TM)."); panic("%s called. This Does Not Happen (TM).", __FUNCTION__);
} }
asmlinkage void xtlb_refill_debug(struct pt_regs *regs) asmlinkage void xtlb_refill_debug(struct pt_regs *regs)
......
Markdown is supported
0%
or
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment