of: overlay: make pr_err() string unique
authorFrank Rowand <frank.rowand@sony.com>
Thu, 19 Oct 2017 21:38:11 +0000 (14:38 -0700)
committerRob Herring <robh@kernel.org>
Thu, 19 Oct 2017 22:15:09 +0000 (17:15 -0500)
The same error string occurs in drivers/of/resolver.c.  Change
the error here to more precisely describe this case, and avoid
the possible confusion of looking in the wrong source location
to understand the cause of an error.

Signed-off-by: Frank Rowand <frank.rowand@sony.com>
Signed-off-by: Rob Herring <robh@kernel.org>
drivers/of/overlay.c

index f5fce0f..c150abb 100644 (file)
@@ -598,7 +598,7 @@ static int init_overlay_changeset(struct overlay_changeset *ovcs,
                fragment->target = of_find_node_by_path("/__symbols__");
 
                if (!fragment->target) {
-                       pr_err("no symbols in root of device tree.\n");
+                       pr_err("symbols in overlay, but not in live tree\n");
                        ret = -EINVAL;
                        goto err_free_fragments;
                }