From 7da5d106c7400fc02b0b5bee1b565b07895f5132 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Uwe=20Kleine-K=C3=B6nig?= Date: Tue, 1 Jul 2025 11:54:00 +0200 Subject: [PATCH] fdtput: Fix documentation about existing nodes MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit The documentation claims that `-c` would "Create nodes if they don't already exist". This is true, but suggests that trying to create a node that already exists is not an error. fdtput however errors out in that case. Similar `fdtput -d` errors out when called for a non-existing node. Drop the "if they [don't] already exist" to make that clearer. Signed-off-by: Uwe Kleine-König Signed-off-by: David Gibson --- fdtput.c | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/fdtput.c b/fdtput.c index c2fecf4..825640c 100644 --- a/fdtput.c +++ b/fdtput.c @@ -389,8 +389,8 @@ static struct option const usage_long_opts[] = { USAGE_COMMON_LONG_OPTS, }; static const char * const usage_opts_help[] = { - "Create nodes if they don't already exist", - "Delete nodes (and any subnodes) if they already exist", + "Create nodes", + "Delete nodes (and any subnodes)", "Delete properties if they already exist", "Automatically create nodes as needed for the node path", "Type of data",