From mboxrd@z Thu Jan 1 00:00:00 1970 Return-path: Received: from metis.ext.pengutronix.de ([2001:67c:670:201:290:27ff:fe1d:cc33]) by bombadil.infradead.org with esmtps (Exim 4.85_2 #1 (Red Hat Linux)) id 1bn04s-00020e-9e for barebox@lists.infradead.org; Thu, 22 Sep 2016 09:13:58 +0000 From: Sascha Hauer Date: Thu, 22 Sep 2016 11:13:34 +0200 Message-Id: <1474535615-28133-1-git-send-email-s.hauer@pengutronix.de> List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit Sender: "barebox" Errors-To: barebox-bounces+u.kleine-koenig=pengutronix.de@lists.infradead.org Subject: [PATCH 1/2] nv: Allow full variable name in nvvar_add To: Barebox List As a convenience for users allow to pass the full name, including the leading "nv.", to nvvar_add(). Signed-off-by: Sascha Hauer --- common/globalvar.c | 3 +++ 1 file changed, 3 insertions(+) diff --git a/common/globalvar.c b/common/globalvar.c index a2555cf..6466d1d 100644 --- a/common/globalvar.c +++ b/common/globalvar.c @@ -240,6 +240,9 @@ int nvvar_add(const char *name, const char *value) { int ret; + if (!strncmp(name, "nv.", 3)) + name += 3; + ret = __nvvar_add(name, value); if (ret) return ret; -- 2.8.1 _______________________________________________ barebox mailing list barebox@lists.infradead.org http://lists.infradead.org/mailman/listinfo/barebox