net: replace remaining __FUNCTION__ occurances
Subsystems (15)
PATCH 1/1 net: replace remaining __FUNCTION__ occurances
__FUNCTION__ is gcc-specific, use __func__
---
This was done with sed and looking over the results afterwards, haven't reviewed every line.
net/8021q/vlan_dev.c | 12 +- net/8021q/vlanproc.c | 2 +- net/9p/error.c | 2 +- net/bridge/br_sysfs_br.c | 6 +- net/core/sock.c | 2 +- net/dccp/dccp.h | 6 +- net/ieee80211/softmac/ieee80211softmac_priv.h | 2 +- net/ipv4/af_inet.c | 2 +- net/ipv4/ipvs/ip_vs_proto_tcp.c | 2 +- net/ipv4/ipvs/ip_vs_proto_udp.c | 2 +- net/ipv4/ipvs/ip_vs_sync.c | 4 +- net/ipv4/netfilter/arp_tables.c | 2 +- net/ipv4/netfilter/ip_tables.c | 2 +- net/ipv4/tcp_input.c | 2 +- net/ipv4/udplite.c | 4 +- net/ipv6/addrconf.c | 4 +- net/ipv6/addrlabel.c | 14 +- net/ipv6/ip6_tunnel.c | 2 +- net/ipv6/mip6.c | 20 ++-- net/ipv6/ndisc.c | 14 +- net/ipv6/netfilter/ip6_tables.c | 2 +- net/ipv6/netfilter/ip6t_REJECT.c | 2 +- net/ipv6/route.c | 4 +- net/ipv6/tcp_ipv6.c | 8 +- net/irda/af_irda.c | 178 ++++++++++++------------ net/irda/discovery.c | 4 +- net/irda/ircomm/ircomm_core.c | 46 +++--- net/irda/ircomm/ircomm_event.c | 12 +- net/irda/ircomm/ircomm_lmp.c | 30 ++-- net/irda/ircomm/ircomm_param.c | 32 +++--- net/irda/ircomm/ircomm_ttp.c | 26 ++-- net/irda/ircomm/ircomm_tty.c | 90 ++++++------ net/irda/ircomm/ircomm_tty_attach.c | 78 ++++++------ net/irda/ircomm/ircomm_tty_ioctl.c | 18 ++-- net/irda/irda_device.c | 18 ++-- net/irda/iriap.c | 76 ++++++------ net/irda/iriap_event.c | 38 +++--- net/irda/irias_object.c | 44 +++--- net/irda/irlan/irlan_client.c | 48 ++++---- net/irda/irlan/irlan_client_event.c | 64 +++++----- net/irda/irlan/irlan_common.c | 72 +++++----- net/irda/irlan/irlan_eth.c | 18 ++-- net/irda/irlan/irlan_event.c | 4 +- net/irda/irlan/irlan_filter.c | 4 +- net/irda/irlan/irlan_provider.c | 30 ++-- net/irda/irlan/irlan_provider_event.c | 16 +- net/irda/irlap.c | 56 ++++---- net/irda/irlap_event.c | 122 +++++++++--------- net/irda/irlap_frame.c | 74 +++++----- net/irda/irlmp.c | 112 ++++++++-------- net/irda/irlmp_event.c | 94 +++++++------- net/irda/irlmp_frame.c | 36 +++--- net/irda/irmod.c | 2 +- net/irda/irnet/irnet.h | 10 +- net/irda/irnetlink.c | 4 +- net/irda/irqueue.c | 8 +- net/irda/irttp.c | 108 ++++++++-------- net/irda/parameters.c | 42 +++--- net/irda/qos.c | 24 ++-- net/irda/wrapper.c | 18 ++-- net/llc/af_llc.c | 16 +- net/llc/llc_c_ac.c | 2 +- net/llc/llc_c_ev.c | 8 +- net/llc/llc_conn.c | 24 ++-- net/llc/llc_input.c | 4 +- net/mac80211/ieee80211_iface.c | 2 +- net/rxrpc/ar-internal.h | 8 +- net/sctp/associola.c | 8 +- net/sctp/chunk.c | 2 +- net/sctp/input.c | 2 +- net/sctp/ipv6.c | 8 +- net/sctp/output.c | 14 +- net/sctp/outqueue.c | 14 +- net/sctp/protocol.c | 4 +- net/sctp/sm_sideeffect.c | 6 +- net/sctp/sm_statefuns.c | 10 +- net/sctp/socket.c | 14 +- net/sctp/transport.c | 10 +- net/sunrpc/auth_gss/auth_gss.c | 2 +- net/sunrpc/clnt.c | 44 +++--- net/sunrpc/rpc_pipe.c | 12 +- net/sunrpc/rpcb_clnt.c | 20 ++-- net/sunrpc/xprtsock.c | 2 +- net/unix/af_unix.c | 2 +- 84 files changed, 1008 insertions(+), 1008 deletions(-)
net/8021q/vlan_dev.c +6 -6
@@ -171,7 +171,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev, skb->dev =__find_vlan_dev (dev, vid);if (!skb->dev) {pr_debug ("%s: ERROR: No net_device for VID: %u on dev: %s\n" , - __FUNCTION__, (unsigned int )vid, dev->name); + __func__, (unsigned int )vid, dev->name); goto err_unlock; }
@@ -187,7 +187,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev, ntohs(vhdr->h_vlan_TCI));pr_debug ("%s: priority: %u for TCI: %hu\n" , - __FUNCTION__, skb->priority,ntohs (vhdr->h_vlan_TCI)); + __func__, skb->priority,ntohs (vhdr->h_vlan_TCI));switch (skb->pkt_type) {case PACKET_BROADCAST :/* Yeah, stats collect these together.. */
@@ -268,7 +268,7 @@ static int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev,struct net_device *vdev = dev;pr_debug ("%s: skb: %p type: %hx len: %u vlan_id: %hx, daddr: %p\n" , - __FUNCTION__, skb, type, len,vlan_dev_info (dev)->vlan_id, + __func__, skb, type, len,vlan_dev_info (dev)->vlan_id, daddr);/* build vlan header only if re_order_header flag is NOT set. This
@@ -340,7 +340,7 @@ static int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev,return -ENOMEM ; }vlan_dev_info (vdev)->cnt_inc_headroom_on_tx++; -pr_debug ("%s: %s: had to grow skb\n" , __FUNCTION__, vdev->name); +pr_debug ("%s: %s: had to grow skb\n" , __func__, vdev->name); }if (build_vlan_header) {
@@ -382,7 +382,7 @@ static int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)vlan_dev_info (dev)->cnt_encap_on_xmit++;pr_debug ("%s: proto to encap: 0x%hx\n" , - __FUNCTION__,htons (veth->h_vlan_proto)); + __func__,htons (veth->h_vlan_proto));/* Construct the second two bytes. This field looks something * like: * usr_priority: 3 bits (high bits)
@@ -403,7 +403,7 @@ static int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) }pr_debug ("%s: about to send skb: %p to dev: %s\n" , - __FUNCTION__, skb, skb->dev->name); + __func__, skb, skb->dev->name); pr_debug(" " MAC_FMT " " MAC_FMT " %4hx %4hx %4hx\n", veth->h_dest[0], veth->h_dest[1], veth->h_dest[2], veth->h_dest[3], veth->h_dest[4], veth->h_dest[5],
net/8021q/vlanproc.c +1 -1
@@ -168,7 +168,7 @@ int __init vlan_proc_init(void)return 0 ; err: -pr_err ("%s: can't create entry in proc filesystem!\n" , __FUNCTION__); +pr_err ("%s: can't create entry in proc filesystem!\n" , __func__);vlan_proc_cleanup ();return -ENOBUFS ; }
net/9p/error.c +1 -1
@@ -230,7 +230,7 @@ int p9_errstr2errno(char *errstr, int len)if (errno ==0 ) {/* TODO: if error isn't found, add it dynamically */ errstr[len] =0 ; -printk (KERN_ERR "%s: errstr :%s: not found\n" , __FUNCTION__, +printk (KERN_ERR "%s: errstr :%s: not found\n" , __func__, errstr); errno =1 ; }
net/bridge/br_sysfs_br.c +3 -3
@@ -415,21 +415,21 @@ int br_sysfs_addbr(struct net_device *dev) err =sysfs_create_group (brobj, &bridge_group);if (err) {pr_info ("%s: can't create group %s/%s\n" , - __FUNCTION__, dev->name, bridge_group.name); + __func__, dev->name, bridge_group.name); goto out1; } err =sysfs_create_bin_file (brobj, &bridge_forward);if (err) {pr_info ("%s: can't create attribute file %s/%s\n" , - __FUNCTION__, dev->name, bridge_forward.attr.name); + __func__, dev->name, bridge_forward.attr.name); goto out2; } br->ifobj =kobject_create_and_add (SYSFS_BRIDGE_PORT_SUBDIR , brobj);if (!br->ifobj) {pr_info ("%s: can't add kobject (directory) %s/%s\n" , - __FUNCTION__, dev->name,SYSFS_BRIDGE_PORT_SUBDIR ); + __func__, dev->name,SYSFS_BRIDGE_PORT_SUBDIR ); goto out3; }return 0 ;
net/core/sock.c +1 -1
@@ -981,7 +981,7 @@ void sk_free(struct sock *sk)if (atomic_read (&sk->sk_omem_alloc))printk (KERN_DEBUG "%s: optmem leakage (%d bytes) detected.\n" , - __FUNCTION__,atomic_read (&sk->sk_omem_alloc)); + __func__,atomic_read (&sk->sk_omem_alloc));put_net (sk->sk_net);sk_prot_free (sk->sk_prot_creator, sk);
net/dccp/dccp.h +3 -3
@@ -23,9 +23,9 @@* DCCP - specific warning and debugging macros. */ #define DCCP_WARN(fmt, a...) LIMIT_NETDEBUG(KERN_WARNING "%s: " fmt, \ - __FUNCTION__, ##a) + __func__, ##a) #define DCCP_CRIT(fmt, a...) printk(KERN_CRIT fmt " at %s:%d/%s()\n", ##a, \ - __FILE__, __LINE__, __FUNCTION__) + __FILE__, __LINE__, __func__) #define DCCP_BUG(a...) do { DCCP_CRIT("BUG: " a); dump_stack(); } while(0)#define DCCP_BUG_ON (cond) do { if (unlikely((cond) != 0)) \ DCCP_BUG("\"%s\" holds (exception!)", \
@@ -36,7 +36,7 @@ printk(fmt, ##args); \ } while(0) #define DCCP_PR_DEBUG(enable, fmt, a...) DCCP_PRINTK(enable, KERN_DEBUG \ - "%s: " fmt, __FUNCTION__, ##a) + "%s: " fmt, __func__, ##a)#ifdef CONFIG_IP_DCCP_DEBUG extern int dccp_debug;
net/ieee80211/softmac/ieee80211softmac_priv.h +1 -1
@@ -43,7 +43,7 @@ do { \ if (unlikely(!(expr))) { \ printkl(KERN_ERR PFX "ASSERTION FAILED (%s) at: %s:%d:%s()\n", #expr, \ - __FILE__, __LINE__, __FUNCTION__); \ + __FILE__, __LINE__, __func__); \ } \ } while (0) #else
net/ipv4/af_inet.c +1 -1
@@ -1060,7 +1060,7 @@ static int inet_sk_reselect_saddr(struct sock *sk)if (sysctl_ip_dynaddr >1 ) {printk (KERN_INFO "%s(): shifting inet->" "saddr from %d.%d.%d.%d to %d.%d.%d.%d\n" , - __FUNCTION__, + __func__,NIPQUAD (old_saddr),NIPQUAD (new_saddr)); }
net/ipv4/ipvs/ip_vs_proto_tcp.c +1 -1
@@ -550,7 +550,7 @@ tcp_app_conn_bind(struct ip_vs_conn *cp)IP_VS_DBG (9 ,"%s: Binding conn %u.%u.%u.%u:%u->" "%u.%u.%u.%u:%u to app %s on port %u\n" , - __FUNCTION__, + __func__,NIPQUAD (cp->caddr),ntohs (cp->cport),NIPQUAD (cp->vaddr),ntohs (cp->vport), inc->name,ntohs (inc->port));
net/ipv4/ipvs/ip_vs_proto_udp.c +1 -1
@@ -344,7 +344,7 @@ static int udp_app_conn_bind(struct ip_vs_conn *cp)IP_VS_DBG (9 ,"%s: Binding conn %u.%u.%u.%u:%u->" "%u.%u.%u.%u:%u to app %s on port %u\n" , - __FUNCTION__, + __func__,NIPQUAD (cp->caddr),ntohs (cp->cport),NIPQUAD (cp->vaddr),ntohs (cp->vport), inc->name,ntohs (inc->port));
net/ipv4/ipvs/ip_vs_sync.c +2 -2
@@ -916,7 +916,7 @@ int start_sync_thread(int state, char *mcast_ifn, __u8 syncid)if (!tinfo)return -ENOMEM ; -IP_VS_DBG (7 ,"%s: pid %d\n" , __FUNCTION__,task_pid_nr (current)); +IP_VS_DBG (7 ,"%s: pid %d\n" , __func__,task_pid_nr (current));IP_VS_DBG (7 ,"Each ip_vs_sync_conn entry need %Zd bytes\n" ,sizeof (struct ip_vs_sync_conn ));
@@ -956,7 +956,7 @@ int stop_sync_thread(int state) (state == IP_VS_STATE_BACKUP && !sync_backup_pid))return -ESRCH ; -IP_VS_DBG (7 ,"%s: pid %d\n" , __FUNCTION__,task_pid_nr (current)); +IP_VS_DBG (7 ,"%s: pid %d\n" , __func__,task_pid_nr (current));IP_VS_INFO ("stopping sync thread %d ...\n" , (state ==IP_VS_STATE_MASTER ) ? sync_master_pid : sync_backup_pid);
net/ipv4/netfilter/arp_tables.c +1 -1
@@ -52,7 +52,7 @@ MODULE_DESCRIPTION("arptables core");do { \if (!(x)) \printk ("ARP_NF_ASSERT: %s:%s:%u\n" , \ - __FUNCTION__, __FILE__, __LINE__); \ + __func__, __FILE__, __LINE__); \ } while(0)#else #define ARP_NF_ASSERT (x)
net/ipv4/netfilter/ip_tables.c +1 -1
@@ -53,7 +53,7 @@ MODULE_DESCRIPTION("IPv4 packet filter");do { \if (!(x)) \printk ("IP_NF_ASSERT: %s:%s:%u\n" , \ - __FUNCTION__, __FILE__, __LINE__); \ + __func__, __FILE__, __LINE__); \ } while(0)#else #define IP_NF_ASSERT (x)
net/ipv4/tcp_input.c +1 -1
@@ -3557,7 +3557,7 @@ static void tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)* cases we should never reach this piece of code. */ printk (KERN_ERR "%s: Impossible, sk->sk_state=%d\n" , - __FUNCTION__, sk->sk_state); + __func__, sk->sk_state);break ; }
net/ipv4/udplite.c +2 -2
@@ -106,14 +106,14 @@ void __init udplite4_register(void)#ifdef CONFIG_PROC_FS if (udp_proc_register (&udplite4_seq_afinfo))/* udplite4_proc_init() */ -printk (KERN_ERR "%s: Cannot register /proc!\n" , __FUNCTION__); +printk (KERN_ERR "%s: Cannot register /proc!\n" , __func__);#endif return ; out_unregister_proto:proto_unregister (&udplite_prot); out_register_err: -printk (KERN_CRIT "%s: Cannot add UDP-Lite protocol.\n" , __FUNCTION__); +printk (KERN_CRIT "%s: Cannot add UDP-Lite protocol.\n" , __func__); }EXPORT_SYMBOL (udplite_hash);
net/ipv6/addrconf.c +2 -2
@@ -349,7 +349,7 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev)if (snmp6_alloc_dev (ndev) <0 ) {ADBG ((KERN_WARNING "%s(): cannot allocate memory for statistics; dev=%s.\n" , - __FUNCTION__, dev->name)); + __func__, dev->name));neigh_parms_release (&nd_tbl, ndev->nd_parms); ndev->dead =1 ;in6_dev_finish_destroy (ndev);
@@ -359,7 +359,7 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev)if (snmp6_register_dev (ndev) <0 ) {ADBG ((KERN_WARNING "%s(): cannot create /proc/net/dev_snmp6/%s\n" , - __FUNCTION__, dev->name)); + __func__, dev->name));neigh_parms_release (&nd_tbl, ndev->nd_parms); ndev->dead =1 ;in6_dev_finish_destroy (ndev);
net/ipv6/addrlabel.c +7 -7
@@ -166,7 +166,7 @@ u32 ipv6_addr_label(const struct in6_addr *addr, int type, int ifindex)rcu_read_unlock ();ADDRLABEL (KERN_DEBUG "%s(addr=" NIP6_FMT ", type=%d, ifindex=%d) => %08x\n" , - __FUNCTION__, + __func__,NIP6 (*addr), type, ifindex, label);
@@ -182,7 +182,7 @@ static struct ip6addrlbl_entry *ip6addrlbl_alloc(const struct in6_addr *prefix,int addrtype;ADDRLABEL (KERN_DEBUG "%s(prefix=" NIP6_FMT ", prefixlen=%d, ifindex=%d, label=%u)\n" , - __FUNCTION__, + __func__,NIP6 (*prefix), prefixlen, ifindex, (unsigned int )label);
@@ -226,7 +226,7 @@ static int __ip6addrlbl_add(struct ip6addrlbl_entry *newp, int replace)int ret =0 ;ADDRLABEL (KERN_DEBUG "%s(newp=%p, replace=%d)\n" , - __FUNCTION__, + __func__, newp, replace);if (hlist_empty (&ip6addrlbl_table.head)) {
@@ -268,7 +268,7 @@ static int ip6addrlbl_add(const struct in6_addr *prefix, int prefixlen,int ret =0 ; ADDRLABEL(KERN_DEBUG "%s(prefix=" NIP6_FMT ", prefixlen=%d, ifindex=%d, label=%u, replace=%d)\n", - __FUNCTION__, + __func__, NIP6(*prefix), prefixlen, ifindex, (unsigned int)label,
@@ -294,7 +294,7 @@ static int __ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen,int ret = -ESRCH ;ADDRLABEL (KERN_DEBUG "%s(prefix=" NIP6_FMT ", prefixlen=%d, ifindex=%d)\n" , - __FUNCTION__, + __func__,NIP6 (*prefix), prefixlen, ifindex);
@@ -318,7 +318,7 @@ static int ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen,int ret;ADDRLABEL (KERN_DEBUG "%s(prefix=" NIP6_FMT ", prefixlen=%d, ifindex=%d)\n" , - __FUNCTION__, + __func__,NIP6 (*prefix), prefixlen, ifindex);
@@ -335,7 +335,7 @@ static __init int ip6addrlbl_init(void)int err =0 ;int i; -ADDRLABEL (KERN_DEBUG "%s()\n" , __FUNCTION__); +ADDRLABEL (KERN_DEBUG "%s()\n" , __func__);for (i =0 ; i <ARRAY_SIZE (ip6addrlbl_init_table); i++) { int ret = ip6addrlbl_add(ip6addrlbl_init_table[i].prefix,
net/ipv6/ip6_tunnel.c +1 -1
@@ -60,7 +60,7 @@ MODULE_LICENSE("GPL");#define IPV6_TLV_TEL_DST_SIZE 8#ifdef IP6_TNL_DEBUG -#define IP6_TNL_TRACE(x...) printk(KERN_DEBUG "%s:" x "\n", __FUNCTION__) +#define IP6_TNL_TRACE(x...) printk(KERN_DEBUG "%s:" x "\n", __func__)#else #define IP6_TNL_TRACE(x...) do {;} while(0)#endif
net/ipv6/mip6.c +10 -10
@@ -304,13 +304,13 @@ static int mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb,static int mip6_destopt_init_state (struct xfrm_state *x) {if (x->id.spi) { -printk (KERN_INFO "%s: spi is not 0: %u\n" , __FUNCTION__, +printk (KERN_INFO "%s: spi is not 0: %u\n" , __func__, x->id.spi);return -EINVAL ; }if (x->props.mode !=XFRM_MODE_ROUTEOPTIMIZATION ) {printk (KERN_INFO "%s: state's mode is not %u: %u\n" , - __FUNCTION__,XFRM_MODE_ROUTEOPTIMIZATION , x->props.mode); + __func__,XFRM_MODE_ROUTEOPTIMIZATION , x->props.mode);return -EINVAL ; }
@@ -439,13 +439,13 @@ static int mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb,static int mip6_rthdr_init_state (struct xfrm_state *x) {if (x->id.spi) { -printk (KERN_INFO "%s: spi is not 0: %u\n" , __FUNCTION__, +printk (KERN_INFO "%s: spi is not 0: %u\n" , __func__, x->id.spi);return -EINVAL ; }if (x->props.mode !=XFRM_MODE_ROUTEOPTIMIZATION ) {printk (KERN_INFO "%s: state's mode is not %u: %u\n" , - __FUNCTION__,XFRM_MODE_ROUTEOPTIMIZATION , x->props.mode); + __func__,XFRM_MODE_ROUTEOPTIMIZATION , x->props.mode);return -EINVAL ; }
@@ -480,15 +480,15 @@ static int __init mip6_init(void)printk (KERN_INFO "Mobile IPv6\n" );if (xfrm_register_type (&mip6_destopt_type,AF_INET6 ) <0 ) { -printk (KERN_INFO "%s: can't add xfrm type(destopt)\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't add xfrm type(destopt)\n" , __func__); goto mip6_destopt_xfrm_fail; }if (xfrm_register_type (&mip6_rthdr_type,AF_INET6 ) <0 ) { -printk (KERN_INFO "%s: can't add xfrm type(rthdr)\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't add xfrm type(rthdr)\n" , __func__); goto mip6_rthdr_xfrm_fail; }if (rawv6_mh_filter_register (mip6_mh_filter) <0 ) { -printk (KERN_INFO "%s: can't add rawv6 mh filter\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't add rawv6 mh filter\n" , __func__); goto mip6_rawv6_mh_fail; }
@@ -506,11 +506,11 @@ static int __init mip6_init(void) static void __exit mip6_fini(void) {if (rawv6_mh_filter_unregister (mip6_mh_filter) <0 ) -printk (KERN_INFO "%s: can't remove rawv6 mh filter\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't remove rawv6 mh filter\n" , __func__);if (xfrm_unregister_type (&mip6_rthdr_type,AF_INET6 ) <0 ) -printk (KERN_INFO "%s: can't remove xfrm type(rthdr)\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't remove xfrm type(rthdr)\n" , __func__);if (xfrm_unregister_type (&mip6_destopt_type,AF_INET6 ) <0 ) -printk (KERN_INFO "%s: can't remove xfrm type(destopt)\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't remove xfrm type(destopt)\n" , __func__); }module_init (mip6_init);
net/ipv6/ndisc.c +7 -7
@@ -270,7 +270,7 @@ static struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) {ND_PRINTK2 (KERN_WARNING "%s(): duplicated ND6 option found: type=%d\n" , - __FUNCTION__, + __func__, nd_opt->nd_opt_type); }else { ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt;
@@ -301,7 +301,7 @@ static struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,*/ ND_PRINTK2 (KERN_NOTICE "%s(): ignored unsupported option; type=%d, len=%d\n" , - __FUNCTION__, + __func__, nd_opt->nd_opt_type, nd_opt->nd_opt_len); } }
@@ -499,7 +499,7 @@ static void __ndisc_send(struct net_device *dev,if (!skb) {ND_PRINTK0 (KERN_ERR "ICMPv6 ND: %s() failed to allocate an skb.\n" , - __FUNCTION__); + __func__);dst_release (dst);return ; }
@@ -662,7 +662,7 @@ static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb)ND_PRINTK1 (KERN_DEBUG "%s(): trying to ucast probe in NUD_INVALID: " NIP6_FMT "\n" , - __FUNCTION__, + __func__,NIP6 (*target)); }ndisc_send_ns (dev, neigh, target, target, saddr);
@@ -1164,7 +1164,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)if (rt ==NULL ) {ND_PRINTK0 (KERN_ERR "ICMPv6 RA: %s() failed to add default route.\n" , - __FUNCTION__); + __func__);in6_dev_put (in6_dev);return ; }
@@ -1173,7 +1173,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)if (neigh ==NULL ) {ND_PRINTK0 (KERN_ERR "ICMPv6 RA: %s() got default router without neighbour.\n" , - __FUNCTION__); + __func__);dst_release (&rt->u.dst);in6_dev_put (in6_dev);return ;
@@ -1486,7 +1486,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,if (buff ==NULL ) {ND_PRINTK0 (KERN_ERR "ICMPv6 Redirect: %s() failed to allocate an skb.\n" , - __FUNCTION__); + __func__);dst_release (dst);return ; }
net/ipv6/netfilter/ip6_tables.c +1 -1
@@ -55,7 +55,7 @@ MODULE_DESCRIPTION("IPv6 packet filter");do { \if (!(x)) \printk ("IP_NF_ASSERT: %s:%s:%u\n" , \ - __FUNCTION__, __FILE__, __LINE__); \ + __func__, __FILE__, __LINE__); \ } while(0)#else #define IP_NF_ASSERT (x)
net/ipv6/netfilter/ip6t_REJECT.c +1 -1
@@ -177,7 +177,7 @@ reject_tg6(struct sk_buff *skb, const struct net_device *in, {const struct ip6t_reject_info *reject = targinfo; -pr_debug ("%s: medium point\n" , __FUNCTION__); +pr_debug ("%s: medium point\n" , __func__);/* WARNING: This code causes reentry within ip6tables. This means that the ip6tables jump stack is now crap. We must return an absolute verdict. --RR */
net/ipv6/route.c +2 -2
@@ -411,7 +411,7 @@ static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict)struct rt6_info *match, *rt0;RT6_TRACE ("%s(fn->leaf=%p, oif=%d)\n" , - __FUNCTION__, fn->leaf, oif); + __func__, fn->leaf, oif); rt0 = fn->rr_ptr;if (!rt0)
@@ -432,7 +432,7 @@ static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict) }RT6_TRACE ("%s() => %p\n" , - __FUNCTION__, match); + __func__, match);return (match ? match : &ip6_null_entry); }
net/ipv6/tcp_ipv6.c +4 -4
@@ -739,7 +739,7 @@ static int tcp_v6_do_calc_md5_hash(char *md5_hash, struct tcp_md5sig_key *key, hp =tcp_get_md5sig_pool ();if (!hp) { -printk (KERN_WARNING "%s(): hash pool not found...\n" , __FUNCTION__); +printk (KERN_WARNING "%s(): hash pool not found...\n" , __func__); goto clear_hash_noput; } bp = &hp->md5_blk.ip6;
@@ -779,17 +779,17 @@ static int tcp_v6_do_calc_md5_hash(char *md5_hash, struct tcp_md5sig_key *key,/* Now store the hash into the packet */ err =crypto_hash_init (desc);if (err) { -printk (KERN_WARNING "%s(): hash_init failed\n" , __FUNCTION__); +printk (KERN_WARNING "%s(): hash_init failed\n" , __func__); goto clear_hash; } err =crypto_hash_update (desc, sg, nbytes);if (err) { -printk (KERN_WARNING "%s(): hash_update failed\n" , __FUNCTION__); +printk (KERN_WARNING "%s(): hash_update failed\n" , __func__); goto clear_hash; } err =crypto_hash_final (desc, md5_hash);if (err) { -printk (KERN_WARNING "%s(): hash_final failed\n" , __FUNCTION__); +printk (KERN_WARNING "%s(): hash_final failed\n" , __func__); goto clear_hash; }
net/irda/af_irda.c +89 -89
688 lines not on this page · raw message
net/irda/discovery.c +2 -2
@@ -110,7 +110,7 @@ void irlmp_add_discovery_log(hashbin_t *cachelog, hashbin_t *log) {discovery_t *discovery; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);/* * If log is missing this means that IrLAP was unable to perform the
@@ -157,7 +157,7 @@ void irlmp_expire_discoveries(hashbin_t *log, __u32 saddr, int force)int i =0 ;/* How many we expired */ IRDA_ASSERT(log != NULL, return;); -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);spin_lock_irqsave (&log->hb_spinlock, flags);
net/irda/ircomm/ircomm_core.c +23 -23
184 lines not on this page · raw message
net/irda/ircomm/ircomm_event.c +6 -6
@@ -108,7 +108,7 @@ static int ircomm_state_idle(struct ircomm_cb *self, IRCOMM_EVENT event,ircomm_connect_indication (self, skb, info);break ;default : -IRDA_DEBUG (4 ,"%s(), unknown event: %s\n" , __FUNCTION__ , +IRDA_DEBUG (4 ,"%s(), unknown event: %s\n" , __func__ , ircomm_event[event]); ret = -EINVAL ; }
@@ -138,7 +138,7 @@ static int ircomm_state_waiti(struct ircomm_cb *self, IRCOMM_EVENT event,ircomm_disconnect_indication (self, skb, info);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event: %s\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), unknown event: %s\n" , __func__ , ircomm_event[event]); ret = -EINVAL ; }
@@ -171,7 +171,7 @@ static int ircomm_state_waitr(struct ircomm_cb *self, IRCOMM_EVENT event,ircomm_disconnect_indication (self, skb, info);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event = %s\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), unknown event = %s\n" , __func__ , ircomm_event[event]); ret = -EINVAL ; }
@@ -213,7 +213,7 @@ static int ircomm_state_conn(struct ircomm_cb *self, IRCOMM_EVENT event, ret = self->issue.disconnect_request (self, skb, info);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event = %s\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), unknown event = %s\n" , __func__ , ircomm_event[event]); ret = -EINVAL ; }
@@ -229,7 +229,7 @@ static int ircomm_state_conn(struct ircomm_cb *self, IRCOMM_EVENT event,int ircomm_do_event (struct ircomm_cb *self,IRCOMM_EVENT event,struct sk_buff *skb,struct ircomm_info *info) { -IRDA_DEBUG (4 ,"%s: state=%s, event=%s\n" , __FUNCTION__ , +IRDA_DEBUG (4 ,"%s: state=%s, event=%s\n" , __func__ , ircomm_state[self->state], ircomm_event[event]);return (*state[self->state])(self, event, skb, info);
@@ -245,6 +245,6 @@ void ircomm_next_state(struct ircomm_cb *self, IRCOMM_STATE state) { self->state = state; -IRDA_DEBUG (4 ,"%s: next state=%s, service type=%d\n" , __FUNCTION__ , +IRDA_DEBUG (4 ,"%s: next state=%s, service type=%d\n" , __func__ , ircomm_state[self->state], self->service_type); }
net/irda/ircomm/ircomm_lmp.c +15 -15
@@ -53,7 +53,7 @@ static int ircomm_lmp_connect_request(struct ircomm_cb *self, {int ret =0 ; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );/* Don't forget to refcount it - should be NULL anyway */ if (userdata)
@@ -76,7 +76,7 @@ static int ircomm_lmp_connect_response(struct ircomm_cb *self,struct sk_buff *tx_skb;int ret; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );/* Any userdata supplied? */ if (userdata ==NULL ) {
@@ -111,7 +111,7 @@ static int ircomm_lmp_disconnect_request(struct ircomm_cb *self,struct sk_buff *tx_skb;int ret; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );if (!userdata) { tx_skb =alloc_skb (LMP_MAX_HEADER ,GFP_ATOMIC );
@@ -148,13 +148,13 @@ static void ircomm_lmp_flow_control(struct sk_buff *skb) cb = (struct irda_skb_cb *) skb->cb; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); line = cb->line; self = (struct ircomm_cb *)hashbin_lock_find (ircomm, line,NULL );if (!self) { -IRDA_DEBUG (2 ,"%s(), didn't find myself\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), didn't find myself\n" , __func__ );return ; }
@@ -164,7 +164,7 @@ static void ircomm_lmp_flow_control(struct sk_buff *skb) self->pkt_count--;if ((self->pkt_count <2 ) && (self->flow_status ==FLOW_STOP )) { -IRDA_DEBUG (2 ,"%s(), asking TTY to start again!\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), asking TTY to start again!\n" , __func__ ); self->flow_status =FLOW_START ;if (self->notify.flow_indication) self->notify.flow_indication(self->notify.instance,
@@ -191,7 +191,7 @@ static int ircomm_lmp_data_request(struct ircomm_cb *self, cb->line = self->line; -IRDA_DEBUG (4 ,"%s(), sending frame\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s(), sending frame\n" , __func__ );/* Don't forget to refcount it - see ircomm_tty_do_softint() */ skb_get (skb);
@@ -199,7 +199,7 @@ static int ircomm_lmp_data_request(struct ircomm_cb *self, skb->destructor = ircomm_lmp_flow_control;if ((self->pkt_count++ >7 ) && (self->flow_status ==FLOW_START )) { -IRDA_DEBUG (2 ,"%s(), asking TTY to slow down!\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), asking TTY to slow down!\n" , __func__ ); self->flow_status =FLOW_STOP ;if (self->notify.flow_indication) self->notify.flow_indication(self->notify.instance,
@@ -207,7 +207,7 @@ static int ircomm_lmp_data_request(struct ircomm_cb *self, } ret =irlmp_data_request (self->lsap, skb);if (ret) { -IRDA_ERROR ("%s(), failed\n" , __FUNCTION__); +IRDA_ERROR ("%s(), failed\n" , __func__);/* irlmp_data_request already free the packet */ }
@@ -225,7 +225,7 @@ static int ircomm_lmp_data_indication(void *instance, void *sap, {struct ircomm_cb *self = (struct ircomm_cb *) instance; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return -1;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;);
@@ -255,7 +255,7 @@ static void ircomm_lmp_connect_confirm(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *) instance;struct ircomm_info info; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -288,7 +288,7 @@ static void ircomm_lmp_connect_indication(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *)instance;struct ircomm_info info; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -318,7 +318,7 @@ static void ircomm_lmp_disconnect_indication(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *) instance;struct ircomm_info info; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -341,7 +341,7 @@ int ircomm_open_lsap(struct ircomm_cb *self) {notify_t notify; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );/* Register callbacks */ irda_notify_init (¬ify);
@@ -354,7 +354,7 @@ int ircomm_open_lsap(struct ircomm_cb *self) self->lsap =irlmp_open_lsap (LSAP_ANY , ¬ify,0 );if (!self->lsap) { -IRDA_DEBUG (0 ,"%sfailed to allocate tsap\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%sfailed to allocate tsap\n" , __func__ );return -1 ; } self->slsap_sel = self->lsap->slsap_sel;
net/irda/ircomm/ircomm_param.c +16 -16
@@ -103,7 +103,7 @@ int ircomm_param_request(struct ircomm_tty_cb *self, __u8 pi, int flush)struct sk_buff *skb;int count; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return -1;); IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;);
@@ -136,7 +136,7 @@ int ircomm_param_request(struct ircomm_tty_cb *self, __u8 pi, int flush) count =irda_param_insert (self, pi,skb_tail_pointer (skb),skb_tailroom (skb), &ircomm_param_info);if (count <0 ) { -IRDA_WARNING ("%s(), no room for parameter!\n" , __FUNCTION__); +IRDA_WARNING ("%s(), no room for parameter!\n" , __func__);spin_unlock_irqrestore (&self->spinlock, flags);return -1 ; }
@@ -144,7 +144,7 @@ int ircomm_param_request(struct ircomm_tty_cb *self, __u8 pi, int flush)spin_unlock_irqrestore (&self->spinlock, flags); -IRDA_DEBUG (2 ,"%s(), skb->len=%d\n" , __FUNCTION__ , skb->len); +IRDA_DEBUG (2 ,"%s(), skb->len=%d\n" , __func__ , skb->len);if (flush) {/* ircomm_tty_do_softint will take care of the rest */
@@ -179,10 +179,10 @@ static int ircomm_param_service_type(void *instance, irda_param_t *param, service_type &= self->service_type;if (!service_type) {IRDA_DEBUG (2 , -"%s(), No common service type to use!\n" , __FUNCTION__ ); +"%s(), No common service type to use!\n" , __func__ );return -1 ; } -IRDA_DEBUG (0 ,"%s(), services in common=%02x\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), services in common=%02x\n" , __func__ , service_type);/*
@@ -197,7 +197,7 @@ static int ircomm_param_service_type(void *instance, irda_param_t *param,else if (service_type &IRCOMM_3_WIRE_RAW ) self->settings.service_type =IRCOMM_3_WIRE_RAW ; -IRDA_DEBUG (0 ,"%s(), resulting service type=0x%02x\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), resulting service type=0x%02x\n" , __func__ , self->settings.service_type);/*
@@ -240,7 +240,7 @@ static int ircomm_param_port_type(void *instance, irda_param_t *param, int get)else { self->settings.port_type = (__u8 ) param->pv.i; -IRDA_DEBUG (0 ,"%s(), port type=%d\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), port type=%d\n" , __func__ , self->settings.port_type); }return 0 ;
@@ -260,9 +260,9 @@ static int ircomm_param_port_name(void *instance, irda_param_t *param, int get) IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;);if (get) { -IRDA_DEBUG (0 ,"%s(), not imp!\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s(), not imp!\n" , __func__ ); }else { -IRDA_DEBUG (0 ,"%s(), port-name=%s\n" , __FUNCTION__ , param->pv.c); +IRDA_DEBUG (0 ,"%s(), port-name=%s\n" , __func__ , param->pv.c);strncpy (self->settings.port_name, param->pv.c,32 ); }
@@ -287,7 +287,7 @@ static int ircomm_param_data_rate(void *instance, irda_param_t *param, int get)else self->settings.data_rate = param->pv.i; -IRDA_DEBUG (2 ,"%s(), data rate = %d\n" , __FUNCTION__ , param->pv.i); +IRDA_DEBUG (2 ,"%s(), data rate = %d\n" , __func__ , param->pv.i);return 0 ; }
@@ -333,7 +333,7 @@ static int ircomm_param_flow_control(void *instance, irda_param_t *param,else self->settings.flow_control = (__u8 ) param->pv.i; -IRDA_DEBUG (1 ,"%s(), flow control = 0x%02x\n" , __FUNCTION__ , (__u8 ) param->pv.i); +IRDA_DEBUG (1 ,"%s(), flow control = 0x%02x\n" , __func__ , (__u8 ) param->pv.i);return 0 ; }
@@ -359,7 +359,7 @@ static int ircomm_param_xon_xoff(void *instance, irda_param_t *param, int get) self->settings.xonxoff[1 ] = (__u16 ) param->pv.i >>8 ; } -IRDA_DEBUG (0 ,"%s(), XON/XOFF = 0x%02x,0x%02x\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), XON/XOFF = 0x%02x,0x%02x\n" , __func__ , param->pv.i &0xff , param->pv.i >>8 );return 0 ;
@@ -386,7 +386,7 @@ static int ircomm_param_enq_ack(void *instance, irda_param_t *param, int get) self->settings.enqack[1 ] = (__u16 ) param->pv.i >>8 ; } -IRDA_DEBUG (0 ,"%s(), ENQ/ACK = 0x%02x,0x%02x\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), ENQ/ACK = 0x%02x,0x%02x\n" , __func__ , param->pv.i &0xff , param->pv.i >>8 );return 0 ;
@@ -401,7 +401,7 @@ static int ircomm_param_enq_ack(void *instance, irda_param_t *param, int get)static int ircomm_param_line_status (void *instance,irda_param_t *param,int get) { -IRDA_DEBUG (2 ,"%s(), not impl.\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), not impl.\n" , __func__ );return 0 ; }
@@ -462,7 +462,7 @@ static int ircomm_param_dce(void *instance, irda_param_t *param, int get)struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance;__u8 dce; -IRDA_DEBUG (1 ,"%s(), dce = 0x%02x\n" , __FUNCTION__ , (__u8 ) param->pv.i); +IRDA_DEBUG (1 ,"%s(), dce = 0x%02x\n" , __func__ , (__u8 ) param->pv.i); dce = (__u8 ) param->pv.i;
@@ -474,7 +474,7 @@ static int ircomm_param_dce(void *instance, irda_param_t *param, int get)/* Check if any of the settings have changed */ if (dce &0x0f ) {if (dce &IRCOMM_DELTA_CTS ) { -IRDA_DEBUG (2 ,"%s(), CTS \n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), CTS \n" , __func__ ); } }
net/irda/ircomm/ircomm_ttp.c +13 -13
@@ -78,7 +78,7 @@ int ircomm_open_tsap(struct ircomm_cb *self) {notify_t notify; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ );/* Register callbacks */ irda_notify_init (¬ify);
@@ -93,7 +93,7 @@ int ircomm_open_tsap(struct ircomm_cb *self) self->tsap =irttp_open_tsap (LSAP_ANY ,DEFAULT_INITIAL_CREDIT , ¬ify);if (!self->tsap) { -IRDA_DEBUG (0 ,"%sfailed to allocate tsap\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%sfailed to allocate tsap\n" , __func__ );return -1 ; } self->slsap_sel = self->tsap->stsap_sel;
@@ -121,7 +121,7 @@ static int ircomm_ttp_connect_request(struct ircomm_cb *self, {int ret =0 ; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ );/* Don't forget to refcount it - should be NULL anyway */ if (userdata)
@@ -145,7 +145,7 @@ static int ircomm_ttp_connect_response(struct ircomm_cb *self, {int ret; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ );/* Don't forget to refcount it - should be NULL anyway */ if (userdata)
@@ -173,7 +173,7 @@ static int ircomm_ttp_data_request(struct ircomm_cb *self, IRDA_ASSERT(skb != NULL, return -1;); -IRDA_DEBUG (2 ,"%s(), clen=%d\n" , __FUNCTION__ , clen); +IRDA_DEBUG (2 ,"%s(), clen=%d\n" , __func__ , clen);/* * Insert clen field, currently we either send data only, or control
@@ -190,7 +190,7 @@ static int ircomm_ttp_data_request(struct ircomm_cb *self, ret =irttp_data_request (self->tsap, skb);if (ret) { -IRDA_ERROR ("%s(), failed\n" , __FUNCTION__); +IRDA_ERROR ("%s(), failed\n" , __func__);/* irttp_data_request already free the packet */ }
@@ -208,7 +208,7 @@ static int ircomm_ttp_data_indication(void *instance, void *sap, {struct ircomm_cb *self = (struct ircomm_cb *) instance; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return -1;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;);
@@ -231,7 +231,7 @@ static void ircomm_ttp_connect_confirm(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *) instance;struct ircomm_info info; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -240,7 +240,7 @@ static void ircomm_ttp_connect_confirm(void *instance, void *sap,if (max_sdu_size !=TTP_SAR_DISABLE ) {IRDA_ERROR ("%s(), SAR not allowed for IrCOMM!\n" , - __FUNCTION__); + __func__); goto out; }
@@ -272,7 +272,7 @@ static void ircomm_ttp_connect_indication(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *)instance;struct ircomm_info info; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -281,7 +281,7 @@ static void ircomm_ttp_connect_indication(void *instance, void *sap,if (max_sdu_size !=TTP_SAR_DISABLE ) {IRDA_ERROR ("%s(), SAR not allowed for IrCOMM!\n" , - __FUNCTION__); + __func__); goto out; }
@@ -331,7 +331,7 @@ static void ircomm_ttp_disconnect_indication(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *) instance;struct ircomm_info info; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -356,7 +356,7 @@ static void ircomm_ttp_flow_indication(void *instance, void *sap, {struct ircomm_cb *self = (struct ircomm_cb *) instance; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
net/irda/ircomm/ircomm_tty.c +45 -45
350 lines not on this page · raw message
net/irda/ircomm/ircomm_tty_attach.c +39 -39
294 lines not on this page · raw message
net/irda/ircomm/ircomm_tty_ioctl.c +9 -9
@@ -57,7 +57,7 @@ static void ircomm_tty_change_speed(struct ircomm_tty_cb *self)unsigned cflag, cval;int baud; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ );if (!self->tty || !self->tty->termios || !self->ircomm)return ;
@@ -94,7 +94,7 @@ static void ircomm_tty_change_speed(struct ircomm_tty_cb *self) self->settings.flow_control |=IRCOMM_RTS_CTS_IN ;/* This got me. Bummer. Jean II */ if (self->service_type ==IRCOMM_3_WIRE_RAW ) -IRDA_WARNING ("%s(), enabling RTS/CTS on link that doesn't support it (3-wire-raw)\n" , __FUNCTION__); +IRDA_WARNING ("%s(), enabling RTS/CTS on link that doesn't support it (3-wire-raw)\n" , __func__); }else { self->flags &= ~ASYNC_CTS_FLOW ; self->settings.flow_control &= ~IRCOMM_RTS_CTS_IN ;
@@ -150,7 +150,7 @@ void ircomm_tty_set_termios(struct tty_struct *tty,struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;unsigned int cflag = tty->termios->c_cflag; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); if ((cflag == old_termios->c_cflag) && (RELEVANT_IFLAG(tty->termios->c_iflag) ==
@@ -199,7 +199,7 @@ int ircomm_tty_tiocmget(struct tty_struct *tty, struct file *file)struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;unsigned int result; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ );if (tty->flags & (1 <<TTY_IO_ERROR ))return -EIO ;
@@ -224,7 +224,7 @@ int ircomm_tty_tiocmset(struct tty_struct *tty, struct file *file, {struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ );if (tty->flags & (1 <<TTY_IO_ERROR ))return -EIO ;
@@ -266,7 +266,7 @@ static int ircomm_tty_get_serial_info(struct ircomm_tty_cb *self,if (!retinfo)return -EFAULT ; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ );memset (&info,0 ,sizeof (info)); info.line = self->line;
@@ -302,7 +302,7 @@ static int ircomm_tty_set_serial_info(struct ircomm_tty_cb *self,struct serial_struct new_serial;struct ircomm_tty_cb old_state, *state; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );if (copy_from_user (&new_serial,new_info,sizeof (new_serial)))return -EFAULT ;
@@ -376,7 +376,7 @@ int ircomm_tty_ioctl(struct tty_struct *tty, struct file *file,struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;int ret =0 ; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) &&
@@ -397,7 +397,7 @@ int ircomm_tty_ioctl(struct tty_struct *tty, struct file *file,break ;case TIOCGICOUNT : -IRDA_DEBUG (0 ,"%s(), TIOCGICOUNT not impl!\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s(), TIOCGICOUNT not impl!\n" , __func__ );#if 0 save_flags (flags);cli (); cnow = driver->icount;
net/irda/irda_device.c +9 -9
@@ -90,7 +90,7 @@ static void leftover_dongle(void *arg)void irda_device_cleanup (void ) { -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);hashbin_delete (tasks, (FREE_FUNC ) __irda_task_delete);
@@ -107,7 +107,7 @@ void irda_device_set_media_busy(struct net_device *dev, int status) {struct irlap_cb *self; -IRDA_DEBUG (4 ,"%s(%s)\n" , __FUNCTION__, status ?"TRUE" :"FALSE" ); +IRDA_DEBUG (4 ,"%s(%s)\n" , __func__, status ?"TRUE" :"FALSE" ); self = (struct irlap_cb *) dev->atalk_ptr;
@@ -147,11 +147,11 @@ int irda_device_is_receiving(struct net_device *dev)struct if_irda_req req;int ret; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (2 ,"%s()\n" , __func__);if (!dev->do_ioctl) {IRDA_ERROR ("%s: do_ioctl not impl. by device driver\n" , - __FUNCTION__); + __func__);return -1 ; }
@@ -191,7 +191,7 @@ static int irda_task_kick(struct irda_task *task)int count =0 ;int timeout; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (2 ,"%s()\n" , __func__); IRDA_ASSERT(task != NULL, return -1;); IRDA_ASSERT(task->magic == IRDA_TASK_MAGIC, return -1;);
@@ -201,14 +201,14 @@ static int irda_task_kick(struct irda_task *task) timeout = task->function (task);if (count++ >100 ) {IRDA_ERROR ("%s: error in task handler!\n" , - __FUNCTION__); + __func__);irda_task_delete (task);return TRUE; } }while ((timeout ==0 ) && (task->state !=IRDA_TASK_DONE ));if (timeout <0 ) { -IRDA_ERROR ("%s: Error executing task!\n" , __FUNCTION__); +IRDA_ERROR ("%s: Error executing task!\n" , __func__);irda_task_delete (task);return TRUE; }
@@ -241,7 +241,7 @@ static int irda_task_kick(struct irda_task *task) finished = FALSE; }else {IRDA_DEBUG (0 ,"%s(), not finished, and no timeout!\n" , - __FUNCTION__); + __func__); finished = FALSE; }
@@ -258,7 +258,7 @@ static void irda_task_timer_expired(void *data) {struct irda_task *task; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (2 ,"%s()\n" , __func__); task = (struct irda_task *) data;
net/irda/iriap.c +38 -38
297 lines not on this page · raw message
net/irda/iriap_event.c +19 -19
@@ -185,7 +185,7 @@ static void state_s_disconnect(struct iriap_cb *self, IRIAP_EVENT event,case IAP_LM_DISCONNECT_INDICATION :break ;default : -IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __func__, event);break ; } }
@@ -217,7 +217,7 @@ static void state_s_connecting(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_client_state (self,S_DISCONNECT );break ;default : -IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __func__, event);break ; } }
@@ -269,7 +269,7 @@ static void state_s_make_call(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_call_state (self,S_OUTSTANDING );break ;default : -IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __func__, event);break ; } }
@@ -283,7 +283,7 @@ static void state_s_make_call(struct iriap_cb *self, IRIAP_EVENT event,static void state_s_calling (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }/*
@@ -305,7 +305,7 @@ static void state_s_outstanding(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_call_state (self,S_WAIT_FOR_CALL );break ;default : -IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __func__, event);break ; } }
@@ -318,7 +318,7 @@ static void state_s_outstanding(struct iriap_cb *self, IRIAP_EVENT event,static void state_s_replying (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }/*
@@ -330,7 +330,7 @@ static void state_s_replying(struct iriap_cb *self, IRIAP_EVENT event,static void state_s_wait_for_call (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }
@@ -343,7 +343,7 @@ static void state_s_wait_for_call(struct iriap_cb *self, IRIAP_EVENT event,static void state_s_wait_active (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }/**************************************************************************
@@ -367,7 +367,7 @@ static void state_r_disconnect(struct iriap_cb *self, IRIAP_EVENT event,case IAP_LM_CONNECT_INDICATION : tx_skb =alloc_skb (LMP_MAX_HEADER ,GFP_ATOMIC );if (tx_skb ==NULL ) { -IRDA_WARNING ("%s: unable to malloc!\n" , __FUNCTION__); +IRDA_WARNING ("%s: unable to malloc!\n" , __func__);return ; }
@@ -386,7 +386,7 @@ static void state_r_disconnect(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_r_connect_state (self,R_RECEIVING );break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), unknown event %d\n" , __func__, event);break ; } }
@@ -397,7 +397,7 @@ static void state_r_disconnect(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_call (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);switch (event) {case IAP_LM_DISCONNECT_INDICATION :
@@ -406,7 +406,7 @@ static void state_r_call(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_r_connect_state (self,R_WAITING );break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __func__);break ; } }
@@ -421,13 +421,13 @@ static void state_r_call(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_waiting (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }static void state_r_wait_active (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }/*
@@ -439,7 +439,7 @@ static void state_r_wait_active(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_receiving (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);switch (event) {case IAP_RECV_F_LST :
@@ -448,7 +448,7 @@ static void state_r_receiving(struct iriap_cb *self, IRIAP_EVENT event,iriap_call_indication (self, skb);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __func__);break ; } }
@@ -462,7 +462,7 @@ static void state_r_receiving(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_execute (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__); IRDA_ASSERT(skb != NULL, return;); IRDA_ASSERT(self != NULL, return;);
@@ -483,7 +483,7 @@ static void state_r_execute(struct iriap_cb *self, IRIAP_EVENT event,irlmp_data_request (self->lsap, skb);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __func__);break ; } }
@@ -491,7 +491,7 @@ static void state_r_execute(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_returning (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), event=%d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), event=%d\n" , __func__, event);switch (event) {case IAP_RECV_F_LST :
net/irda/irias_object.c +22 -22
29 lines not on this page · raw message
net/irda/irlan/irlan_client.c +24 -24
48 lines not on this page · raw message
net/irda/irlan/irlan_client_event.c +32 -32
64 lines not on this page · raw message
net/irda/irlan/irlan_common.c +36 -36
72 lines not on this page · raw message
net/irda/irlap.c +28 -28
56 lines not on this page · raw message
net/irda/irlap_event.c +61 -61
122 lines not on this page · raw message
net/irda/irlap_frame.c +37 -37
74 lines not on this page · raw message
net/irda/irlmp.c +56 -56
112 lines not on this page · raw message
net/irda/irlmp_event.c +47 -47
94 lines not on this page · raw message
net/irda/irttp.c +54 -54
108 lines not on this page · raw message
net/irda/parameters.c +21 -21
42 lines not on this page · raw message
net/sunrpc/clnt.c +22 -22
44 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.5.4.3.500.g83a2c
Part of the diff is not shown here. View the raw message.
David Miller
maintainerFrom: Harvey Harrison <[email protected]>
Date: Mon, 03 Mar 2008 12:16:46 -0800
Quoted 3 lines
__FUNCTION__is gcc-specific, use__func__Signed-off-by Harvey Harrison <[email protected]>
This doesn't apply cleanly to net-2.6.26 and I don't think it's appropriate for 2.6.25 so you'll need to respin this patch.
PATCH 1/1 net: replace remaining __FUNCTION__ occurrences
__FUNCTION__ is gcc-specific, use __func__
---
Respun on net-2.6.26.git
net/8021q/vlan_dev.c | 12 +- net/8021q/vlanproc.c | 2 +- net/9p/error.c | 2 +- net/bridge/br_sysfs_br.c | 6 +- net/core/sock.c | 2 +- net/dccp/dccp.h | 6 +- net/ieee80211/softmac/ieee80211softmac_priv.h | 2 +- net/ipv4/af_inet.c | 2 +- net/ipv4/ipvs/ip_vs_proto_tcp.c | 2 +- net/ipv4/ipvs/ip_vs_proto_udp.c | 2 +- net/ipv4/ipvs/ip_vs_sync.c | 4 +- net/ipv4/netfilter/arp_tables.c | 2 +- net/ipv4/netfilter/ip_tables.c | 2 +- net/ipv4/tcp_input.c | 2 +- net/ipv4/udplite_ipv4.c | 4 +- net/ipv6/addrconf.c | 4 +- net/ipv6/addrlabel.c | 14 +- net/ipv6/ip6_tunnel.c | 2 +- net/ipv6/mip6.c | 20 ++-- net/ipv6/ndisc.c | 14 +- net/ipv6/netfilter/ip6_tables.c | 2 +- net/ipv6/netfilter/ip6t_REJECT.c | 2 +- net/ipv6/route.c | 4 +- net/ipv6/tcp_ipv6.c | 8 +- net/irda/af_irda.c | 178 ++++++++++++------------ net/irda/discovery.c | 4 +- net/irda/ircomm/ircomm_core.c | 46 +++--- net/irda/ircomm/ircomm_event.c | 12 +- net/irda/ircomm/ircomm_lmp.c | 30 ++-- net/irda/ircomm/ircomm_param.c | 32 +++--- net/irda/ircomm/ircomm_ttp.c | 26 ++-- net/irda/ircomm/ircomm_tty.c | 90 ++++++------ net/irda/ircomm/ircomm_tty_attach.c | 78 ++++++------ net/irda/ircomm/ircomm_tty_ioctl.c | 18 ++-- net/irda/irda_device.c | 18 ++-- net/irda/iriap.c | 76 ++++++------ net/irda/iriap_event.c | 38 +++--- net/irda/irias_object.c | 44 +++--- net/irda/irlan/irlan_client.c | 48 ++++---- net/irda/irlan/irlan_client_event.c | 64 +++++----- net/irda/irlan/irlan_common.c | 72 +++++----- net/irda/irlan/irlan_eth.c | 18 ++-- net/irda/irlan/irlan_event.c | 4 +- net/irda/irlan/irlan_filter.c | 4 +- net/irda/irlan/irlan_provider.c | 30 ++-- net/irda/irlan/irlan_provider_event.c | 16 +- net/irda/irlap.c | 56 ++++---- net/irda/irlap_event.c | 122 +++++++++--------- net/irda/irlap_frame.c | 74 +++++----- net/irda/irlmp.c | 112 ++++++++-------- net/irda/irlmp_event.c | 94 +++++++------- net/irda/irlmp_frame.c | 36 +++--- net/irda/irmod.c | 2 +- net/irda/irnet/irnet.h | 10 +- net/irda/irnetlink.c | 4 +- net/irda/irqueue.c | 8 +- net/irda/irttp.c | 108 ++++++++-------- net/irda/parameters.c | 42 +++--- net/irda/qos.c | 24 ++-- net/irda/wrapper.c | 18 ++-- net/llc/af_llc.c | 16 +- net/llc/llc_c_ac.c | 2 +- net/llc/llc_c_ev.c | 8 +- net/llc/llc_conn.c | 24 ++-- net/llc/llc_input.c | 4 +- net/mac80211/ieee80211_iface.c | 2 +- net/rxrpc/ar-internal.h | 8 +- net/sctp/associola.c | 8 +- net/sctp/chunk.c | 2 +- net/sctp/input.c | 2 +- net/sctp/ipv6.c | 8 +- net/sctp/output.c | 14 +- net/sctp/outqueue.c | 14 +- net/sctp/protocol.c | 4 +- net/sctp/sm_sideeffect.c | 6 +- net/sctp/sm_statefuns.c | 10 +- net/sctp/socket.c | 14 +- net/sctp/transport.c | 10 +- net/sunrpc/auth_gss/auth_gss.c | 2 +- net/sunrpc/clnt.c | 44 +++--- net/sunrpc/rpc_pipe.c | 12 +- net/sunrpc/rpcb_clnt.c | 20 ++-- net/sunrpc/xprtsock.c | 2 +- net/unix/af_unix.c | 2 +- 84 files changed, 1008 insertions(+), 1008 deletions(-)
net/8021q/vlan_dev.c +6 -6
@@ -171,7 +171,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev, skb->dev =__find_vlan_dev (dev, vid);if (!skb->dev) {pr_debug ("%s: ERROR: No net_device for VID: %u on dev: %s\n" , - __FUNCTION__, (unsigned int )vid, dev->name); + __func__, (unsigned int )vid, dev->name); goto err_unlock; }
@@ -187,7 +187,7 @@ int vlan_skb_recv(struct sk_buff *skb, struct net_device *dev, ntohs(vhdr->h_vlan_TCI));pr_debug ("%s: priority: %u for TCI: %hu\n" , - __FUNCTION__, skb->priority,ntohs (vhdr->h_vlan_TCI)); + __func__, skb->priority,ntohs (vhdr->h_vlan_TCI));switch (skb->pkt_type) {case PACKET_BROADCAST :/* Yeah, stats collect these together.. */
@@ -268,7 +268,7 @@ static int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev,struct net_device *vdev = dev;pr_debug ("%s: skb: %p type: %hx len: %u vlan_id: %hx, daddr: %p\n" , - __FUNCTION__, skb, type, len,vlan_dev_info (dev)->vlan_id, + __func__, skb, type, len,vlan_dev_info (dev)->vlan_id, daddr);/* build vlan header only if re_order_header flag is NOT set. This
@@ -340,7 +340,7 @@ static int vlan_dev_hard_header(struct sk_buff *skb, struct net_device *dev,return -ENOMEM ; }vlan_dev_info (vdev)->cnt_inc_headroom_on_tx++; -pr_debug ("%s: %s: had to grow skb\n" , __FUNCTION__, vdev->name); +pr_debug ("%s: %s: had to grow skb\n" , __func__, vdev->name); }if (build_vlan_header) {
@@ -382,7 +382,7 @@ static int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev)vlan_dev_info (dev)->cnt_encap_on_xmit++;pr_debug ("%s: proto to encap: 0x%hx\n" , - __FUNCTION__,htons (veth->h_vlan_proto)); + __func__,htons (veth->h_vlan_proto));/* Construct the second two bytes. This field looks something * like: * usr_priority: 3 bits (high bits)
@@ -403,7 +403,7 @@ static int vlan_dev_hard_start_xmit(struct sk_buff *skb, struct net_device *dev) }pr_debug ("%s: about to send skb: %p to dev: %s\n" , - __FUNCTION__, skb, skb->dev->name); + __func__, skb, skb->dev->name); pr_debug(" " MAC_FMT " " MAC_FMT " %4hx %4hx %4hx\n", veth->h_dest[0], veth->h_dest[1], veth->h_dest[2], veth->h_dest[3], veth->h_dest[4], veth->h_dest[5],
net/8021q/vlanproc.c +1 -1
@@ -168,7 +168,7 @@ int __init vlan_proc_init(void)return 0 ; err: -pr_err ("%s: can't create entry in proc filesystem!\n" , __FUNCTION__); +pr_err ("%s: can't create entry in proc filesystem!\n" , __func__);vlan_proc_cleanup ();return -ENOBUFS ; }
net/9p/error.c +1 -1
@@ -230,7 +230,7 @@ int p9_errstr2errno(char *errstr, int len)if (errno ==0 ) {/* TODO: if error isn't found, add it dynamically */ errstr[len] =0 ; -printk (KERN_ERR "%s: errstr :%s: not found\n" , __FUNCTION__, +printk (KERN_ERR "%s: errstr :%s: not found\n" , __func__, errstr); errno =1 ; }
net/bridge/br_sysfs_br.c +3 -3
@@ -415,21 +415,21 @@ int br_sysfs_addbr(struct net_device *dev) err =sysfs_create_group (brobj, &bridge_group);if (err) {pr_info ("%s: can't create group %s/%s\n" , - __FUNCTION__, dev->name, bridge_group.name); + __func__, dev->name, bridge_group.name); goto out1; } err =sysfs_create_bin_file (brobj, &bridge_forward);if (err) {pr_info ("%s: can't create attribute file %s/%s\n" , - __FUNCTION__, dev->name, bridge_forward.attr.name); + __func__, dev->name, bridge_forward.attr.name); goto out2; } br->ifobj =kobject_create_and_add (SYSFS_BRIDGE_PORT_SUBDIR , brobj);if (!br->ifobj) {pr_info ("%s: can't add kobject (directory) %s/%s\n" , - __FUNCTION__, dev->name,SYSFS_BRIDGE_PORT_SUBDIR ); + __func__, dev->name,SYSFS_BRIDGE_PORT_SUBDIR ); goto out3; }return 0 ;
net/core/sock.c +1 -1
@@ -981,7 +981,7 @@ void sk_free(struct sock *sk)if (atomic_read (&sk->sk_omem_alloc))printk (KERN_DEBUG "%s: optmem leakage (%d bytes) detected.\n" , - __FUNCTION__,atomic_read (&sk->sk_omem_alloc)); + __func__,atomic_read (&sk->sk_omem_alloc));put_net (sk->sk_net);sk_prot_free (sk->sk_prot_creator, sk);
net/dccp/dccp.h +3 -3
@@ -23,9 +23,9 @@* DCCP - specific warning and debugging macros. */ #define DCCP_WARN(fmt, a...) LIMIT_NETDEBUG(KERN_WARNING "%s: " fmt, \ - __FUNCTION__, ##a) + __func__, ##a) #define DCCP_CRIT(fmt, a...) printk(KERN_CRIT fmt " at %s:%d/%s()\n", ##a, \ - __FILE__, __LINE__, __FUNCTION__) + __FILE__, __LINE__, __func__) #define DCCP_BUG(a...) do { DCCP_CRIT("BUG: " a); dump_stack(); } while(0)#define DCCP_BUG_ON (cond) do { if (unlikely((cond) != 0)) \ DCCP_BUG("\"%s\" holds (exception!)", \
@@ -36,7 +36,7 @@ printk(fmt, ##args); \ } while(0) #define DCCP_PR_DEBUG(enable, fmt, a...) DCCP_PRINTK(enable, KERN_DEBUG \ - "%s: " fmt, __FUNCTION__, ##a) + "%s: " fmt, __func__, ##a)#ifdef CONFIG_IP_DCCP_DEBUG extern int dccp_debug;
net/ieee80211/softmac/ieee80211softmac_priv.h +1 -1
@@ -43,7 +43,7 @@ do { \ if (unlikely(!(expr))) { \ printkl(KERN_ERR PFX "ASSERTION FAILED (%s) at: %s:%d:%s()\n", #expr, \ - __FILE__, __LINE__, __FUNCTION__); \ + __FILE__, __LINE__, __func__); \ } \ } while (0) #else
net/ipv4/af_inet.c +1 -1
@@ -1060,7 +1060,7 @@ static int inet_sk_reselect_saddr(struct sock *sk)if (sysctl_ip_dynaddr >1 ) {printk (KERN_INFO "%s(): shifting inet->" "saddr from %d.%d.%d.%d to %d.%d.%d.%d\n" , - __FUNCTION__, + __func__,NIPQUAD (old_saddr),NIPQUAD (new_saddr)); }
net/ipv4/ipvs/ip_vs_proto_tcp.c +1 -1
@@ -550,7 +550,7 @@ tcp_app_conn_bind(struct ip_vs_conn *cp)IP_VS_DBG (9 ,"%s: Binding conn %u.%u.%u.%u:%u->" "%u.%u.%u.%u:%u to app %s on port %u\n" , - __FUNCTION__, + __func__,NIPQUAD (cp->caddr),ntohs (cp->cport),NIPQUAD (cp->vaddr),ntohs (cp->vport), inc->name,ntohs (inc->port));
net/ipv4/ipvs/ip_vs_proto_udp.c +1 -1
@@ -344,7 +344,7 @@ static int udp_app_conn_bind(struct ip_vs_conn *cp)IP_VS_DBG (9 ,"%s: Binding conn %u.%u.%u.%u:%u->" "%u.%u.%u.%u:%u to app %s on port %u\n" , - __FUNCTION__, + __func__,NIPQUAD (cp->caddr),ntohs (cp->cport),NIPQUAD (cp->vaddr),ntohs (cp->vport), inc->name,ntohs (inc->port));
net/ipv4/ipvs/ip_vs_sync.c +2 -2
@@ -916,7 +916,7 @@ int start_sync_thread(int state, char *mcast_ifn, __u8 syncid)if (!tinfo)return -ENOMEM ; -IP_VS_DBG (7 ,"%s: pid %d\n" , __FUNCTION__,task_pid_nr (current)); +IP_VS_DBG (7 ,"%s: pid %d\n" , __func__,task_pid_nr (current));IP_VS_DBG (7 ,"Each ip_vs_sync_conn entry need %Zd bytes\n" ,sizeof (struct ip_vs_sync_conn ));
@@ -956,7 +956,7 @@ int stop_sync_thread(int state) (state == IP_VS_STATE_BACKUP && !sync_backup_pid))return -ESRCH ; -IP_VS_DBG (7 ,"%s: pid %d\n" , __FUNCTION__,task_pid_nr (current)); +IP_VS_DBG (7 ,"%s: pid %d\n" , __func__,task_pid_nr (current));IP_VS_INFO ("stopping sync thread %d ...\n" , (state ==IP_VS_STATE_MASTER ) ? sync_master_pid : sync_backup_pid);
net/ipv4/netfilter/arp_tables.c +1 -1
@@ -52,7 +52,7 @@ MODULE_DESCRIPTION("arptables core");do { \if (!(x)) \printk ("ARP_NF_ASSERT: %s:%s:%u\n" , \ - __FUNCTION__, __FILE__, __LINE__); \ + __func__, __FILE__, __LINE__); \ } while(0)#else #define ARP_NF_ASSERT (x)
net/ipv4/netfilter/ip_tables.c +1 -1
@@ -53,7 +53,7 @@ MODULE_DESCRIPTION("IPv4 packet filter");do { \if (!(x)) \printk ("IP_NF_ASSERT: %s:%s:%u\n" , \ - __FUNCTION__, __FILE__, __LINE__); \ + __func__, __FILE__, __LINE__); \ } while(0)#else #define IP_NF_ASSERT (x)
net/ipv4/tcp_input.c +1 -1
@@ -3561,7 +3561,7 @@ static void tcp_fin(struct sk_buff *skb, struct sock *sk, struct tcphdr *th)* cases we should never reach this piece of code. */ printk (KERN_ERR "%s: Impossible, sk->sk_state=%d\n" , - __FUNCTION__, sk->sk_state); + __func__, sk->sk_state);break ; }
net/ipv4/udplite_ipv4.c +2 -2
@@ -106,14 +106,14 @@ void __init udplite4_register(void)#ifdef CONFIG_PROC_FS if (udp_proc_register (&udplite4_seq_afinfo))/* udplite4_proc_init() */ -printk (KERN_ERR "%s: Cannot register /proc!\n" , __FUNCTION__); +printk (KERN_ERR "%s: Cannot register /proc!\n" , __func__);#endif return ; out_unregister_proto:proto_unregister (&udplite_prot); out_register_err: -printk (KERN_CRIT "%s: Cannot add UDP-Lite protocol.\n" , __FUNCTION__); +printk (KERN_CRIT "%s: Cannot add UDP-Lite protocol.\n" , __func__); }EXPORT_SYMBOL (udplite_hash);
net/ipv6/addrconf.c +2 -2
@@ -349,7 +349,7 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev)if (snmp6_alloc_dev (ndev) <0 ) {ADBG ((KERN_WARNING "%s(): cannot allocate memory for statistics; dev=%s.\n" , - __FUNCTION__, dev->name)); + __func__, dev->name));neigh_parms_release (&nd_tbl, ndev->nd_parms); ndev->dead =1 ;in6_dev_finish_destroy (ndev);
@@ -359,7 +359,7 @@ static struct inet6_dev * ipv6_add_dev(struct net_device *dev)if (snmp6_register_dev (ndev) <0 ) {ADBG ((KERN_WARNING "%s(): cannot create /proc/net/dev_snmp6/%s\n" , - __FUNCTION__, dev->name)); + __func__, dev->name));neigh_parms_release (&nd_tbl, ndev->nd_parms); ndev->dead =1 ;in6_dev_finish_destroy (ndev);
net/ipv6/addrlabel.c +7 -7
@@ -166,7 +166,7 @@ u32 ipv6_addr_label(const struct in6_addr *addr, int type, int ifindex)rcu_read_unlock ();ADDRLABEL (KERN_DEBUG "%s(addr=" NIP6_FMT ", type=%d, ifindex=%d) => %08x\n" , - __FUNCTION__, + __func__,NIP6 (*addr), type, ifindex, label);
@@ -182,7 +182,7 @@ static struct ip6addrlbl_entry *ip6addrlbl_alloc(const struct in6_addr *prefix,int addrtype;ADDRLABEL (KERN_DEBUG "%s(prefix=" NIP6_FMT ", prefixlen=%d, ifindex=%d, label=%u)\n" , - __FUNCTION__, + __func__,NIP6 (*prefix), prefixlen, ifindex, (unsigned int )label);
@@ -226,7 +226,7 @@ static int __ip6addrlbl_add(struct ip6addrlbl_entry *newp, int replace)int ret =0 ;ADDRLABEL (KERN_DEBUG "%s(newp=%p, replace=%d)\n" , - __FUNCTION__, + __func__, newp, replace);if (hlist_empty (&ip6addrlbl_table.head)) {
@@ -268,7 +268,7 @@ static int ip6addrlbl_add(const struct in6_addr *prefix, int prefixlen,int ret =0 ; ADDRLABEL(KERN_DEBUG "%s(prefix=" NIP6_FMT ", prefixlen=%d, ifindex=%d, label=%u, replace=%d)\n", - __FUNCTION__, + __func__, NIP6(*prefix), prefixlen, ifindex, (unsigned int)label,
@@ -294,7 +294,7 @@ static int __ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen,int ret = -ESRCH ;ADDRLABEL (KERN_DEBUG "%s(prefix=" NIP6_FMT ", prefixlen=%d, ifindex=%d)\n" , - __FUNCTION__, + __func__,NIP6 (*prefix), prefixlen, ifindex);
@@ -318,7 +318,7 @@ static int ip6addrlbl_del(const struct in6_addr *prefix, int prefixlen,int ret;ADDRLABEL (KERN_DEBUG "%s(prefix=" NIP6_FMT ", prefixlen=%d, ifindex=%d)\n" , - __FUNCTION__, + __func__,NIP6 (*prefix), prefixlen, ifindex);
@@ -335,7 +335,7 @@ static __init int ip6addrlbl_init(void)int err =0 ;int i; -ADDRLABEL (KERN_DEBUG "%s()\n" , __FUNCTION__); +ADDRLABEL (KERN_DEBUG "%s()\n" , __func__);for (i =0 ; i <ARRAY_SIZE (ip6addrlbl_init_table); i++) { int ret = ip6addrlbl_add(ip6addrlbl_init_table[i].prefix,
net/ipv6/ip6_tunnel.c +1 -1
@@ -60,7 +60,7 @@ MODULE_LICENSE("GPL");#define IPV6_TLV_TEL_DST_SIZE 8#ifdef IP6_TNL_DEBUG -#define IP6_TNL_TRACE(x...) printk(KERN_DEBUG "%s:" x "\n", __FUNCTION__) +#define IP6_TNL_TRACE(x...) printk(KERN_DEBUG "%s:" x "\n", __func__)#else #define IP6_TNL_TRACE(x...) do {;} while(0)#endif
net/ipv6/mip6.c +10 -10
@@ -304,13 +304,13 @@ static int mip6_destopt_offset(struct xfrm_state *x, struct sk_buff *skb,static int mip6_destopt_init_state (struct xfrm_state *x) {if (x->id.spi) { -printk (KERN_INFO "%s: spi is not 0: %u\n" , __FUNCTION__, +printk (KERN_INFO "%s: spi is not 0: %u\n" , __func__, x->id.spi);return -EINVAL ; }if (x->props.mode !=XFRM_MODE_ROUTEOPTIMIZATION ) {printk (KERN_INFO "%s: state's mode is not %u: %u\n" , - __FUNCTION__,XFRM_MODE_ROUTEOPTIMIZATION , x->props.mode); + __func__,XFRM_MODE_ROUTEOPTIMIZATION , x->props.mode);return -EINVAL ; }
@@ -439,13 +439,13 @@ static int mip6_rthdr_offset(struct xfrm_state *x, struct sk_buff *skb,static int mip6_rthdr_init_state (struct xfrm_state *x) {if (x->id.spi) { -printk (KERN_INFO "%s: spi is not 0: %u\n" , __FUNCTION__, +printk (KERN_INFO "%s: spi is not 0: %u\n" , __func__, x->id.spi);return -EINVAL ; }if (x->props.mode !=XFRM_MODE_ROUTEOPTIMIZATION ) {printk (KERN_INFO "%s: state's mode is not %u: %u\n" , - __FUNCTION__,XFRM_MODE_ROUTEOPTIMIZATION , x->props.mode); + __func__,XFRM_MODE_ROUTEOPTIMIZATION , x->props.mode);return -EINVAL ; }
@@ -480,15 +480,15 @@ static int __init mip6_init(void)printk (KERN_INFO "Mobile IPv6\n" );if (xfrm_register_type (&mip6_destopt_type,AF_INET6 ) <0 ) { -printk (KERN_INFO "%s: can't add xfrm type(destopt)\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't add xfrm type(destopt)\n" , __func__); goto mip6_destopt_xfrm_fail; }if (xfrm_register_type (&mip6_rthdr_type,AF_INET6 ) <0 ) { -printk (KERN_INFO "%s: can't add xfrm type(rthdr)\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't add xfrm type(rthdr)\n" , __func__); goto mip6_rthdr_xfrm_fail; }if (rawv6_mh_filter_register (mip6_mh_filter) <0 ) { -printk (KERN_INFO "%s: can't add rawv6 mh filter\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't add rawv6 mh filter\n" , __func__); goto mip6_rawv6_mh_fail; }
@@ -506,11 +506,11 @@ static int __init mip6_init(void) static void __exit mip6_fini(void) {if (rawv6_mh_filter_unregister (mip6_mh_filter) <0 ) -printk (KERN_INFO "%s: can't remove rawv6 mh filter\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't remove rawv6 mh filter\n" , __func__);if (xfrm_unregister_type (&mip6_rthdr_type,AF_INET6 ) <0 ) -printk (KERN_INFO "%s: can't remove xfrm type(rthdr)\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't remove xfrm type(rthdr)\n" , __func__);if (xfrm_unregister_type (&mip6_destopt_type,AF_INET6 ) <0 ) -printk (KERN_INFO "%s: can't remove xfrm type(destopt)\n" , __FUNCTION__); +printk (KERN_INFO "%s: can't remove xfrm type(destopt)\n" , __func__); }module_init (mip6_init);
net/ipv6/ndisc.c +7 -7
@@ -270,7 +270,7 @@ static struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,if (ndopts->nd_opt_array[nd_opt->nd_opt_type]) {ND_PRINTK2 (KERN_WARNING "%s(): duplicated ND6 option found: type=%d\n" , - __FUNCTION__, + __func__, nd_opt->nd_opt_type); }else { ndopts->nd_opt_array[nd_opt->nd_opt_type] = nd_opt;
@@ -301,7 +301,7 @@ static struct ndisc_options *ndisc_parse_options(u8 *opt, int opt_len,*/ ND_PRINTK2 (KERN_NOTICE "%s(): ignored unsupported option; type=%d, len=%d\n" , - __FUNCTION__, + __func__, nd_opt->nd_opt_type, nd_opt->nd_opt_len); } }
@@ -484,7 +484,7 @@ static void __ndisc_send(struct net_device *dev,if (!skb) {ND_PRINTK0 (KERN_ERR "ICMPv6 ND: %s() failed to allocate an skb.\n" , - __FUNCTION__); + __func__);dst_release (dst);return ; }
@@ -647,7 +647,7 @@ static void ndisc_solicit(struct neighbour *neigh, struct sk_buff *skb)ND_PRINTK1 (KERN_DEBUG "%s(): trying to ucast probe in NUD_INVALID: " NIP6_FMT "\n" , - __FUNCTION__, + __func__,NIP6 (*target)); }ndisc_send_ns (dev, neigh, target, target, saddr);
@@ -1149,7 +1149,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)if (rt ==NULL ) {ND_PRINTK0 (KERN_ERR "ICMPv6 RA: %s() failed to add default route.\n" , - __FUNCTION__); + __func__);in6_dev_put (in6_dev);return ; }
@@ -1158,7 +1158,7 @@ static void ndisc_router_discovery(struct sk_buff *skb)if (neigh ==NULL ) {ND_PRINTK0 (KERN_ERR "ICMPv6 RA: %s() got default router without neighbour.\n" , - __FUNCTION__); + __func__);dst_release (&rt->u.dst);in6_dev_put (in6_dev);return ;
@@ -1471,7 +1471,7 @@ void ndisc_send_redirect(struct sk_buff *skb, struct neighbour *neigh,if (buff ==NULL ) {ND_PRINTK0 (KERN_ERR "ICMPv6 Redirect: %s() failed to allocate an skb.\n" , - __FUNCTION__); + __func__);dst_release (dst);return ; }
net/ipv6/netfilter/ip6_tables.c +1 -1
@@ -55,7 +55,7 @@ MODULE_DESCRIPTION("IPv6 packet filter");do { \if (!(x)) \printk ("IP_NF_ASSERT: %s:%s:%u\n" , \ - __FUNCTION__, __FILE__, __LINE__); \ + __func__, __FILE__, __LINE__); \ } while(0)#else #define IP_NF_ASSERT (x)
net/ipv6/netfilter/ip6t_REJECT.c +1 -1
@@ -177,7 +177,7 @@ reject_tg6(struct sk_buff *skb, const struct net_device *in, {const struct ip6t_reject_info *reject = targinfo; -pr_debug ("%s: medium point\n" , __FUNCTION__); +pr_debug ("%s: medium point\n" , __func__);/* WARNING: This code causes reentry within ip6tables. This means that the ip6tables jump stack is now crap. We must return an absolute verdict. --RR */
net/ipv6/route.c +2 -2
@@ -410,7 +410,7 @@ static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict)struct net *net;RT6_TRACE ("%s(fn->leaf=%p, oif=%d)\n" , - __FUNCTION__, fn->leaf, oif); + __func__, fn->leaf, oif); rt0 = fn->rr_ptr;if (!rt0)
@@ -431,7 +431,7 @@ static struct rt6_info *rt6_select(struct fib6_node *fn, int oif, int strict) }RT6_TRACE ("%s() => %p\n" , - __FUNCTION__, match); + __func__, match); net = rt0->rt6i_dev->nd_net;return (match ? match : net->ipv6.ip6_null_entry);
net/ipv6/tcp_ipv6.c +4 -4
@@ -753,7 +753,7 @@ static int tcp_v6_do_calc_md5_hash(char *md5_hash, struct tcp_md5sig_key *key, hp =tcp_get_md5sig_pool ();if (!hp) { -printk (KERN_WARNING "%s(): hash pool not found...\n" , __FUNCTION__); +printk (KERN_WARNING "%s(): hash pool not found...\n" , __func__); goto clear_hash_noput; } bp = &hp->md5_blk.ip6;
@@ -793,17 +793,17 @@ static int tcp_v6_do_calc_md5_hash(char *md5_hash, struct tcp_md5sig_key *key,/* Now store the hash into the packet */ err =crypto_hash_init (desc);if (err) { -printk (KERN_WARNING "%s(): hash_init failed\n" , __FUNCTION__); +printk (KERN_WARNING "%s(): hash_init failed\n" , __func__); goto clear_hash; } err =crypto_hash_update (desc, sg, nbytes);if (err) { -printk (KERN_WARNING "%s(): hash_update failed\n" , __FUNCTION__); +printk (KERN_WARNING "%s(): hash_update failed\n" , __func__); goto clear_hash; } err =crypto_hash_final (desc, md5_hash);if (err) { -printk (KERN_WARNING "%s(): hash_final failed\n" , __FUNCTION__); +printk (KERN_WARNING "%s(): hash_final failed\n" , __func__); goto clear_hash; }
net/irda/af_irda.c +89 -89
688 lines not on this page · raw message
net/irda/discovery.c +2 -2
@@ -110,7 +110,7 @@ void irlmp_add_discovery_log(hashbin_t *cachelog, hashbin_t *log) {discovery_t *discovery; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);/* * If log is missing this means that IrLAP was unable to perform the
@@ -157,7 +157,7 @@ void irlmp_expire_discoveries(hashbin_t *log, __u32 saddr, int force)int i =0 ;/* How many we expired */ IRDA_ASSERT(log != NULL, return;); -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);spin_lock_irqsave (&log->hb_spinlock, flags);
net/irda/ircomm/ircomm_core.c +23 -23
184 lines not on this page · raw message
net/irda/ircomm/ircomm_event.c +6 -6
@@ -108,7 +108,7 @@ static int ircomm_state_idle(struct ircomm_cb *self, IRCOMM_EVENT event,ircomm_connect_indication (self, skb, info);break ;default : -IRDA_DEBUG (4 ,"%s(), unknown event: %s\n" , __FUNCTION__ , +IRDA_DEBUG (4 ,"%s(), unknown event: %s\n" , __func__ , ircomm_event[event]); ret = -EINVAL ; }
@@ -138,7 +138,7 @@ static int ircomm_state_waiti(struct ircomm_cb *self, IRCOMM_EVENT event,ircomm_disconnect_indication (self, skb, info);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event: %s\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), unknown event: %s\n" , __func__ , ircomm_event[event]); ret = -EINVAL ; }
@@ -171,7 +171,7 @@ static int ircomm_state_waitr(struct ircomm_cb *self, IRCOMM_EVENT event,ircomm_disconnect_indication (self, skb, info);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event = %s\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), unknown event = %s\n" , __func__ , ircomm_event[event]); ret = -EINVAL ; }
@@ -213,7 +213,7 @@ static int ircomm_state_conn(struct ircomm_cb *self, IRCOMM_EVENT event, ret = self->issue.disconnect_request (self, skb, info);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event = %s\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), unknown event = %s\n" , __func__ , ircomm_event[event]); ret = -EINVAL ; }
@@ -229,7 +229,7 @@ static int ircomm_state_conn(struct ircomm_cb *self, IRCOMM_EVENT event,int ircomm_do_event (struct ircomm_cb *self,IRCOMM_EVENT event,struct sk_buff *skb,struct ircomm_info *info) { -IRDA_DEBUG (4 ,"%s: state=%s, event=%s\n" , __FUNCTION__ , +IRDA_DEBUG (4 ,"%s: state=%s, event=%s\n" , __func__ , ircomm_state[self->state], ircomm_event[event]);return (*state[self->state])(self, event, skb, info);
@@ -245,6 +245,6 @@ void ircomm_next_state(struct ircomm_cb *self, IRCOMM_STATE state) { self->state = state; -IRDA_DEBUG (4 ,"%s: next state=%s, service type=%d\n" , __FUNCTION__ , +IRDA_DEBUG (4 ,"%s: next state=%s, service type=%d\n" , __func__ , ircomm_state[self->state], self->service_type); }
net/irda/ircomm/ircomm_lmp.c +15 -15
@@ -53,7 +53,7 @@ static int ircomm_lmp_connect_request(struct ircomm_cb *self, {int ret =0 ; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );/* Don't forget to refcount it - should be NULL anyway */ if (userdata)
@@ -76,7 +76,7 @@ static int ircomm_lmp_connect_response(struct ircomm_cb *self,struct sk_buff *tx_skb;int ret; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );/* Any userdata supplied? */ if (userdata ==NULL ) {
@@ -111,7 +111,7 @@ static int ircomm_lmp_disconnect_request(struct ircomm_cb *self,struct sk_buff *tx_skb;int ret; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );if (!userdata) { tx_skb =alloc_skb (LMP_MAX_HEADER ,GFP_ATOMIC );
@@ -148,13 +148,13 @@ static void ircomm_lmp_flow_control(struct sk_buff *skb) cb = (struct irda_skb_cb *) skb->cb; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); line = cb->line; self = (struct ircomm_cb *)hashbin_lock_find (ircomm, line,NULL );if (!self) { -IRDA_DEBUG (2 ,"%s(), didn't find myself\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), didn't find myself\n" , __func__ );return ; }
@@ -164,7 +164,7 @@ static void ircomm_lmp_flow_control(struct sk_buff *skb) self->pkt_count--;if ((self->pkt_count <2 ) && (self->flow_status ==FLOW_STOP )) { -IRDA_DEBUG (2 ,"%s(), asking TTY to start again!\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), asking TTY to start again!\n" , __func__ ); self->flow_status =FLOW_START ;if (self->notify.flow_indication) self->notify.flow_indication(self->notify.instance,
@@ -191,7 +191,7 @@ static int ircomm_lmp_data_request(struct ircomm_cb *self, cb->line = self->line; -IRDA_DEBUG (4 ,"%s(), sending frame\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s(), sending frame\n" , __func__ );/* Don't forget to refcount it - see ircomm_tty_do_softint() */ skb_get (skb);
@@ -199,7 +199,7 @@ static int ircomm_lmp_data_request(struct ircomm_cb *self, skb->destructor = ircomm_lmp_flow_control;if ((self->pkt_count++ >7 ) && (self->flow_status ==FLOW_START )) { -IRDA_DEBUG (2 ,"%s(), asking TTY to slow down!\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), asking TTY to slow down!\n" , __func__ ); self->flow_status =FLOW_STOP ;if (self->notify.flow_indication) self->notify.flow_indication(self->notify.instance,
@@ -207,7 +207,7 @@ static int ircomm_lmp_data_request(struct ircomm_cb *self, } ret =irlmp_data_request (self->lsap, skb);if (ret) { -IRDA_ERROR ("%s(), failed\n" , __FUNCTION__); +IRDA_ERROR ("%s(), failed\n" , __func__);/* irlmp_data_request already free the packet */ }
@@ -225,7 +225,7 @@ static int ircomm_lmp_data_indication(void *instance, void *sap, {struct ircomm_cb *self = (struct ircomm_cb *) instance; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return -1;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;);
@@ -255,7 +255,7 @@ static void ircomm_lmp_connect_confirm(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *) instance;struct ircomm_info info; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -288,7 +288,7 @@ static void ircomm_lmp_connect_indication(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *)instance;struct ircomm_info info; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -318,7 +318,7 @@ static void ircomm_lmp_disconnect_indication(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *) instance;struct ircomm_info info; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -341,7 +341,7 @@ int ircomm_open_lsap(struct ircomm_cb *self) {notify_t notify; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );/* Register callbacks */ irda_notify_init (¬ify);
@@ -354,7 +354,7 @@ int ircomm_open_lsap(struct ircomm_cb *self) self->lsap =irlmp_open_lsap (LSAP_ANY , ¬ify,0 );if (!self->lsap) { -IRDA_DEBUG (0 ,"%sfailed to allocate tsap\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%sfailed to allocate tsap\n" , __func__ );return -1 ; } self->slsap_sel = self->lsap->slsap_sel;
net/irda/ircomm/ircomm_param.c +16 -16
@@ -103,7 +103,7 @@ int ircomm_param_request(struct ircomm_tty_cb *self, __u8 pi, int flush)struct sk_buff *skb;int count; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return -1;); IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;);
@@ -136,7 +136,7 @@ int ircomm_param_request(struct ircomm_tty_cb *self, __u8 pi, int flush) count =irda_param_insert (self, pi,skb_tail_pointer (skb),skb_tailroom (skb), &ircomm_param_info);if (count <0 ) { -IRDA_WARNING ("%s(), no room for parameter!\n" , __FUNCTION__); +IRDA_WARNING ("%s(), no room for parameter!\n" , __func__);spin_unlock_irqrestore (&self->spinlock, flags);return -1 ; }
@@ -144,7 +144,7 @@ int ircomm_param_request(struct ircomm_tty_cb *self, __u8 pi, int flush)spin_unlock_irqrestore (&self->spinlock, flags); -IRDA_DEBUG (2 ,"%s(), skb->len=%d\n" , __FUNCTION__ , skb->len); +IRDA_DEBUG (2 ,"%s(), skb->len=%d\n" , __func__ , skb->len);if (flush) {/* ircomm_tty_do_softint will take care of the rest */
@@ -179,10 +179,10 @@ static int ircomm_param_service_type(void *instance, irda_param_t *param, service_type &= self->service_type;if (!service_type) {IRDA_DEBUG (2 , -"%s(), No common service type to use!\n" , __FUNCTION__ ); +"%s(), No common service type to use!\n" , __func__ );return -1 ; } -IRDA_DEBUG (0 ,"%s(), services in common=%02x\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), services in common=%02x\n" , __func__ , service_type);/*
@@ -197,7 +197,7 @@ static int ircomm_param_service_type(void *instance, irda_param_t *param,else if (service_type &IRCOMM_3_WIRE_RAW ) self->settings.service_type =IRCOMM_3_WIRE_RAW ; -IRDA_DEBUG (0 ,"%s(), resulting service type=0x%02x\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), resulting service type=0x%02x\n" , __func__ , self->settings.service_type);/*
@@ -240,7 +240,7 @@ static int ircomm_param_port_type(void *instance, irda_param_t *param, int get)else { self->settings.port_type = (__u8 ) param->pv.i; -IRDA_DEBUG (0 ,"%s(), port type=%d\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), port type=%d\n" , __func__ , self->settings.port_type); }return 0 ;
@@ -260,9 +260,9 @@ static int ircomm_param_port_name(void *instance, irda_param_t *param, int get) IRDA_ASSERT(self->magic == IRCOMM_TTY_MAGIC, return -1;);if (get) { -IRDA_DEBUG (0 ,"%s(), not imp!\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s(), not imp!\n" , __func__ ); }else { -IRDA_DEBUG (0 ,"%s(), port-name=%s\n" , __FUNCTION__ , param->pv.c); +IRDA_DEBUG (0 ,"%s(), port-name=%s\n" , __func__ , param->pv.c);strncpy (self->settings.port_name, param->pv.c,32 ); }
@@ -287,7 +287,7 @@ static int ircomm_param_data_rate(void *instance, irda_param_t *param, int get)else self->settings.data_rate = param->pv.i; -IRDA_DEBUG (2 ,"%s(), data rate = %d\n" , __FUNCTION__ , param->pv.i); +IRDA_DEBUG (2 ,"%s(), data rate = %d\n" , __func__ , param->pv.i);return 0 ; }
@@ -333,7 +333,7 @@ static int ircomm_param_flow_control(void *instance, irda_param_t *param,else self->settings.flow_control = (__u8 ) param->pv.i; -IRDA_DEBUG (1 ,"%s(), flow control = 0x%02x\n" , __FUNCTION__ , (__u8 ) param->pv.i); +IRDA_DEBUG (1 ,"%s(), flow control = 0x%02x\n" , __func__ , (__u8 ) param->pv.i);return 0 ; }
@@ -359,7 +359,7 @@ static int ircomm_param_xon_xoff(void *instance, irda_param_t *param, int get) self->settings.xonxoff[1 ] = (__u16 ) param->pv.i >>8 ; } -IRDA_DEBUG (0 ,"%s(), XON/XOFF = 0x%02x,0x%02x\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), XON/XOFF = 0x%02x,0x%02x\n" , __func__ , param->pv.i &0xff , param->pv.i >>8 );return 0 ;
@@ -386,7 +386,7 @@ static int ircomm_param_enq_ack(void *instance, irda_param_t *param, int get) self->settings.enqack[1 ] = (__u16 ) param->pv.i >>8 ; } -IRDA_DEBUG (0 ,"%s(), ENQ/ACK = 0x%02x,0x%02x\n" , __FUNCTION__ , +IRDA_DEBUG (0 ,"%s(), ENQ/ACK = 0x%02x,0x%02x\n" , __func__ , param->pv.i &0xff , param->pv.i >>8 );return 0 ;
@@ -401,7 +401,7 @@ static int ircomm_param_enq_ack(void *instance, irda_param_t *param, int get)static int ircomm_param_line_status (void *instance,irda_param_t *param,int get) { -IRDA_DEBUG (2 ,"%s(), not impl.\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), not impl.\n" , __func__ );return 0 ; }
@@ -462,7 +462,7 @@ static int ircomm_param_dce(void *instance, irda_param_t *param, int get)struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) instance;__u8 dce; -IRDA_DEBUG (1 ,"%s(), dce = 0x%02x\n" , __FUNCTION__ , (__u8 ) param->pv.i); +IRDA_DEBUG (1 ,"%s(), dce = 0x%02x\n" , __func__ , (__u8 ) param->pv.i); dce = (__u8 ) param->pv.i;
@@ -474,7 +474,7 @@ static int ircomm_param_dce(void *instance, irda_param_t *param, int get)/* Check if any of the settings have changed */ if (dce &0x0f ) {if (dce &IRCOMM_DELTA_CTS ) { -IRDA_DEBUG (2 ,"%s(), CTS \n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s(), CTS \n" , __func__ ); } }
net/irda/ircomm/ircomm_ttp.c +13 -13
@@ -78,7 +78,7 @@ int ircomm_open_tsap(struct ircomm_cb *self) {notify_t notify; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ );/* Register callbacks */ irda_notify_init (¬ify);
@@ -93,7 +93,7 @@ int ircomm_open_tsap(struct ircomm_cb *self) self->tsap =irttp_open_tsap (LSAP_ANY ,DEFAULT_INITIAL_CREDIT , ¬ify);if (!self->tsap) { -IRDA_DEBUG (0 ,"%sfailed to allocate tsap\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%sfailed to allocate tsap\n" , __func__ );return -1 ; } self->slsap_sel = self->tsap->stsap_sel;
@@ -121,7 +121,7 @@ static int ircomm_ttp_connect_request(struct ircomm_cb *self, {int ret =0 ; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ );/* Don't forget to refcount it - should be NULL anyway */ if (userdata)
@@ -145,7 +145,7 @@ static int ircomm_ttp_connect_response(struct ircomm_cb *self, {int ret; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ );/* Don't forget to refcount it - should be NULL anyway */ if (userdata)
@@ -173,7 +173,7 @@ static int ircomm_ttp_data_request(struct ircomm_cb *self, IRDA_ASSERT(skb != NULL, return -1;); -IRDA_DEBUG (2 ,"%s(), clen=%d\n" , __FUNCTION__ , clen); +IRDA_DEBUG (2 ,"%s(), clen=%d\n" , __func__ , clen);/* * Insert clen field, currently we either send data only, or control
@@ -190,7 +190,7 @@ static int ircomm_ttp_data_request(struct ircomm_cb *self, ret =irttp_data_request (self->tsap, skb);if (ret) { -IRDA_ERROR ("%s(), failed\n" , __FUNCTION__); +IRDA_ERROR ("%s(), failed\n" , __func__);/* irttp_data_request already free the packet */ }
@@ -208,7 +208,7 @@ static int ircomm_ttp_data_indication(void *instance, void *sap, {struct ircomm_cb *self = (struct ircomm_cb *) instance; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return -1;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return -1;);
@@ -231,7 +231,7 @@ static void ircomm_ttp_connect_confirm(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *) instance;struct ircomm_info info; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -240,7 +240,7 @@ static void ircomm_ttp_connect_confirm(void *instance, void *sap,if (max_sdu_size !=TTP_SAR_DISABLE ) {IRDA_ERROR ("%s(), SAR not allowed for IrCOMM!\n" , - __FUNCTION__); + __func__); goto out; }
@@ -272,7 +272,7 @@ static void ircomm_ttp_connect_indication(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *)instance;struct ircomm_info info; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -281,7 +281,7 @@ static void ircomm_ttp_connect_indication(void *instance, void *sap,if (max_sdu_size !=TTP_SAR_DISABLE ) {IRDA_ERROR ("%s(), SAR not allowed for IrCOMM!\n" , - __FUNCTION__); + __func__); goto out; }
@@ -331,7 +331,7 @@ static void ircomm_ttp_disconnect_indication(void *instance, void *sap,struct ircomm_cb *self = (struct ircomm_cb *) instance;struct ircomm_info info; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
@@ -356,7 +356,7 @@ static void ircomm_ttp_flow_indication(void *instance, void *sap, {struct ircomm_cb *self = (struct ircomm_cb *) instance; -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (4 ,"%s()\n" , __func__ ); IRDA_ASSERT(self != NULL, return;); IRDA_ASSERT(self->magic == IRCOMM_MAGIC, return;);
net/irda/ircomm/ircomm_tty.c +45 -45
350 lines not on this page · raw message
net/irda/ircomm/ircomm_tty_attach.c +39 -39
294 lines not on this page · raw message
net/irda/ircomm/ircomm_tty_ioctl.c +9 -9
@@ -57,7 +57,7 @@ static void ircomm_tty_change_speed(struct ircomm_tty_cb *self)unsigned cflag, cval;int baud; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ );if (!self->tty || !self->tty->termios || !self->ircomm)return ;
@@ -94,7 +94,7 @@ static void ircomm_tty_change_speed(struct ircomm_tty_cb *self) self->settings.flow_control |=IRCOMM_RTS_CTS_IN ;/* This got me. Bummer. Jean II */ if (self->service_type ==IRCOMM_3_WIRE_RAW ) -IRDA_WARNING ("%s(), enabling RTS/CTS on link that doesn't support it (3-wire-raw)\n" , __FUNCTION__); +IRDA_WARNING ("%s(), enabling RTS/CTS on link that doesn't support it (3-wire-raw)\n" , __func__); }else { self->flags &= ~ASYNC_CTS_FLOW ; self->settings.flow_control &= ~IRCOMM_RTS_CTS_IN ;
@@ -150,7 +150,7 @@ void ircomm_tty_set_termios(struct tty_struct *tty,struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;unsigned int cflag = tty->termios->c_cflag; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); if ((cflag == old_termios->c_cflag) && (RELEVANT_IFLAG(tty->termios->c_iflag) ==
@@ -199,7 +199,7 @@ int ircomm_tty_tiocmget(struct tty_struct *tty, struct file *file)struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;unsigned int result; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ );if (tty->flags & (1 <<TTY_IO_ERROR ))return -EIO ;
@@ -224,7 +224,7 @@ int ircomm_tty_tiocmset(struct tty_struct *tty, struct file *file, {struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ );if (tty->flags & (1 <<TTY_IO_ERROR ))return -EIO ;
@@ -266,7 +266,7 @@ static int ircomm_tty_get_serial_info(struct ircomm_tty_cb *self,if (!retinfo)return -EFAULT ; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ );memset (&info,0 ,sizeof (info)); info.line = self->line;
@@ -302,7 +302,7 @@ static int ircomm_tty_set_serial_info(struct ircomm_tty_cb *self,struct serial_struct new_serial;struct ircomm_tty_cb old_state, *state; -IRDA_DEBUG (0 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s()\n" , __func__ );if (copy_from_user (&new_serial,new_info,sizeof (new_serial)))return -EFAULT ;
@@ -376,7 +376,7 @@ int ircomm_tty_ioctl(struct tty_struct *tty, struct file *file,struct ircomm_tty_cb *self = (struct ircomm_tty_cb *) tty->driver_data;int ret =0 ; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__ ); +IRDA_DEBUG (2 ,"%s()\n" , __func__ ); if ((cmd != TIOCGSERIAL) && (cmd != TIOCSSERIAL) && (cmd != TIOCSERCONFIG) && (cmd != TIOCSERGSTRUCT) &&
@@ -397,7 +397,7 @@ int ircomm_tty_ioctl(struct tty_struct *tty, struct file *file,break ;case TIOCGICOUNT : -IRDA_DEBUG (0 ,"%s(), TIOCGICOUNT not impl!\n" , __FUNCTION__ ); +IRDA_DEBUG (0 ,"%s(), TIOCGICOUNT not impl!\n" , __func__ );#if 0 save_flags (flags);cli (); cnow = driver->icount;
net/irda/irda_device.c +9 -9
@@ -90,7 +90,7 @@ static void leftover_dongle(void *arg)void irda_device_cleanup (void ) { -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);hashbin_delete (tasks, (FREE_FUNC ) __irda_task_delete);
@@ -107,7 +107,7 @@ void irda_device_set_media_busy(struct net_device *dev, int status) {struct irlap_cb *self; -IRDA_DEBUG (4 ,"%s(%s)\n" , __FUNCTION__, status ?"TRUE" :"FALSE" ); +IRDA_DEBUG (4 ,"%s(%s)\n" , __func__, status ?"TRUE" :"FALSE" ); self = (struct irlap_cb *) dev->atalk_ptr;
@@ -147,11 +147,11 @@ int irda_device_is_receiving(struct net_device *dev)struct if_irda_req req;int ret; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (2 ,"%s()\n" , __func__);if (!dev->do_ioctl) {IRDA_ERROR ("%s: do_ioctl not impl. by device driver\n" , - __FUNCTION__); + __func__);return -1 ; }
@@ -191,7 +191,7 @@ static int irda_task_kick(struct irda_task *task)int count =0 ;int timeout; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (2 ,"%s()\n" , __func__); IRDA_ASSERT(task != NULL, return -1;); IRDA_ASSERT(task->magic == IRDA_TASK_MAGIC, return -1;);
@@ -201,14 +201,14 @@ static int irda_task_kick(struct irda_task *task) timeout = task->function (task);if (count++ >100 ) {IRDA_ERROR ("%s: error in task handler!\n" , - __FUNCTION__); + __func__);irda_task_delete (task);return TRUE; } }while ((timeout ==0 ) && (task->state !=IRDA_TASK_DONE ));if (timeout <0 ) { -IRDA_ERROR ("%s: Error executing task!\n" , __FUNCTION__); +IRDA_ERROR ("%s: Error executing task!\n" , __func__);irda_task_delete (task);return TRUE; }
@@ -241,7 +241,7 @@ static int irda_task_kick(struct irda_task *task) finished = FALSE; }else {IRDA_DEBUG (0 ,"%s(), not finished, and no timeout!\n" , - __FUNCTION__); + __func__); finished = FALSE; }
@@ -258,7 +258,7 @@ static void irda_task_timer_expired(void *data) {struct irda_task *task; -IRDA_DEBUG (2 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (2 ,"%s()\n" , __func__); task = (struct irda_task *) data;
net/irda/iriap.c +38 -38
297 lines not on this page · raw message
net/irda/iriap_event.c +19 -19
@@ -185,7 +185,7 @@ static void state_s_disconnect(struct iriap_cb *self, IRIAP_EVENT event,case IAP_LM_DISCONNECT_INDICATION :break ;default : -IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __func__, event);break ; } }
@@ -217,7 +217,7 @@ static void state_s_connecting(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_client_state (self,S_DISCONNECT );break ;default : -IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __func__, event);break ; } }
@@ -269,7 +269,7 @@ static void state_s_make_call(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_call_state (self,S_OUTSTANDING );break ;default : -IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __func__, event);break ; } }
@@ -283,7 +283,7 @@ static void state_s_make_call(struct iriap_cb *self, IRIAP_EVENT event,static void state_s_calling (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }/*
@@ -305,7 +305,7 @@ static void state_s_outstanding(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_call_state (self,S_WAIT_FOR_CALL );break ;default : -IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), Unknown event %d\n" , __func__, event);break ; } }
@@ -318,7 +318,7 @@ static void state_s_outstanding(struct iriap_cb *self, IRIAP_EVENT event,static void state_s_replying (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }/*
@@ -330,7 +330,7 @@ static void state_s_replying(struct iriap_cb *self, IRIAP_EVENT event,static void state_s_wait_for_call (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }
@@ -343,7 +343,7 @@ static void state_s_wait_for_call(struct iriap_cb *self, IRIAP_EVENT event,static void state_s_wait_active (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }/**************************************************************************
@@ -367,7 +367,7 @@ static void state_r_disconnect(struct iriap_cb *self, IRIAP_EVENT event,case IAP_LM_CONNECT_INDICATION : tx_skb =alloc_skb (LMP_MAX_HEADER ,GFP_ATOMIC );if (tx_skb ==NULL ) { -IRDA_WARNING ("%s: unable to malloc!\n" , __FUNCTION__); +IRDA_WARNING ("%s: unable to malloc!\n" , __func__);return ; }
@@ -386,7 +386,7 @@ static void state_r_disconnect(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_r_connect_state (self,R_RECEIVING );break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event %d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), unknown event %d\n" , __func__, event);break ; } }
@@ -397,7 +397,7 @@ static void state_r_disconnect(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_call (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);switch (event) {case IAP_LM_DISCONNECT_INDICATION :
@@ -406,7 +406,7 @@ static void state_r_call(struct iriap_cb *self, IRIAP_EVENT event,iriap_next_r_connect_state (self,R_WAITING );break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __func__);break ; } }
@@ -421,13 +421,13 @@ static void state_r_call(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_waiting (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }static void state_r_wait_active (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), Not implemented\n" , __func__); }/*
@@ -439,7 +439,7 @@ static void state_r_wait_active(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_receiving (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__);switch (event) {case IAP_RECV_F_LST :
@@ -448,7 +448,7 @@ static void state_r_receiving(struct iriap_cb *self, IRIAP_EVENT event,iriap_call_indication (self, skb);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __func__);break ; } }
@@ -462,7 +462,7 @@ static void state_r_receiving(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_execute (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (4 ,"%s()\n" , __FUNCTION__); +IRDA_DEBUG (4 ,"%s()\n" , __func__); IRDA_ASSERT(skb != NULL, return;); IRDA_ASSERT(self != NULL, return;);
@@ -483,7 +483,7 @@ static void state_r_execute(struct iriap_cb *self, IRIAP_EVENT event,irlmp_data_request (self->lsap, skb);break ;default : -IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __FUNCTION__); +IRDA_DEBUG (0 ,"%s(), unknown event!\n" , __func__);break ; } }
@@ -491,7 +491,7 @@ static void state_r_execute(struct iriap_cb *self, IRIAP_EVENT event,static void state_r_returning (struct iriap_cb *self,IRIAP_EVENT event,struct sk_buff *skb) { -IRDA_DEBUG (0 ,"%s(), event=%d\n" , __FUNCTION__, event); +IRDA_DEBUG (0 ,"%s(), event=%d\n" , __func__, event);switch (event) {case IAP_RECV_F_LST :
net/irda/irias_object.c +22 -22
29 lines not on this page · raw message
net/irda/irlan/irlan_client.c +24 -24
48 lines not on this page · raw message
net/irda/irlan/irlan_client_event.c +32 -32
64 lines not on this page · raw message
net/irda/irlan/irlan_common.c +36 -36
72 lines not on this page · raw message
net/irda/irlap.c +28 -28
56 lines not on this page · raw message
net/irda/irlap_event.c +61 -61
122 lines not on this page · raw message
net/irda/irlap_frame.c +37 -37
74 lines not on this page · raw message
net/irda/irlmp.c +56 -56
112 lines not on this page · raw message
net/irda/irlmp_event.c +47 -47
94 lines not on this page · raw message
net/irda/irttp.c +54 -54
108 lines not on this page · raw message
net/irda/parameters.c +21 -21
42 lines not on this page · raw message
net/sunrpc/clnt.c +22 -22
44 lines not on this page · raw message
The rest of this diff is not shown. View the raw message.
Signature · 1 line
1.5.4.GIT
Part of the diff is not shown here. View the raw message.
Re: [PATCH] net: replace remaining __FUNCTION__ occurrences
From: Harvey Harrison <[email protected]>
Date: Wed, 05 Mar 2008 19:11:09 -0800
Quoted 3 lines
__FUNCTION__is gcc-specific, use__func__Signed-off-by Harvey Harrison <[email protected]>
Applied, thanks Harvey.