From: Tony Breeds <tony@bakeyournoodle.com>
To: kernel-janitors@vger.kernel.org
Subject: [Kernel-janitors] [PATCH 1/5] remove concatenation with
Date: Sat, 27 Mar 2004 05:11:15 +0000 [thread overview]
Message-ID: <20040327051115.GC3445@bakeyournoodle.com> (raw)
In-Reply-To: <20040322052155.GF17221@bakeyournoodle.com>
--------------------------------------------------------------------------------
diff -X dontdiff -purN 2.6.4.clean/arch/arm/mach-sa1100/h3600.c 2.6.4.kj_func/arch/arm/mach-sa1100/h3600.c
--- 2.6.4.clean/arch/arm/mach-sa1100/h3600.c 2004-01-16 21:12:30.000000000 +1100
+++ 2.6.4.kj_func/arch/arm/mach-sa1100/h3600.c 2004-03-26 14:32:44.000000000 +1100
@@ -481,7 +481,7 @@ static void h3800_control_egpio(enum ipa
case IPAQ_EGPIO_CODEC_NRESET:
case IPAQ_EGPIO_AUDIO_ON:
case IPAQ_EGPIO_QMUTE:
- printk(__FUNCTION__ ": error - should not be called\n");
+ printk("%s: error - should not be called\n", __FUNCTION__);
break;
case IPAQ_EGPIO_OPT_NVRAM_ON:
SET_ASIC2(GPIO2_OPT_ON_NVRAM);
@@ -523,7 +523,7 @@ static int h3800_pm_callback(int req)
static u16 asic2_data;
int result = 0;
- printk(__FUNCTION__ " %d\n", req);
+ printk("%s %d\n", __FUNCTION__, req);
switch (req) {
case PM_RESUME:
@@ -551,7 +551,7 @@ static int h3800_pm_callback(int req)
asic2_data = H3800_ASIC2_GPIOPIOD;
break;
default:
- printk(__FUNCTION__ ": unrecognized PM callback\n");
+ printk("%s: unrecognized PM callback\n", __FUNCTION__);
break;
}
return result;
@@ -591,7 +591,7 @@ static void h3800_IRQ_demux(unsigned int
{
int i;
- if (0) printk(__FUNCTION__ ": interrupt received\n");
+ if (0) printk("%s: interrupt received\n",__FUNCTION__);
desc->chip->ack(irq);
@@ -601,21 +601,21 @@ static void h3800_IRQ_demux(unsigned int
/* KPIO */
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++)
if (irq & kpio_irq_mask[j])
do_edge_IRQ(H3800_KPIO_IRQ_COUNT + j, irq_desc + H3800_KPIO_IRQ_COUNT + j, regs);
/* GPIO2 */
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++)
if (irq & gpio_irq_mask[j])
do_edge_IRQ(H3800_GPIO_IRQ_COUNT + j, irq_desc + H3800_GPIO_IRQ_COUNT + j , regs);
}
if (i >= MAX_ASIC_ISR_LOOPS)
- printk(__FUNCTION__ ": interrupt processing overrun\n");
+ printk("%s: interrupt processing overrun\n", __FUNCTION__);
/* For level-based interrupts */
desc->chip->unmask(irq);
diff -X dontdiff -purN 2.6.4.clean/arch/mips/au1000/common/usbdev.c 2.6.4.kj_func/arch/mips/au1000/common/usbdev.c
--- 2.6.4.clean/arch/mips/au1000/common/usbdev.c 2004-03-11 17:56:57.000000000 +1100
+++ 2.6.4.kj_func/arch/mips/au1000/common/usbdev.c 2004-03-26 14:32:44.000000000 +1100
@@ -199,12 +199,12 @@ get_std_req_name(int req)
static void
dump_setup(struct usb_ctrlrequest* s)
{
- dbg(__FUNCTION__ ": requesttype=%d", s->requesttype);
- dbg(__FUNCTION__ ": request=%d %s", s->request,
+ dbg("%s: requesttype=%d",__FUNCTION__, s->requesttype);
+ dbg("%s: request=%d %s", __FUNCTION__,s->request,
get_std_req_name(s->request));
- dbg(__FUNCTION__ ": value=0x%04x", s->wValue);
- dbg(__FUNCTION__ ": index=%d", s->index);
- dbg(__FUNCTION__ ": length=%d", s->length);
+ dbg("%s: value=0x%04x", __FUNCTION__,s->wValue);
+ dbg("%s: index=%d", __FUNCTION__,s->index);
+ dbg("%s: length=%d", __FUNCTION__,s->length);
}
#endif
@@ -436,10 +436,10 @@ kickstart_send_packet(endpoint_t * ep)
u32 cs;
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) {
- err(__FUNCTION__ ": head=NULL! list->count=%d",
+ err("%s: head=NULL! list->count=%d", __FUNCTION__,
ep->inlist.count);
return;
}
@@ -484,7 +484,7 @@ send_packet_complete(endpoint_t * ep)
(au_readl(ep->reg->ctrl_stat) & USBDEV_CS_NAK) ?
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) ?
"NAK" : "ACK", pkt, ep->inlist.count);
}
@@ -529,7 +529,7 @@ send_packet(struct usb_dev* dev, usbdev_
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);
if (list->count = 1) {
@@ -555,7 +555,7 @@ kickstart_receive_packet(endpoint_t * ep
// get and link a new packet for next reception
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;
}
@@ -615,7 +615,7 @@ receive_packet_complete(endpoint_t * ep)
if (ep->address = 0 && (cs & USBDEV_CS_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) ?
"NAK" : "ACK", pkt, pkt->size);
@@ -719,7 +719,7 @@ do_set_address(struct usb_dev* dev, stru
int new_state = dev->state;
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) {
// usb spec doesn't tell us what to do, so just go to
@@ -918,18 +918,18 @@ do_setup (struct usb_dev* dev, struct us
{
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));
if ((setup->bRequestType & USB_TYPE_MASK) != USB_TYPE_STANDARD ||
(setup->bRequestType & USB_RECIP_MASK) != USB_RECIP_DEVICE) {
- err(__FUNCTION__ ": invalid requesttype 0x%02x",
+ err("%s: invalid requesttype 0x%02x", __FUNCTION__,
setup->bRequestType);
return;
}
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))
m = req_method[setup->bRequestType];
@@ -980,7 +980,7 @@ process_ep0_receive (struct usb_dev* dev
#endif
do_setup(dev, (struct usb_ctrlrequest*)pkt->payload);
} else
- err(__FUNCTION__ ": wrong size SETUP received");
+ err("%s: wrong size SETUP received", __FUNCTION__);
break;
case DATA_STAGE:
/*
diff -X dontdiff -purN 2.6.4.clean/arch/mips/mm-64/tlb-dbg-r4k.c 2.6.4.kj_func/arch/mips/mm-64/tlb-dbg-r4k.c
--- 2.6.4.clean/arch/mips/mm-64/tlb-dbg-r4k.c 2004-01-16 21:09:09.000000000 +1100
+++ 2.6.4.kj_func/arch/mips/mm-64/tlb-dbg-r4k.c 2004-03-26 14:32:44.000000000 +1100
@@ -24,7 +24,7 @@ asmlinkage void do_page_fault(struct pt_
asmlinkage void tlb_refill_debug(struct pt_regs regs)
{
show_regs(®s);
- 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)
--------------------------------------------------------------------------------
Yours Tony
linux.conf.au http://lca2005.linux.org.au/
Apr 18-23 2005 The Australian Linux Technical Conference!
_______________________________________________
Kernel-janitors mailing list
Kernel-janitors@lists.osdl.org
http://lists.osdl.org/mailman/listinfo/kernel-janitors
next prev parent reply other threads:[~2004-03-27 5:11 UTC|newest]
Thread overview: 19+ messages / expand[flat|nested] mbox.gz Atom feed top
2004-03-22 5:35 [Kernel-janitors] [PATCH 2/5] Remove concatenation with Tony Breeds
2004-03-23 18:40 ` Arnd Bergmann
2004-03-27 5:06 ` [Kernel-janitors] [PATCH 0/5] remove " Tony Breeds
2004-03-27 5:11 ` Tony Breeds [this message]
2004-03-27 5:12 ` Tony Breeds
2004-03-27 5:12 ` Tony Breeds
2004-03-27 5:13 ` [Kernel-janitors] [PATCH 4/5] " Tony Breeds
2004-03-27 5:17 ` [Kernel-janitors] [PATCH 5/5] " Tony Breeds
2004-04-01 21:55 ` Randy.Dunlap
2004-04-01 22:24 ` Tony Breeds
2004-04-01 23:00 ` Randy.Dunlap
2004-04-02 0:35 ` Randy.Dunlap
2004-04-04 2:20 ` Tony Breeds
2004-04-04 2:28 ` Randy.Dunlap
2004-04-04 3:16 ` [Kernel-janitors] [PATCH 2/5] " Tony Breeds
2004-04-04 3:16 ` [Kernel-janitors] [PATCH 1/5] " Tony Breeds
2004-04-04 3:16 ` [Kernel-janitors] [PATCH 0/5] " Tony Breeds
2004-04-04 3:16 ` [Kernel-janitors] [PATCH 5/5] " Tony Breeds
2004-04-04 3:16 ` [Kernel-janitors] [PATCH 4/5] " Tony Breeds
Reply instructions:
You may reply publicly to this message via plain-text email
using any one of the following methods:
* Save the following mbox file, import it into your mail client,
and reply-to-all from there: mbox
Avoid top-posting and favor interleaved quoting:
https://en.wikipedia.org/wiki/Posting_style#Interleaved_style
* Reply using the --to, --cc, and --in-reply-to
switches of git-send-email(1):
git send-email \
--in-reply-to=20040327051115.GC3445@bakeyournoodle.com \
--to=tony@bakeyournoodle.com \
--cc=kernel-janitors@vger.kernel.org \
/path/to/YOUR_REPLY
https://kernel.org/pub/software/scm/git/docs/git-send-email.html
* If your mail client supports setting the In-Reply-To header
via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line
before the message body.
This is an external index of several public inboxes,
see mirroring instructions on how to clone and mirror
all data and code used by this external index.