From patchwork Fri Jun 10 19:04:52 2016 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Hans de Goede X-Patchwork-Id: 633924 X-Patchwork-Delegate: hdegoede@redhat.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 3rRBT116zKz9syB for ; Sat, 11 Jun 2016 05:05:25 +1000 (AEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 1A987A7670; Fri, 10 Jun 2016 21:05:08 +0200 (CEST) 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 1ETyhITJUCG4; Fri, 10 Jun 2016 21:05:07 +0200 (CEST) Received: from theia.denx.de (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id ACA2BA768F; Fri, 10 Jun 2016 21:05:07 +0200 (CEST) Received: from localhost (localhost [127.0.0.1]) by theia.denx.de (Postfix) with ESMTP id 3FC87A7729 for ; Fri, 10 Jun 2016 21:05:06 +0200 (CEST) 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 BIvtnFEbYuFT for ; Fri, 10 Jun 2016 21:05:06 +0200 (CEST) X-policyd-weight: NOT_IN_SBL_XBL_SPAMHAUS=-1.5 NOT_IN_SPAMCOP=-1.5 NOT_IN_BL_NJABL=-1.5 (only DNSBL check requested) Received: from mx1.redhat.com (mx1.redhat.com [209.132.183.28]) by theia.denx.de (Postfix) with ESMTPS id 0953EA768F for ; Fri, 10 Jun 2016 21:05:00 +0200 (CEST) Received: from int-mx10.intmail.prod.int.phx2.redhat.com (int-mx10.intmail.prod.int.phx2.redhat.com [10.5.11.23]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mx1.redhat.com (Postfix) with ESMTPS id 4E52C916BB; Fri, 10 Jun 2016 19:04:59 +0000 (UTC) Received: from shalem.localdomain.com (vpn1-6-191.ams2.redhat.com [10.36.6.191]) by int-mx10.intmail.prod.int.phx2.redhat.com (8.14.4/8.14.4) with ESMTP id u5AJ4tg6012284; Fri, 10 Jun 2016 15:04:57 -0400 From: Hans de Goede To: Ian Campbell , Simon Glass Date: Fri, 10 Jun 2016 21:04:52 +0200 Message-Id: <1465585493-11078-1-git-send-email-hdegoede@redhat.com> X-Scanned-By: MIMEDefang 2.68 on 10.5.11.23 X-Greylist: Sender IP whitelisted, not delayed by milter-greylist-4.5.16 (mx1.redhat.com [10.5.110.29]); Fri, 10 Jun 2016 19:04:59 +0000 (UTC) Cc: u-boot@lists.denx.de Subject: [U-Boot] [PATCH 1/2] tinyprintf: Add vprintf implementation X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.15 Precedence: list List-Id: U-Boot discussion List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , MIME-Version: 1.0 Errors-To: u-boot-bounces@lists.denx.de Sender: "U-Boot" vprintf is used by panic() which is used in various SPL paths on some boards. Signed-off-by: Hans de Goede Reviewed-by: Simon Glass --- lib/tiny-printf.c | 5 +++++ 1 file changed, 5 insertions(+) diff --git a/lib/tiny-printf.c b/lib/tiny-printf.c index 3c65fc9..451f4f7 100644 --- a/lib/tiny-printf.c +++ b/lib/tiny-printf.c @@ -130,6 +130,11 @@ abort: return 0; } +int vprintf(const char *fmt, va_list va) +{ + return _vprintf(fmt, va, putc); +} + int printf(const char *fmt, ...) { va_list va;