staging: unisys: visorbus: visorbus_main.c: use __func__ over hardcoded name
authorZachary Dremann <dremann@gmail.com>
Mon, 17 Jul 2017 20:16:41 +0000 (16:16 -0400)
committerGreg Kroah-Hartman <gregkh@linuxfoundation.org>
Tue, 18 Jul 2017 06:48:40 +0000 (08:48 +0200)
As reported by checkpatch.pl, replace hard-coded usage of the current
function's name in format string with usage of __func__.

Signed-off-by: Zachary Dremann <dremann@gmail.com>
Signed-off-by: David Kershner <david.kershner@unisys.com>
Reviewed-by: David Binder <david.binder@unisys.com>
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
drivers/staging/unisys/visorbus/visorbus_main.c

index f884b59..2c79673 100644 (file)
@@ -1039,7 +1039,7 @@ visorbus_create_instance(struct visor_device *dev)
 err_debugfs_dir:
        debugfs_remove_recursive(dev->debugfs_dir);
        kfree(hdr_info);
-       dev_err(&dev->device, "visorbus_create_instance failed: %d\n", err);
+       dev_err(&dev->device, "%s failed: %d\n", __func__, err);
        return err;
 }