From mboxrd@z Thu Jan 1 00:00:00 1970 Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1753598AbdJSVi3 (ORCPT ); Thu, 19 Oct 2017 17:38:29 -0400 Received: from mail-pf0-f193.google.com ([209.85.192.193]:54521 "EHLO mail-pf0-f193.google.com" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1751411AbdJSViX (ORCPT ); Thu, 19 Oct 2017 17:38:23 -0400 X-Google-Smtp-Source: ABhQp+TxPvUDqm1EkkbSGLV+3W/CDk21mYczhb5beyt7BAbOF8OhX/4gu0HXBqmlPP3pOjsxygaUHw== From: frowand.list@gmail.com To: Rob Herring , pantelis.antoniou@konsulko.com, Pantelis Antoniou Cc: devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: [PATCH] of: overlay: make pr_err() string unique Date: Thu, 19 Oct 2017 14:38:11 -0700 Message-Id: <1508449091-9506-1-git-send-email-frowand.list@gmail.com> X-Mailer: git-send-email 1.9.1 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org From: Frank Rowand 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 --- And yes, I was looking in the wrong file and not understanding how this error could have been triggered by the example provided. :-) drivers/of/overlay.c | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/drivers/of/overlay.c b/drivers/of/overlay.c index f5fce0fea40b..c150abb9049d 100644 --- a/drivers/of/overlay.c +++ b/drivers/of/overlay.c @@ -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; } -- Frank Rowand