Linux kernel mirror (for testing) git.kernel.org/pub/scm/linux/kernel/git/torvalds/linux.git
kernel os linux

serial: replace remaining __FUNCTION__ occurrences

__FUNCTION__ is gcc-specific, use __func__

Signed-off-by: Harvey Harrison <harvey.harrison@gmail.com>
Signed-off-by: Andrew Morton <akpm@linux-foundation.org>
Signed-off-by: Linus Torvalds <torvalds@linux-foundation.org>

authored by

Harvey Harrison and committed by
Linus Torvalds
71cc2c21 bf9d8929

+54 -54
+2 -2
drivers/serial/68360serial.c
··· 1247 1247 #ifdef modem_control 1248 1248 unsigned char control, status; 1249 1249 1250 - if (serial_paranoia_check(info, tty->name, __FUNCTION__)) 1250 + if (serial_paranoia_check(info, tty->name, __func__)) 1251 1251 return -ENODEV; 1252 1252 1253 1253 if (tty->flags & (1 << TTY_IO_ERROR)) ··· 1278 1278 ser_info_t *info = (ser_info_t *)tty->driver_data; 1279 1279 unsigned int arg; 1280 1280 1281 - if (serial_paranoia_check(info, tty->name, __FUNCTION__)) 1281 + if (serial_paranoia_check(info, tty->name, __func__)) 1282 1282 return -ENODEV; 1283 1283 1284 1284 if (tty->flags & (1 << TTY_IO_ERROR))
+1 -1
drivers/serial/8250_early.c
··· 156 156 port->membase = ioremap(port->mapbase, 64); 157 157 if (!port->membase) { 158 158 printk(KERN_ERR "%s: Couldn't ioremap 0x%llx\n", 159 - __FUNCTION__, 159 + __func__, 160 160 (unsigned long long)port->mapbase); 161 161 return -ENOMEM; 162 162 }
+2 -2
drivers/serial/bfin_5xx.c
··· 762 762 break; 763 763 default: 764 764 printk(KERN_ERR "%s: word lengh not supported\n", 765 - __FUNCTION__); 765 + __func__); 766 766 } 767 767 768 768 if (termios->c_cflag & CSTOPB) ··· 1029 1029 1030 1030 *baud = get_sclk() / (16*(dll | dlh << 8)); 1031 1031 } 1032 - pr_debug("%s:baud = %d, parity = %c, bits= %d\n", __FUNCTION__, *baud, *parity, *bits); 1032 + pr_debug("%s:baud = %d, parity = %c, bits= %d\n", __func__, *baud, *parity, *bits); 1033 1033 } 1034 1034 #endif 1035 1035
+1 -1
drivers/serial/cpm_uart/cpm_uart_core.c
··· 1117 1117 1118 1118 line = cpm_uart_id2nr(idx); 1119 1119 if(line < 0) { 1120 - printk(KERN_ERR"%s(): port %d is not registered", __FUNCTION__, idx); 1120 + printk(KERN_ERR"%s(): port %d is not registered", __func__, idx); 1121 1121 return -EINVAL; 1122 1122 } 1123 1123
+4 -4
drivers/serial/crisv10.c
··· 1788 1788 1789 1789 if (info->recv_cnt + recvl > 65536) { 1790 1790 printk(KERN_CRIT 1791 - "%s: Too much pending incoming serial data! Dropping %u bytes.\n", __FUNCTION__, recvl); 1791 + "%s: Too much pending incoming serial data! Dropping %u bytes.\n", __func__, recvl); 1792 1792 return 0; 1793 1793 } 1794 1794 ··· 1801 1801 append_recv_buffer(info, buffer); 1802 1802 1803 1803 if (!(buffer = alloc_recv_buffer(SERIAL_DESCR_BUF_SIZE))) 1804 - panic("%s: Failed to allocate memory for receive buffer!\n", __FUNCTION__); 1804 + panic("%s: Failed to allocate memory for receive buffer!\n", __func__); 1805 1805 1806 1806 descr->buf = virt_to_phys(buffer->buffer); 1807 1807 ··· 1925 1925 /* Set up the receiving descriptors */ 1926 1926 for (i = 0; i < SERIAL_RECV_DESCRIPTORS; i++) { 1927 1927 if (!(buffer = alloc_recv_buffer(SERIAL_DESCR_BUF_SIZE))) 1928 - panic("%s: Failed to allocate memory for receive buffer!\n", __FUNCTION__); 1928 + panic("%s: Failed to allocate memory for receive buffer!\n", __func__); 1929 1929 1930 1930 descr[i].ctrl = d_int; 1931 1931 descr[i].buf = virt_to_phys(buffer->buffer); ··· 4519 4519 4520 4520 if (request_irq(SERIAL_IRQ_NBR, ser_interrupt, 4521 4521 IRQF_SHARED | IRQF_DISABLED, "serial ", driver)) 4522 - panic("%s: Failed to request irq8", __FUNCTION__); 4522 + panic("%s: Failed to request irq8", __func__); 4523 4523 4524 4524 #endif 4525 4525 #endif /* CONFIG_SVINTO_SIM */
+18 -18
drivers/serial/ioc3_serial.c
··· 52 52 #define DPRINT_CONFIG(_x...) ; 53 53 //#define DPRINT_CONFIG(_x...) printk _x 54 54 #define NOT_PROGRESS() ; 55 - //#define NOT_PROGRESS() printk("%s : fails %d\n", __FUNCTION__, __LINE__) 55 + //#define NOT_PROGRESS() printk("%s : fails %d\n", __func__, __LINE__) 56 56 57 57 /* number of characters we want to transmit to the lower level at a time */ 58 58 #define MAX_CHARS 256 ··· 445 445 sbbr_h = &idd->vma->sbbr_h; 446 446 ring_pci_addr = (unsigned long __iomem)port->ip_dma_ringbuf; 447 447 DPRINT_CONFIG(("%s: ring_pci_addr 0x%p\n", 448 - __FUNCTION__, (void *)ring_pci_addr)); 448 + __func__, (void *)ring_pci_addr)); 449 449 450 450 writel((unsigned int)((uint64_t) ring_pci_addr >> 32), sbbr_h); 451 451 writel((unsigned int)ring_pci_addr | BUF_SIZE_BIT, sbbr_l); ··· 593 593 594 594 DPRINT_CONFIG(("%s: line %d baud %d byte_size %d stop %d parenb %d " 595 595 "parodd %d\n", 596 - __FUNCTION__, ((struct uart_port *)port->ip_port)->line, 596 + __func__, ((struct uart_port *)port->ip_port)->line, 597 597 baud, byte_size, stop_bits, parenb, parodd)); 598 598 599 599 if (set_baud(port, baud)) ··· 871 871 default: 872 872 case PROTO_RS232: 873 873 /* Clear the appropriate GIO pin */ 874 - DPRINT_CONFIG(("%s: rs232\n", __FUNCTION__)); 874 + DPRINT_CONFIG(("%s: rs232\n", __func__)); 875 875 writel(0, (&port->ip_idd->vma->gppr[0] 876 876 + hooks->rs422_select_pin)); 877 877 break; 878 878 879 879 case PROTO_RS422: 880 880 /* Set the appropriate GIO pin */ 881 - DPRINT_CONFIG(("%s: rs422\n", __FUNCTION__)); 881 + DPRINT_CONFIG(("%s: rs422\n", __func__)); 882 882 writel(1, (&port->ip_idd->vma->gppr[0] 883 883 + hooks->rs422_select_pin)); 884 884 break; ··· 988 988 } 989 989 baud = uart_get_baud_rate(the_port, new_termios, old_termios, 990 990 MIN_BAUD_SUPPORTED, MAX_BAUD_SUPPORTED); 991 - DPRINT_CONFIG(("%s: returned baud %d for line %d\n", __FUNCTION__, baud, 991 + DPRINT_CONFIG(("%s: returned baud %d for line %d\n", __func__, baud, 992 992 the_port->line)); 993 993 994 994 if (!the_port->fifosize) ··· 1026 1026 DPRINT_CONFIG(("%s : port 0x%p line %d cflag 0%o " 1027 1027 "config_port(baud %d data %d stop %d penable %d " 1028 1028 " parity %d), notification 0x%x\n", 1029 - __FUNCTION__, (void *)port, the_port->line, cflag, baud, 1029 + __func__, (void *)port, the_port->line, cflag, baud, 1030 1030 new_data, new_stop, new_parity_enable, new_parity, 1031 1031 the_port->ignore_status_mask)); 1032 1032 ··· 1919 1919 struct pci_dev *pdev = idd->pdev; 1920 1920 1921 1921 DPRINT_CONFIG(("%s: attach pdev 0x%p - card_ptr 0x%p\n", 1922 - __FUNCTION__, pdev, (void *)card_ptr)); 1922 + __func__, pdev, (void *)card_ptr)); 1923 1923 1924 1924 if (!card_ptr) 1925 1925 return -ENODEV; ··· 1933 1933 port->ip_port = the_port; 1934 1934 1935 1935 DPRINT_CONFIG(("%s: attach the_port 0x%p / port 0x%p [%d/%d]\n", 1936 - __FUNCTION__, (void *)the_port, (void *)port, 1936 + __func__, (void *)the_port, (void *)port, 1937 1937 phys_port, ii)); 1938 1938 1939 1939 /* membase, iobase and mapbase just need to be non-0 */ ··· 1950 1950 if (uart_add_one_port(&ioc3_uart, the_port) < 0) { 1951 1951 printk(KERN_WARNING 1952 1952 "%s: unable to add port %d bus %d\n", 1953 - __FUNCTION__, the_port->line, pdev->bus->number); 1953 + __func__, the_port->line, pdev->bus->number); 1954 1954 } else { 1955 1955 DPRINT_CONFIG(("IOC3 serial port %d irq %d bus %d\n", 1956 1956 the_port->line, the_port->irq, pdev->bus->number)); ··· 2017 2017 struct ioc3_port *ports[PORTS_PER_CARD]; 2018 2018 int phys_port; 2019 2019 2020 - DPRINT_CONFIG(("%s (0x%p, 0x%p)\n", __FUNCTION__, is, idd)); 2020 + DPRINT_CONFIG(("%s (0x%p, 0x%p)\n", __func__, is, idd)); 2021 2021 2022 2022 card_ptr = kzalloc(sizeof(struct ioc3_card), GFP_KERNEL); 2023 2023 if (!card_ptr) { ··· 2067 2067 2068 2068 DPRINT_CONFIG(("%s : Port A ip_serial_regs 0x%p " 2069 2069 "ip_uart_regs 0x%p\n", 2070 - __FUNCTION__, 2070 + __func__, 2071 2071 (void *)port->ip_serial_regs, 2072 2072 (void *)port->ip_uart_regs)); 2073 2073 ··· 2082 2082 DPRINT_CONFIG(("%s : Port A ip_cpu_ringbuf 0x%p " 2083 2083 "ip_dma_ringbuf 0x%p, ip_inring 0x%p " 2084 2084 "ip_outring 0x%p\n", 2085 - __FUNCTION__, 2085 + __func__, 2086 2086 (void *)port->ip_cpu_ringbuf, 2087 2087 (void *)port->ip_dma_ringbuf, 2088 2088 (void *)port->ip_inring, ··· 2094 2094 2095 2095 DPRINT_CONFIG(("%s : Port B ip_serial_regs 0x%p " 2096 2096 "ip_uart_regs 0x%p\n", 2097 - __FUNCTION__, 2097 + __func__, 2098 2098 (void *)port->ip_serial_regs, 2099 2099 (void *)port->ip_uart_regs)); 2100 2100 ··· 2108 2108 DPRINT_CONFIG(("%s : Port B ip_cpu_ringbuf 0x%p " 2109 2109 "ip_dma_ringbuf 0x%p, ip_inring 0x%p " 2110 2110 "ip_outring 0x%p\n", 2111 - __FUNCTION__, 2111 + __func__, 2112 2112 (void *)port->ip_cpu_ringbuf, 2113 2113 (void *)port->ip_dma_ringbuf, 2114 2114 (void *)port->ip_inring, ··· 2116 2116 } 2117 2117 2118 2118 DPRINT_CONFIG(("%s : port %d [addr 0x%p] card_ptr 0x%p", 2119 - __FUNCTION__, 2119 + __func__, 2120 2120 phys_port, (void *)port, (void *)card_ptr)); 2121 2121 DPRINT_CONFIG((" ip_serial_regs 0x%p ip_uart_regs 0x%p\n", 2122 2122 (void *)port->ip_serial_regs, ··· 2127 2127 2128 2128 DPRINT_CONFIG(("%s: phys_port %d port 0x%p inring 0x%p " 2129 2129 "outring 0x%p\n", 2130 - __FUNCTION__, 2130 + __func__, 2131 2131 phys_port, (void *)port, 2132 2132 (void *)port->ip_inring, 2133 2133 (void *)port->ip_outring)); ··· 2170 2170 if ((ret = uart_register_driver(&ioc3_uart)) < 0) { 2171 2171 printk(KERN_WARNING 2172 2172 "%s: Couldn't register IOC3 uart serial driver\n", 2173 - __FUNCTION__); 2173 + __func__); 2174 2174 return ret; 2175 2175 } 2176 2176 ret = ioc3_register_submodule(&ioc3uart_submodule);
+16 -16
drivers/serial/ioc4_serial.c
··· 889 889 890 890 ring_pci_addr = (unsigned long __iomem)port->ip_dma_ringbuf; 891 891 DPRINT_CONFIG(("%s: ring_pci_addr 0x%lx\n", 892 - __FUNCTION__, ring_pci_addr)); 892 + __func__, ring_pci_addr)); 893 893 894 894 writel((unsigned int)((uint64_t)ring_pci_addr >> 32), sbbr_h); 895 895 writel((unsigned int)ring_pci_addr | IOC4_BUF_SIZE_BIT, sbbr_l); ··· 1028 1028 spin_lock_irqsave(&soft->is_ir_lock, flag); 1029 1029 printk ("%s : %d : mem 0x%p sio_ir 0x%x sio_ies 0x%x " 1030 1030 "other_ir 0x%x other_ies 0x%x mask 0x%x\n", 1031 - __FUNCTION__, __LINE__, 1031 + __func__, __LINE__, 1032 1032 (void *)mem, readl(&mem->sio_ir.raw), 1033 1033 readl(&mem->sio_ies.raw), 1034 1034 readl(&mem->other_ir.raw), ··· 1155 1155 (TOTAL_RING_BUF_SIZE - 1)) == 0)); 1156 1156 DPRINT_CONFIG(("%s : ip_cpu_ringbuf 0x%p " 1157 1157 "ip_dma_ringbuf 0x%p\n", 1158 - __FUNCTION__, 1158 + __func__, 1159 1159 (void *)port->ip_cpu_ringbuf, 1160 1160 (void *)port->ip_dma_ringbuf)); 1161 1161 port->ip_inring = RING(port, RX_0_OR_2); 1162 1162 port->ip_outring = RING(port, TX_0_OR_2); 1163 1163 } 1164 1164 DPRINT_CONFIG(("%s : port %d [addr 0x%p] control 0x%p", 1165 - __FUNCTION__, 1165 + __func__, 1166 1166 port_number, (void *)port, (void *)control)); 1167 1167 DPRINT_CONFIG((" ip_serial_regs 0x%p ip_uart_regs 0x%p\n", 1168 1168 (void *)port->ip_serial_regs, ··· 1173 1173 1174 1174 DPRINT_CONFIG(("%s: port_number %d port 0x%p inring 0x%p " 1175 1175 "outring 0x%p\n", 1176 - __FUNCTION__, 1176 + __func__, 1177 1177 port_number, (void *)port, 1178 1178 (void *)port->ip_inring, 1179 1179 (void *)port->ip_outring)); ··· 1317 1317 int spiniter = 0; 1318 1318 1319 1319 DPRINT_CONFIG(("%s: baud %d byte_size %d stop %d parenb %d parodd %d\n", 1320 - __FUNCTION__, baud, byte_size, stop_bits, parenb, parodd)); 1320 + __func__, baud, byte_size, stop_bits, parenb, parodd)); 1321 1321 1322 1322 if (set_baud(port, baud)) 1323 1323 return 1; ··· 1725 1725 } 1726 1726 baud = uart_get_baud_rate(the_port, new_termios, old_termios, 1727 1727 MIN_BAUD_SUPPORTED, MAX_BAUD_SUPPORTED); 1728 - DPRINT_CONFIG(("%s: returned baud %d\n", __FUNCTION__, baud)); 1728 + DPRINT_CONFIG(("%s: returned baud %d\n", __func__, baud)); 1729 1729 1730 1730 /* default is 9600 */ 1731 1731 if (!baud) ··· 1765 1765 DPRINT_CONFIG(("%s : port 0x%p cflag 0%o " 1766 1766 "config_port(baud %d data %d stop %d p enable %d parity %d)," 1767 1767 " notification 0x%x\n", 1768 - __FUNCTION__, (void *)port, cflag, baud, new_data, new_stop, 1768 + __func__, (void *)port, cflag, baud, new_data, new_stop, 1769 1769 new_parity_enable, new_parity, the_port->ignore_status_mask)); 1770 1770 1771 1771 if ((config_port(port, baud, /* baud */ ··· 2715 2715 2716 2716 2717 2717 DPRINT_CONFIG(("%s: attach pdev 0x%p - control 0x%p\n", 2718 - __FUNCTION__, pdev, (void *)control)); 2718 + __func__, pdev, (void *)control)); 2719 2719 2720 2720 if (!control) 2721 2721 return -ENODEV; ··· 2734 2734 port->ip_all_ports[port_type_idx] = the_port; 2735 2735 2736 2736 DPRINT_CONFIG(("%s: attach the_port 0x%p / port 0x%p : type %s\n", 2737 - __FUNCTION__, (void *)the_port, 2737 + __func__, (void *)the_port, 2738 2738 (void *)port, 2739 2739 port_type == PROTO_RS232 ? "rs232" : "rs422")); 2740 2740 ··· 2752 2752 if (uart_add_one_port(u_driver, the_port) < 0) { 2753 2753 printk(KERN_WARNING 2754 2754 "%s: unable to add port %d bus %d\n", 2755 - __FUNCTION__, the_port->line, pdev->bus->number); 2755 + __func__, the_port->line, pdev->bus->number); 2756 2756 } else { 2757 2757 DPRINT_CONFIG( 2758 2758 ("IOC4 serial port %d irq = %d, bus %d\n", ··· 2777 2777 int ret = 0; 2778 2778 2779 2779 2780 - DPRINT_CONFIG(("%s (0x%p, 0x%p)\n", __FUNCTION__, idd->idd_pdev, 2780 + DPRINT_CONFIG(("%s (0x%p, 0x%p)\n", __func__, idd->idd_pdev, 2781 2781 idd->idd_pci_id)); 2782 2782 2783 2783 /* PCI-RT does not bring out serial connections. ··· 2806 2806 goto out2; 2807 2807 } 2808 2808 DPRINT_CONFIG(("%s : mem 0x%p, serial 0x%p\n", 2809 - __FUNCTION__, (void *)idd->idd_misc_regs, 2809 + __func__, (void *)idd->idd_misc_regs, 2810 2810 (void *)serial)); 2811 2811 2812 2812 /* Get memory for the new card */ ··· 2858 2858 } else { 2859 2859 printk(KERN_WARNING 2860 2860 "%s : request_irq fails for IRQ 0x%x\n ", 2861 - __FUNCTION__, idd->idd_pdev->irq); 2861 + __func__, idd->idd_pdev->irq); 2862 2862 } 2863 2863 ret = ioc4_attach_local(idd); 2864 2864 if (ret) ··· 2911 2911 if ((ret = uart_register_driver(&ioc4_uart_rs232)) < 0) { 2912 2912 printk(KERN_WARNING 2913 2913 "%s: Couldn't register rs232 IOC4 serial driver\n", 2914 - __FUNCTION__); 2914 + __func__); 2915 2915 return ret; 2916 2916 } 2917 2917 if ((ret = uart_register_driver(&ioc4_uart_rs422)) < 0) { 2918 2918 printk(KERN_WARNING 2919 2919 "%s: Couldn't register rs422 IOC4 serial driver\n", 2920 - __FUNCTION__); 2920 + __func__); 2921 2921 return ret; 2922 2922 } 2923 2923
+3 -3
drivers/serial/s3c2410.c
··· 1096 1096 ourport = &s3c24xx_serial_ports[probe_index]; 1097 1097 probe_index++; 1098 1098 1099 - dbg("%s: initialising port %p...\n", __FUNCTION__, ourport); 1099 + dbg("%s: initialising port %p...\n", __func__, ourport); 1100 1100 1101 1101 ret = s3c24xx_serial_init_port(ourport, info, dev); 1102 1102 if (ret < 0) 1103 1103 goto probe_err; 1104 1104 1105 - dbg("%s: adding port\n", __FUNCTION__); 1105 + dbg("%s: adding port\n", __func__); 1106 1106 uart_add_one_port(&s3c24xx_uart_drv, &ourport->port); 1107 1107 platform_set_drvdata(dev, &ourport->port); 1108 1108 ··· 1587 1587 unsigned long ucon = rd_regl(port, S3C2410_UCON); 1588 1588 1589 1589 dbg("%s: port=%p (%08lx), cfg=%p\n", 1590 - __FUNCTION__, port, port->mapbase, cfg); 1590 + __func__, port, port->mapbase, cfg); 1591 1591 1592 1592 /* ensure we don't change the clock settings... */ 1593 1593
+2 -2
drivers/serial/sa1100.c
··· 655 655 void __init sa1100_register_uart(int idx, int port) 656 656 { 657 657 if (idx >= NR_PORTS) { 658 - printk(KERN_ERR "%s: bad index number %d\n", __FUNCTION__, idx); 658 + printk(KERN_ERR "%s: bad index number %d\n", __func__, idx); 659 659 return; 660 660 } 661 661 ··· 682 682 break; 683 683 684 684 default: 685 - printk(KERN_ERR "%s: bad port number %d\n", __FUNCTION__, port); 685 + printk(KERN_ERR "%s: bad port number %d\n", __func__, port); 686 686 } 687 687 } 688 688
+1 -1
drivers/serial/sh-sci.c
··· 855 855 856 856 printk(KERN_INFO "%s: got a postchange notification " 857 857 "for cpu %d (old %d, new %d)\n", 858 - __FUNCTION__, freqs->cpu, freqs->old, freqs->new); 858 + __func__, freqs->cpu, freqs->old, freqs->new); 859 859 } 860 860 861 861 return NOTIFY_OK;
+1 -1
drivers/serial/sn_console.c
··· 839 839 840 840 if (uart_add_one_port(&sal_console_uart, &sal_console_port.sc_port) < 0) { 841 841 /* error - not sure what I'd do - so I'll do nothing */ 842 - printk(KERN_ERR "%s: unable to add port\n", __FUNCTION__); 842 + printk(KERN_ERR "%s: unable to add port\n", __func__); 843 843 } 844 844 845 845 /* when this driver is compiled in, the console initialization
+1 -1
drivers/serial/uartlite.c
··· 584 584 const unsigned int *id; 585 585 int irq, rc; 586 586 587 - dev_dbg(&op->dev, "%s(%p, %p)\n", __FUNCTION__, op, match); 587 + dev_dbg(&op->dev, "%s(%p, %p)\n", __func__, op, match); 588 588 589 589 rc = of_address_to_resource(op->node, 0, &res); 590 590 if (rc) {
+2 -2
drivers/serial/ucc_uart.c
··· 215 215 return qe_port->bd_dma_addr + (addr - qe_port->bd_virt); 216 216 217 217 /* something nasty happened */ 218 - printk(KERN_ERR "%s: addr=%p\n", __FUNCTION__, addr); 218 + printk(KERN_ERR "%s: addr=%p\n", __func__, addr); 219 219 BUG(); 220 220 return 0; 221 221 } ··· 234 234 return qe_port->bd_virt + (addr - qe_port->bd_dma_addr); 235 235 236 236 /* something nasty happened */ 237 - printk(KERN_ERR "%s: addr=%x\n", __FUNCTION__, addr); 237 + printk(KERN_ERR "%s: addr=%x\n", __func__, addr); 238 238 BUG(); 239 239 return NULL; 240 240 }