From patchwork Tue Jul 24 22:15:40 2018 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Geoff Levand X-Patchwork-Id: 948885 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 41Zt5n6jz9z9s3q for ; Wed, 25 Jul 2018 08:17:49 +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="vVxsD9oG"; 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 41Zt5n57BYzDrGC for ; Wed, 25 Jul 2018 08:17:49 +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="vVxsD9oG"; 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 Authentication-Results: lists.ozlabs.org; dkim=pass (2048-bit key; unprotected) header.d=infradead.org header.i=@infradead.org header.b="vVxsD9oG"; dkim-atps=neutral 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 41Zt3P5jvpzDrHr for ; Wed, 25 Jul 2018 08:15:45 +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=gRdUZSOasiygTPZbIqe4O7vAjcJApdS+lbz8eNJNXZI=; b=vVxsD9oGTmMWErVcZV+WIgRA1 AsCthfr+2WrPPl6G9V5YELh681LtrTas79HrNgSj0ZFP7rdqSL93rM9HXLzpmwmXPsSLekLWehEb4 +oiY0OidZWwS/DhY3BnU0rvbeYQb3KTdbP7WoepNtNpFgVsYYB0qQWCsnTU9h7+J1MUMDl6ZZZpbl MIx0rKGCHhkxxxVG2Yto1x6Sp1bKYGvwuVgTnCURnCIzS1KVh/Hw2Dj4aMzGzv7UArBVx3xwzwBEB I8TX7wECC5elz5/NchabTLbDjeA+SFxr0E1quP8PPL6bSFVMwddkpEKYqJutAWwzKYKsBo46uuWwI +ZZY64rbw==; Received: from geoff by merlin.infradead.org with local (Exim 4.90_1 #2 (Red Hat Linux)) id 1fi5am-0004jO-KH; Tue, 24 Jul 2018 22:15:40 +0000 Message-Id: <4d1da7e478db1abbaeab0a3f6ca22164c737d00a.1532469861.git.geoff@infradead.org> In-Reply-To: References: From: Geoff Levand Patch-Date: Tue, 24 Jul 2018 15:03:16 -0700 Subject: [PATCH v1 08/30] discover: Add some debug print messages To: Samuel Mendoza-Jonas Date: Tue, 24 Jul 2018 22:15:40 +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: Ge Song , 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 f24f948..ecd7b4d 100644 --- a/discover/device-handler.c +++ b/discover/device-handler.c @@ -522,6 +522,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;