[patch][2.5.38] __FUNCTION__ issue (act200l)

Aristeu Sergio Rozanski Filho (aris@cathedrallabs.org)
Fri, 27 Sep 2002 14:13:22 -0300


--u5E4XgoOPWr4PD9E
Content-Type: text/plain; charset=us-ascii
Content-Disposition: inline

hi,
this and next patches are to replace
printk("blah" __FUNCTION__ "blah");
by
printk("blah" "%s" "blah", __FUNCTION__);

that is needed to compile 2.5.38

-- 
aris

--u5E4XgoOPWr4PD9E Content-Type: text/plain; charset=us-ascii Content-Disposition: attachment; filename="act200l.patch"

--- linux-2.5.38-vanilla/drivers/net/irda/act200l.c 2002-09-22 01:25:10.000000000 -0300 +++ linux-2.5.38/drivers/net/irda/act200l.c 2002-09-27 11:22:36.000000000 -0300 @@ -106,7 +106,7 @@ static void act200l_open(dongle_t *self, struct qos_info *qos) { - IRDA_DEBUG(2, __FUNCTION__ "()\n"); + IRDA_DEBUG(2, "%s()\n", __FUNCTION__); /* Power on the dongle */ self->set_dtr_rts(self->dev, TRUE, TRUE); @@ -120,7 +120,7 @@ static void act200l_close(dongle_t *self) { - IRDA_DEBUG(2, __FUNCTION__ "()\n"); + IRDA_DEBUG(2, "%s()\n", __FUNCTION__); /* Power off the dongle */ self->set_dtr_rts(self->dev, FALSE, FALSE); @@ -141,7 +141,7 @@ __u8 control[3]; int ret = 0; - IRDA_DEBUG(2, __FUNCTION__ "()\n"); + IRDA_DEBUG(2, "%s()\n", __FUNCTION__); self->speed_task = task; @@ -233,7 +233,7 @@ }; int ret = 0; - IRDA_DEBUG(2, __FUNCTION__ "()\n"); + IRDA_DEBUG(2, "%s()\n", __FUNCTION__); self->reset_task = task;

--u5E4XgoOPWr4PD9E-- - To unsubscribe from this list: send the line "unsubscribe linux-kernel" in the body of a message to majordomo@vger.kernel.org More majordomo info at http://vger.kernel.org/majordomo-info.html Please read the FAQ at http://www.tux.org/lkml/