Subject: [PATCH] arch/mips/au1000/common/usbdev.c: don't concatenate __FUNCTION__ with strings

From: Alexey Dobriyan <[email-masked]>
Date: Tue, 8 Nov 2005 20:44:37 +0300

From: Clemens Buchacher <[email-masked]>

It's deprecated. Use "%s", __FUNCTION__ instead.

Signed-off-by: Clemens Buchacher <[email-masked]>
Signed-off-by: Maximilian Attems <[email-masked]>
Signed-off-by: Domen Puncer <[email-masked]>
Signed-off-by: Alexey Dobriyan <[email-masked]>

Index: linux-kj/arch/mips/au1000/common/usbdev.c
===================================================================
--- linux-kj.orig/arch/mips/au1000/common/usbdev.c	2005-11-08 12:33:24.000000000 +0300
+++ linux-kj/arch/mips/au1000/common/usbdev.c	2005-11-08 13:10:41.000000000 +0300
@@ -348,7 +348,7 @@ endpoint_stall(endpoint_t * ep)
 {
 	u32 cs;
 
-	warn(__FUNCTION__);
+	warn("%s", __FUNCTION__);
 
 	cs = au_readl(ep->reg->ctrl_stat) | USBDEV_CS_STALL;
 	au_writel(cs, ep->reg->ctrl_stat);
@@ -360,7 +360,7 @@ endpoint_unstall(endpoint_t * ep)
 {
 	u32 cs;
 
-	warn(__FUNCTION__);
+	warn("%s", __FUNCTION__);
 
 	cs = au_readl(ep->reg->ctrl_stat) & ~USBDEV_CS_STALL;
 	au_writel(cs, ep->reg->ctrl_stat);

---

From: Ralf Baechle <[email-masked]>
Date: Tue, 8 Nov 2005 22:03:48 +0000

> It's deprecated. Use "%s", __FUNCTION__ instead.

Applied,

  Ralf