From: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> Date: Sun, 11 Mar 2018 15:10:05 +0100 Adjust an error message at the end of this function so that its name will be automatically determined as a parameter. Signed-off-by: Markus Elfring <elfring@xxxxxxxxxxxxxxxxxxxxx> --- arch/um/drivers/vector_user.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/arch/um/drivers/vector_user.c b/arch/um/drivers/vector_user.c index 4c265262a369..5e78723c34d4 100644 --- a/arch/um/drivers/vector_user.c +++ b/arch/um/drivers/vector_user.c @@ -192,7 +192,6 @@ static struct vector_fds *user_init_tap_fds(struct arglist *ifspec) } return result; tap_cleanup: - printk(UM_KERN_ERR "user_init_tap: init failed, error %d", err); if (result != NULL) { if (result->rx_fd >= 0) os_close_file(result->rx_fd); @@ -200,6 +199,8 @@ static struct vector_fds *user_init_tap_fds(struct arglist *ifspec) os_close_file(result->tx_fd); kfree(result); } + + printk(UM_KERN_ERR "%s: init failed: %d", __func__, err); return NULL; } -- 2.16.2 -- To unsubscribe from this list: send the line "unsubscribe kernel-janitors" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html