From patchwork Mon Jul 9 21:21:55 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 941683 Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from lists.ozlabs.org (lists.ozlabs.org [203.11.71.2]) (using TLSv1.2 with cipher ADH-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ozlabs.org (Postfix) with ESMTPS id 41PdZw2LDmz9s1R for ; Tue, 10 Jul 2018 07:22:32 +1000 (AEST) Authentication-Results: ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="xyzl+SwV"; dkim-atps=neutral Received: from lists.ozlabs.org (lists.ozlabs.org [IPv6:2401:3900:2:1::3]) by lists.ozlabs.org (Postfix) with ESMTP id 41PdZw0Fn4zDrc9 for ; Tue, 10 Jul 2018 07:22:32 +1000 (AEST) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Authentication-Results: lists.ozlabs.org; dkim=fail reason="signature verification failed" (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="xyzl+SwV"; dkim-atps=neutral X-Original-To: Petitboot@lists.ozlabs.org Delivered-To: Petitboot@lists.ozlabs.org Authentication-Results: lists.ozlabs.org; spf=none (mailfrom) smtp.mailfrom=infradead.org (client-ip=2001:8b0:10b:1231::1; helo=merlin.infradead.org; envelope-from=geoff@infradead.org; receiver=) Authentication-Results: lists.ozlabs.org; dmarc=none (p=none dis=none) header.from=infradead.org Received: from merlin.infradead.org (merlin.infradead.org [IPv6:2001:8b0:10b:1231::1]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by lists.ozlabs.org (Postfix) with ESMTPS id 41PdZJ3H1wzDrL7 for ; Tue, 10 Jul 2018 07:21:59 +1000 (AEST) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=infradead.org; s=merlin.20170209; h=Date:Cc:To:Subject:From:References: In-Reply-To:Message-Id:Sender:Reply-To:MIME-Version:Content-Type: Content-Transfer-Encoding:Content-ID:Content-Description:Resent-Date: Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID:List-Id: List-Help:List-Unsubscribe:List-Subscribe:List-Post:List-Owner:List-Archive; bh=oLClZUzWl/niO3ayXGF+KG+A/+vU9zhl3u+80MWyG6c=; b=xyzl+SwVGDJpT7Ky4Krq9zFTw ZveCBYOxSk8Tua1qQHjVtSYG894I7NXG/uDgekX+7CiGnzUh9xfWxLnnxEk9pSRkNrQLgAX3pOqVC 118PM6j+YNMs/WUF15WGHZ3nK+rBu1jqygZE8D4HYSB99G6q7dGhxxgL2fbl/3rxYoMVYGSr6fRAj DD3eJysrr+Jqxu1wK9RS4/V/WSvZJObcZ6u9obWWp7kMID1cd6bbs0WY3QDq2kb2sSVthZNCQFnwR e3A6DmBV637Gilgzi62uOHKlVaIANGT7HBuLupGv57IMWOPQE1lQLgIKOfOxKVRLXsCw10r8Fe12B ISTy2c3WA==; Received: from geoff by merlin.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fcdbX-0001Ri-Mz; Mon, 09 Jul 2018 21:21:55 +0000 Message-Id: In-Reply-To: References: From: Geoff Levand Patch-Date: Mon, 9 Jul 2018 13:57:53 -0700 Subject: [PATCH v1 07/10] discover: Add some debug print messages To: Samuel Mendoza-Jonas Date: Mon, 09 Jul 2018 21:21:55 +0000 X-BeenThere: petitboot@lists.ozlabs.org X-Mailman-Version: 2.1.27 Precedence: list List-Id: Petitboot bootloader development List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Petitboot@lists.ozlabs.org MIME-Version: 1.0 Errors-To: petitboot-bounces+incoming=patchwork.ozlabs.org@lists.ozlabs.org Sender: "Petitboot" To aid in debugging print some additinal discover messages to the log. Signed-off-by: Geoff Levand --- discover/device-handler.c | 1 + discover/platform.c | 1 + 2 files changed, 2 insertions(+) diff --git a/discover/device-handler.c b/discover/device-handler.c index 7ad7440..75974fb 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -520,6 +520,7 @@ void device_handler_remove(struct device_handler *handler, void device_handler_status(struct device_handler *handler, struct status *status) { + pb_debug("%s: %s\n", __func__, status->message); discover_server_notify_boot_status(handler->server, status); } diff --git a/discover/platform.c b/discover/platform.c index cc6306f..e69c6f6 100644 --- a/discover/platform.c +++ b/discover/platform.c @@ -166,6 +166,7 @@ int platform_init(void *ctx) platform_ctx = talloc_new(ctx); for (p = &__start_platforms; p < &__stop_platforms; p++) { + pb_debug("%s: Try platform %s\n", __func__, (*p)->name); if (!(*p)->probe(*p, platform_ctx)) continue; platform = *p;