Groups | Search | Server Info | Keyboard shortcuts | Login | Register [http] [https] [nntp] [nntps]


Groups > linux.kernel > #1676327

[PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl.

From Quytelda Kahja <quytelda@tamalin.org>
Newsgroups linux.kernel
Subject [PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl.
Date 2017-06-28 04:50 +0200
Message-ID <tXbdg-Yp-1@gated-at.bofh.it> (permalink)
Organization linux.* mail to news gateway

Show all headers | View raw


Replace the literal function name "visorbus_create_instance" with the format
specifier "%s" so it can be dynamically filled by the __func__ macro.

Signed-off-by: Quytelda Kahja <quytelda@tamalin.org>
---
 drivers/staging/unisys/visorbus/visorbus_main.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/drivers/staging/unisys/visorbus/visorbus_main.c b/drivers/staging/unisys/visorbus/visorbus_main.c
index 1c785dd19ddd..1c6dc3a3e64a 100644
--- a/drivers/staging/unisys/visorbus/visorbus_main.c
+++ b/drivers/staging/unisys/visorbus/visorbus_main.c
@@ -1030,7 +1030,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;
 }
 
-- 
2.13.2

Back to linux.kernel | Previous | NextNext in thread | Find similar | Unroll thread


Thread

[PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl. Quytelda Kahja <quytelda@tamalin.org> - 2017-06-28 04:50 +0200
  Re: [PATCH] Staging: unisys: visorbus: Fix coding style warning from checkpatch.pl. Frans Klaver <fransklaver@gmail.com> - 2017-06-28 10:40 +0200
  Re: [PATCH] Staging: unisys: visorbus: Fix coding style warning from  checkpatch.pl. Greg KH <gregkh@linuxfoundation.org> - 2017-06-29 16:40 +0200

csiph-web