From mboxrd@z Thu Jan 1 00:00:00 1970 From: Anatolij Gustschin Date: Fri, 17 Oct 2014 22:23:58 +0200 Subject: [U-Boot] [PATCH 02/11] fdt: Report failure of ft_board_setup() In-Reply-To: <1413360341-25828-2-git-send-email-sjg@chromium.org> References: <1413360341-25828-1-git-send-email-sjg@chromium.org> <1413360341-25828-2-git-send-email-sjg@chromium.org> Message-ID: <20141017222358.1079a9d5@crub> List-Id: MIME-Version: 1.0 Content-Type: text/plain; charset="us-ascii" Content-Transfer-Encoding: 7bit To: u-boot@lists.denx.de Hi Simon, On Wed, 15 Oct 2014 02:05:32 -0600 Simon Glass wrote: ... > + else if (strncmp(argv[1], "boa", 3) == 0) { > + int err = ft_board_setup(working_fdt, gd->bd); > + > + if (err) { > + printf("Failed to add board information to FDT: %s\n", > + fdt_strerror(err)); ft_board_setup() can also remove nodes or properties, so a message like "Failed to update board information in FDT: %s\n" would be better here. Thanks, Anatolij