From patchwork Wed Jul 17 03:10:01 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Simon Glass X-Patchwork-Id: 259594 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Received: from theia.denx.de (theia.denx.de [85.214.87.163]) by ozlabs.org (Postfix) with ESMTP id CF6E92C0135 for ; Wed, 17 Jul 2013 13:11:49 +1000 (EST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 8018E4A025; Wed, 17 Jul 2013 05:11:38 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id l9qFnXA0+tJ3; Wed, 17 Jul 2013 05:11:38 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id D103C4A030; Wed, 17 Jul 2013 05:11:22 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 80A204A02D for ; Wed, 17 Jul 2013 05:11:06 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at theia.denx.de Received: from theia.denx.de ([127.0.0.1]) by localhost (theia.denx.de [127.0.0.1]) (amavisd-new, port 10024) with ESMTP id H3Bg0uubXYYS for ; Wed, 17 Jul 2013 05:10:50 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 BL_NJABL=ERR(-1.5) (only DNSBL check requested) Received: from mail-yh0-f74.google.com (mail-yh0-f74.google.com [209.85.213.74]) by theia.denx.de (Postfix) with ESMTPS id 96BF04A02E for ; Wed, 17 Jul 2013 05:10:24 +0200 (CEST) Received: by mail-yh0-f74.google.com with SMTP id z20so144343yhz.3 for ; Tue, 16 Jul 2013 20:10:23 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=from:to:cc:subject:date:message-id:x-mailer:in-reply-to:references :x-gm-message-state; bh=lVKIm/oF99j8btl3XgouoJVcIkXkOcqQtvo5USwauns=; b=IfHVla3z9PkfX+BCx5wNEd7aIQexKhEJrp7fK1emTNvyVQdECklUByandUmm9rn40H tubHvUq9fChZos/eogOO4BQx+DwYcx0BUk841yqxARDLG6/nsnwkD+K0Q8XxDzdGIvsP mTkJYOGM/On/CKNUZ/qPbc3E/zfcXlvLwGfPy9BTCWK5OedQr3JFZJSVDR/IWG9Cj0y+ 4TlMCeXGvyBeoVTSjfTmBdvZgmhSgGshZ2kpe+6EknUJ5ZwXmUJy7uBf1AkKyL9eYgmT pfjZecGM9fEg+tZqpiHuGwj/ljuffQ6PqCr6qN7JGssjNwTj+HW0vohIMzy8DqrlNOZc I59A== X-Received: by 10.236.116.169 with SMTP id g29mr2715307yhh.6.1374030622950; Tue, 16 Jul 2013 20:10:22 -0700 (PDT) Received: from corp2gmr1-1.hot.corp.google.com (corp2gmr1-1.hot.corp.google.com [172.24.189.92]) by gmr-mx.google.com with ESMTPS id v70si1864445yhv.3.2013.07.16.20.10.22 for (version=TLSv1.1 cipher=AES128-SHA bits=128/128); Tue, 16 Jul 2013 20:10:22 -0700 (PDT) Received: from kaka.mtv.corp.google.com (kaka.mtv.corp.google.com [172.22.72.187]) by corp2gmr1-1.hot.corp.google.com (Postfix) with ESMTP id C762631C201; Tue, 16 Jul 2013 20:10:22 -0700 (PDT) Received: by kaka.mtv.corp.google.com (Postfix, from userid 121222) id 7CE5C160850; Tue, 16 Jul 2013 20:10:22 -0700 (PDT) From: Simon Glass To: U-Boot Mailing List Date: Tue, 16 Jul 2013 20:10:01 -0700 Message-Id: <1374030601-13568-3-git-send-email-sjg@chromium.org> X-Mailer: git-send-email 1.8.3 In-Reply-To: <1374030601-13568-1-git-send-email-sjg@chromium.org> References: <1374030601-13568-1-git-send-email-sjg@chromium.org> X-Gm-Message-State: ALoCoQmNnzEFSu8fZV3neoq1wbKXqcU5/Sk5J21hFDikiBiDP15mOVWSQiTLnZRqvSra5zSGQ+1VygcszyiwRBePXY/77azkLHtZ6kj8809+gEVYzxDbh0Ecgun8nCIn7GSlg5eZZc1OC9lgvQoKysXqZcmQDJX8JUcFOK2D5l3cemiBHcDkNqJtOWkWvYWZ4RCErNF6ddga Cc: Tom Rini , Joe Hershberger Subject: [U-Boot] [PATCH 3/3] image: Display FIT timestamp when booting X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.11 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Sender: u-boot-bounces@lists.denx.de Errors-To: u-boot-bounces@lists.denx.de The timestamp is shown in fit_print_contents() but for some reason not in fit_image_print(). This seems to be an oversight, since it is the latter which is used by bootm. Add timestamp printing in this case. (There is code duplication in these two function, for looking at in a future patch). Signed-off-by: Simon Glass --- common/image-fit.c | 11 +++++++++++ 1 file changed, 11 insertions(+) diff --git a/common/image-fit.c b/common/image-fit.c index e28dd05..bbb4cad 100644 --- a/common/image-fit.c +++ b/common/image-fit.c @@ -359,6 +359,17 @@ void fit_image_print(const void *fit, int image_noffset, const char *p) else printf("%s\n", desc); + if (IMAGE_ENABLE_TIMESTAMP) { + time_t timestamp; + + ret = fit_get_timestamp(fit, 0, ×tamp); + printf("%s Created: ", p); + if (ret) + printf("unavailable\n"); + else + genimg_print_time(timestamp); + } + fit_image_get_type(fit, image_noffset, &type); printf("%s Type: %s\n", p, genimg_get_type_name(type));