mirror of
https://github.com/torvalds/linux.git
synced 2024-11-23 04:31:50 +00:00
drivers/misc: 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>
This commit is contained in:
parent
eecd58536a
commit
6e574195b7
@ -96,7 +96,7 @@ static inline void do_exec_command(struct service_processor *sp)
|
||||
{
|
||||
char tsbuf[32];
|
||||
|
||||
dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf));
|
||||
dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
|
||||
|
||||
if (ibmasm_send_i2o_message(sp)) {
|
||||
sp->current_command->status = IBMASM_CMD_FAILED;
|
||||
@ -119,7 +119,7 @@ void ibmasm_exec_command(struct service_processor *sp, struct command *cmd)
|
||||
unsigned long flags;
|
||||
char tsbuf[32];
|
||||
|
||||
dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf));
|
||||
dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
|
||||
|
||||
spin_lock_irqsave(&sp->lock, flags);
|
||||
|
||||
@ -139,7 +139,7 @@ static void exec_next_command(struct service_processor *sp)
|
||||
unsigned long flags;
|
||||
char tsbuf[32];
|
||||
|
||||
dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf));
|
||||
dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
|
||||
|
||||
spin_lock_irqsave(&sp->lock, flags);
|
||||
sp->current_command = dequeue_command(sp);
|
||||
|
@ -75,9 +75,9 @@ void ibmasm_heartbeat_exit(struct service_processor *sp)
|
||||
{
|
||||
char tsbuf[32];
|
||||
|
||||
dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf));
|
||||
dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
|
||||
ibmasm_wait_for_response(sp->heartbeat, IBMASM_CMD_TIMEOUT_NORMAL);
|
||||
dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf));
|
||||
dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
|
||||
suspend_heartbeats = 1;
|
||||
command_put(sp->heartbeat);
|
||||
}
|
||||
@ -88,7 +88,7 @@ void ibmasm_receive_heartbeat(struct service_processor *sp, void *message, size
|
||||
struct dot_command_header *header = (struct dot_command_header *)cmd->buffer;
|
||||
char tsbuf[32];
|
||||
|
||||
dbg("%s:%d at %s\n", __FUNCTION__, __LINE__, get_timestamp(tsbuf));
|
||||
dbg("%s:%d at %s\n", __func__, __LINE__, get_timestamp(tsbuf));
|
||||
if (suspend_heartbeats)
|
||||
return;
|
||||
|
||||
|
@ -75,7 +75,7 @@ ioc4_register_submodule(struct ioc4_submodule *is)
|
||||
printk(KERN_WARNING
|
||||
"%s: IOC4 submodule %s probe failed "
|
||||
"for pci_dev %s",
|
||||
__FUNCTION__, module_name(is->is_owner),
|
||||
__func__, module_name(is->is_owner),
|
||||
pci_name(idd->idd_pdev));
|
||||
}
|
||||
}
|
||||
@ -102,7 +102,7 @@ ioc4_unregister_submodule(struct ioc4_submodule *is)
|
||||
printk(KERN_WARNING
|
||||
"%s: IOC4 submodule %s remove failed "
|
||||
"for pci_dev %s.\n",
|
||||
__FUNCTION__, module_name(is->is_owner),
|
||||
__func__, module_name(is->is_owner),
|
||||
pci_name(idd->idd_pdev));
|
||||
}
|
||||
}
|
||||
@ -282,7 +282,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
||||
if ((ret = pci_enable_device(pdev))) {
|
||||
printk(KERN_WARNING
|
||||
"%s: Failed to enable IOC4 device for pci_dev %s.\n",
|
||||
__FUNCTION__, pci_name(pdev));
|
||||
__func__, pci_name(pdev));
|
||||
goto out;
|
||||
}
|
||||
pci_set_master(pdev);
|
||||
@ -292,7 +292,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
||||
if (!idd) {
|
||||
printk(KERN_WARNING
|
||||
"%s: Failed to allocate IOC4 data for pci_dev %s.\n",
|
||||
__FUNCTION__, pci_name(pdev));
|
||||
__func__, pci_name(pdev));
|
||||
ret = -ENODEV;
|
||||
goto out_idd;
|
||||
}
|
||||
@ -307,7 +307,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
||||
printk(KERN_WARNING
|
||||
"%s: Unable to find IOC4 misc resource "
|
||||
"for pci_dev %s.\n",
|
||||
__FUNCTION__, pci_name(idd->idd_pdev));
|
||||
__func__, pci_name(idd->idd_pdev));
|
||||
ret = -ENODEV;
|
||||
goto out_pci;
|
||||
}
|
||||
@ -316,7 +316,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
||||
printk(KERN_WARNING
|
||||
"%s: Unable to request IOC4 misc region "
|
||||
"for pci_dev %s.\n",
|
||||
__FUNCTION__, pci_name(idd->idd_pdev));
|
||||
__func__, pci_name(idd->idd_pdev));
|
||||
ret = -ENODEV;
|
||||
goto out_pci;
|
||||
}
|
||||
@ -326,7 +326,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
||||
printk(KERN_WARNING
|
||||
"%s: Unable to remap IOC4 misc region "
|
||||
"for pci_dev %s.\n",
|
||||
__FUNCTION__, pci_name(idd->idd_pdev));
|
||||
__func__, pci_name(idd->idd_pdev));
|
||||
ret = -ENODEV;
|
||||
goto out_misc_region;
|
||||
}
|
||||
@ -372,7 +372,7 @@ ioc4_probe(struct pci_dev *pdev, const struct pci_device_id *pci_id)
|
||||
printk(KERN_WARNING
|
||||
"%s: IOC4 submodule 0x%s probe failed "
|
||||
"for pci_dev %s.\n",
|
||||
__FUNCTION__, module_name(is->is_owner),
|
||||
__func__, module_name(is->is_owner),
|
||||
pci_name(idd->idd_pdev));
|
||||
}
|
||||
}
|
||||
@ -406,7 +406,7 @@ ioc4_remove(struct pci_dev *pdev)
|
||||
printk(KERN_WARNING
|
||||
"%s: IOC4 submodule 0x%s remove failed "
|
||||
"for pci_dev %s.\n",
|
||||
__FUNCTION__, module_name(is->is_owner),
|
||||
__func__, module_name(is->is_owner),
|
||||
pci_name(idd->idd_pdev));
|
||||
}
|
||||
}
|
||||
@ -418,7 +418,7 @@ ioc4_remove(struct pci_dev *pdev)
|
||||
printk(KERN_WARNING
|
||||
"%s: Unable to get IOC4 misc mapping for pci_dev %s. "
|
||||
"Device removal may be incomplete.\n",
|
||||
__FUNCTION__, pci_name(idd->idd_pdev));
|
||||
__func__, pci_name(idd->idd_pdev));
|
||||
}
|
||||
release_mem_region(idd->idd_bar0, sizeof(struct ioc4_misc_regs));
|
||||
|
||||
|
@ -961,7 +961,7 @@ static int sony_nc_resume(struct acpi_device *device)
|
||||
ret = acpi_callsetfunc(sony_nc_acpi_handle, *item->acpiset,
|
||||
item->value, NULL);
|
||||
if (ret < 0) {
|
||||
printk("%s: %d\n", __FUNCTION__, ret);
|
||||
printk("%s: %d\n", __func__, ret);
|
||||
break;
|
||||
}
|
||||
}
|
||||
@ -1453,7 +1453,7 @@ static struct sonypi_eventtypes type4_events[] = {
|
||||
udelay(1); \
|
||||
if (!n) \
|
||||
dprintk("command failed at %s : %s (line %d)\n", \
|
||||
__FILE__, __FUNCTION__, __LINE__); \
|
||||
__FILE__, __func__, __LINE__); \
|
||||
}
|
||||
|
||||
static u8 sony_pic_call1(u8 dev)
|
||||
|
Loading…
Reference in New Issue
Block a user