11/13 2.4.22-rc2 fix __FUNCTION__ warnings net/irda [5/7]
PATCH RESEND 1/1 11/13 2.4.22-rc2 fix __FUNCTION__ warnings net/irda [5/7]
Hi people,
this patch fix the warning: concatenation of string literals with __FUNCTION__ is deprecated
irlmp.c | 8 ++++---- irlmp_frame.c | 47 +++++++++++++++++++++++------------------------ 2 files changed, 27 insertions(+), 28 deletions(-)
net/irda/irlmp.c +4 -4
@@ -1241,7 +1241,7 @@/* Get the number of lsap. That's the only safe way to know * that we have looped around... - Jean II */ lsap_todo =HASHBIN_GET_SIZE (self->lsaps); -IRDA_DEBUG (4 , __FUNCTION__"() : %d lsaps to scan\n" , lsap_todo); +IRDA_DEBUG (4 ,"%s() : %d lsaps to scan\n" , __FUNCTION__, lsap_todo);/* Poll lsap in order until the queue is full or until we * tried them all.
@@ -1255,7 +1255,7 @@/* Note that if there is only one LSAP on the LAP * (most common case), self->flow_next is always NULL, * so we always avoid this loop. - Jean II */ -IRDA_DEBUG (4 , __FUNCTION__"() : searching my LSAP\n" ); +IRDA_DEBUG (4 ,"%s() : searching my LSAP\n" , __FUNCTION__);/* We look again in hashbins, because the lsap * might have gone away... - Jean II */
@@ -1274,14 +1274,14 @@/* Next time, we will get the next one (or the first one) */ self->flow_next = (struct lsap_cb *)hashbin_get_next (self->lsaps); -IRDA_DEBUG (4 , __FUNCTION__"() : curr is %p, next was %p and is now %p, still %d to go - queue len = %d\n" , curr, next, self->flow_next, lsap_todo,IRLAP_GET_TX_QUEUE_LEN (self->irlap)); +IRDA_DEBUG (4 ,"%s() : curr is %p, next was %p and is now %p, still %d to go - queue len = %d\n" , __FUNCTION__, curr, next, self->flow_next, lsap_todo,IRLAP_GET_TX_QUEUE_LEN (self->irlap));/* Inform lsap user that it can send one more packet. */ if (curr->notify.flow_indication !=NULL ) curr->notify.flow_indication (curr->notify.instance, curr, flow);else -IRDA_DEBUG (1 , __FUNCTION__"(), no handler\n" ); +IRDA_DEBUG (1 ,"%s(), no handler\n" , __FUNCTION__); } }
net/irda/irlmp_frame.c +23 -24
145 lines not on this page · raw message
ciao,
djgera
Signature · 4 lines
Gerardo Exequiel Pozzi ( djgera ) http://www.vmlinuz.com.ar http://www.djgera.com.ar KeyID: 0x1B8C330D Key fingerprint = 0CAA D5D4 CD85 4434 A219 76ED 39AB 221B 1B8C 330D