Received: by 10.192.245.15 with SMTP id i15csp1208289imn; Sun, 11 Mar 2018 08:24:21 -0700 (PDT) X-Google-Smtp-Source: AG47ELtxaficyN+GxrscpZp3ea1D1JC1zga84yfiFXaNxf+8ks/bQIgvavIDnf5oXCxyoJXCDAzf X-Received: by 10.98.41.134 with SMTP id p128mr5080616pfp.120.1520781861266; Sun, 11 Mar 2018 08:24:21 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1520781861; cv=none; d=google.com; s=arc-20160816; b=st6LltnfEQ827f1xuhABpPrIsPP4Qz1MROA7AhhoYdevlZ7jsNJtYyiwHIp5DF8snW 1gL1urt+f60cy7MtRQjwnTVhgglvHe2RLMGN9yZy3g1t3xqObeUdRz4MuNd6Vmvnzued MGlDyg8Urv/0ed//hzYuo281u7QZOs90hTT3cVw8lGMihge4Re+dhugLg/r3e6XxuBq6 anzIRGjv+YhVFPLGNXNVM8Rrhe9qWE6rXuWlNQ13EHMU+LzUjqRdkLWUiJcPKdXZIp2o +ihyikiAIHP1F3W1sqcyz1//PaRAlGOBYeEZ46DoTE8Uaz4XXMjIU4HsNuPlVSJHrBle IMpw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:content-transfer-encoding :content-language:in-reply-to:mime-version:user-agent:date :message-id:references:cc:to:from:subject:arc-authentication-results; bh=e+uXcjr/3W7zVaClX+Tku4Xsey8LVkwhYJTuGhsMpFs=; b=npRBfl1xatlI6V6CvLqKtOahUE1X1pjrY/T8llAkl1HhcVIA7SU+K2cw9A3MHrZQz6 GTkhxp7unv69vHxJ2IfmUqrBrVdzBVeQxVvoqzUl9mR5q1ltkn6j++7vThiZh58Z3LtQ veksUbLVEyrDNRKRz2NKa7NloP8q4yvwp4cNGxw4iQBfGmug/+SVW67LZgZssJvg8jDD lKk11hqRhCL1BBwDtS+krIqQKbCVENzZ7N8dkE9Mqyz2qU4asybVZKZ925rhJEM/D6mF dXasGcSfN4QXsKSQ4hol3NeX323gW2+K1wzdpvuL7GbUJi1QbKJV5CRHym53hvcTDoEd iPvA== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id s3-v6si4405644plb.4.2018.03.11.08.24.06; Sun, 11 Mar 2018 08:24:21 -0700 (PDT) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org; dmarc=fail (p=QUARANTINE sp=NONE dis=NONE) header.from=sourceforge.net Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S932294AbeCKPWx (ORCPT + 99 others); Sun, 11 Mar 2018 11:22:53 -0400 Received: from mout.web.de ([212.227.17.11]:58855 "EHLO mout.web.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S932137AbeCKPWu (ORCPT ); Sun, 11 Mar 2018 11:22:50 -0400 Received: from [192.168.1.2] ([77.182.27.43]) by smtp.web.de (mrweb101 [213.165.67.124]) with ESMTPSA (Nemesis) id 0MBTQo-1eljfH24oA-00AXlg; Sun, 11 Mar 2018 16:22:37 +0100 Subject: [PATCH 7/9] um/drivers/vector_user: Adjust an error message in user_init_tap_fds() From: SF Markus Elfring To: user-mode-linux-devel@lists.sourceforge.net, Anton Ivanov , Jeff Dike , Richard Weinberger Cc: user-mode-linux-user@lists.sourceforge.net, kernel-janitors@vger.kernel.org, LKML References: Message-ID: <04d337d2-a2db-a5c8-e056-4eb51a3882b3@users.sourceforge.net> Date: Sun, 11 Mar 2018 16:22:36 +0100 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:52.0) Gecko/20100101 Thunderbird/52.6.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: en-GB Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K0:dNI4VHlg5hPBMbbZIiIiD+r0mHSvBylT2SrSFWChGqZMuOYAQre KfcqEQ/kH8A45JWB8E2iiyUSieYBZDxCBiqyuaYvUVk64rvM2Qf4WXmziqAleq24EqgBfv6 eqdaVHGgmiHVBZSIAz7p9ShwELZUrExaCnP4lzw9K6La7tbMV4Z76Ft9aiA/UOlO1tOzQ1f K9UHsquJZqTbLyoIcqz2g== X-UI-Out-Filterresults: notjunk:1;V01:K0:nzd4sV8/mPY=:+Xj6RjEYktBM6sohBeMqUG wOn6/mO6bx+Ky8ShDrqR0MJx1SMImKoQEn8SmrGHUHXkwSWdhDRIR7HZ+LXZe1tiVvzPv3HjV KkrvLbFf5ihGSiidDv+s4YOyWCrdzN5ihRT7EAHA0Qv6Bs/kr9wHJ1/SSCcBKFKxoqXrCT1Os mvWJ/uhPSwuT/xkWluVPRYVd3C7kFsyrTcfuMaK8xEkg015h64CkihBLAlRz1vpyuJUhdTfWv VFLvVQBUdPhPBo72YLt/F1oWaSC7j8hK5MbfsZmI19njk0/xWLigs9JLxNQR7zt7lYj4vL16u L1P2IBKH0KSydNgZBJ2n74UdmFOmvUpfJH5wSBu70SKolHbBovSbudLukCeoEhPwRADs807GA T8y05gB2ejXmxzewyDzp8GGhf8T0zoe7MPr7Titg51xELi7i82CkktA5kWbKeP6/KLmyS5Kq9 /KVICJburAKIbFOSjwn0O+Zp1PZwO/XYh10PDr8SR2VmDG4kk9VAMLKlGuKgTo/KseHcYrMqD 6oQFyChM9zXhgTWCk/yMnej+s/qegpblMES/ch5CN+8ayaqhjgmdF8rVWgUFZIStVb3D1UDgP 5zWQCDxcaLxzqVAf921c6e94Ubak61m5XfQCUp5g+Q5U2gBw32CIdEN6xigL8udM5ve4mktY8 OCGhnxX3qhQoXY2kPKHKA4PxVHH/1RCTNF2RYleYJlcX5WmR6e6NWzI1OE3v2jLm/yOVIzHMd Bfd+ZyZMjq1nLGYgCaK1DFeoResezvI9ro6zxXUWa1uWwUdGJarckKQPHmHA9wyOuyagROyZl QavUKFIphmYzFbNVrbeQ6e8Gx8kLRQrNytUeBzEGFMQQVjTYIo= Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Markus Elfring 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 --- 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