Prefer C99's __func__ over GCC's __FUNCTION__.

This commit is contained in:
Stefan Farfeleder 2004-09-22 17:16:04 +00:00
parent e60b9f5130
commit e7b80a8e24
4 changed files with 4 additions and 5 deletions

View File

@ -1579,7 +1579,7 @@ pdq_initialize(
p = (pdq_uint8_t *) PDQ_OS_MEMALLOC_CONTIG(contig_bytes); p = (pdq_uint8_t *) PDQ_OS_MEMALLOC_CONTIG(contig_bytes);
if (p == NULL) if (p == NULL)
printf("%s() - PDQ_OS_MEMALLOC_CONTIG() failed!\n", __FUNCTION__); printf("%s() - PDQ_OS_MEMALLOC_CONTIG() failed!\n", __func__);
if (p != NULL) { if (p != NULL) {
pdq_physaddr_t physaddr = PDQ_OS_VA_TO_BUSPA(pdq, p); pdq_physaddr_t physaddr = PDQ_OS_VA_TO_BUSPA(pdq, p);

View File

@ -653,7 +653,7 @@ arc_ifattach(ifp, lla)
#else #else
ifa = ifaddr_byindex(ifp->if_index); ifa = ifaddr_byindex(ifp->if_index);
#endif #endif
KASSERT(ifa != NULL, ("%s: no lladdr!\n", __FUNCTION__)); KASSERT(ifa != NULL, ("%s: no lladdr!\n", __func__));
sdl = (struct sockaddr_dl *)ifa->ifa_addr; sdl = (struct sockaddr_dl *)ifa->ifa_addr;
sdl->sdl_type = IFT_ARCNET; sdl->sdl_type = IFT_ARCNET;
sdl->sdl_alen = ifp->if_addrlen; sdl->sdl_alen = ifp->if_addrlen;

View File

@ -1243,7 +1243,7 @@ ip6_fw_init(void)
default_rule.fw_flg |= IPV6_FW_F_IN | IPV6_FW_F_OUT; default_rule.fw_flg |= IPV6_FW_F_IN | IPV6_FW_F_OUT;
if (check_ip6fw_struct(&default_rule) == NULL || if (check_ip6fw_struct(&default_rule) == NULL ||
add_entry6(&ip6_fw_chain, &default_rule)) add_entry6(&ip6_fw_chain, &default_rule))
panic(__FUNCTION__); panic(__func__);
printf("IPv6 packet filtering initialized, "); printf("IPv6 packet filtering initialized, ");
#ifdef IPV6FIREWALL_DEFAULT_TO_ACCEPT #ifdef IPV6FIREWALL_DEFAULT_TO_ACCEPT

View File

@ -636,8 +636,7 @@ viasmb_quick(device_t dev, u_char slave, int how)
VIAPM_OUTB(SMBHADDR, slave | LSB); VIAPM_OUTB(SMBHADDR, slave | LSB);
break; break;
default: default:
panic("%s: unknown QUICK command (%x)!", __FUNCTION__, panic("%s: unknown QUICK command (%x)!", __func__, how);
how);
} }
VIAPM_OUTB(SMBHCTRL, SMBHCTRL_START | SMBHCTRL_QUICK); VIAPM_OUTB(SMBHCTRL, SMBHCTRL_START | SMBHCTRL_QUICK);