From patchwork Wed Sep 6 15:55:13 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Heinrich Schuchardt X-Patchwork-Id: 810688 X-Patchwork-Delegate: trini@ti.com Return-Path: X-Original-To: incoming@patchwork.ozlabs.org Delivered-To: patchwork-incoming@bilbo.ozlabs.org Authentication-Results: ozlabs.org; spf=none (mailfrom) smtp.mailfrom=lists.denx.de (client-ip=81.169.180.215; helo=lists.denx.de; envelope-from=u-boot-bounces@lists.denx.de; receiver=) Received: from lists.denx.de (dione.denx.de [81.169.180.215]) by ozlabs.org (Postfix) with ESMTP id 3xnSq65qXbz9sNV for ; Thu, 7 Sep 2017 01:55:45 +1000 (AEST) Received: by lists.denx.de (Postfix, from userid 105) id 36D8CC21F27; Wed, 6 Sep 2017 15:55:39 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.4.0 (2014-02-07) on lists.denx.de X-Spam-Level: X-Spam-Status: No, score=-0.7 required=5.0 tests=FREEMAIL_FROM, RCVD_IN_DNSWL_LOW, RCVD_IN_MSPIKE_H3, RCVD_IN_MSPIKE_WL autolearn=unavailable autolearn_force=no version=3.4.0 Received: from lists.denx.de (localhost [IPv6:::1]) by lists.denx.de (Postfix) with ESMTP id 8E123C21E11; Wed, 6 Sep 2017 15:55:37 +0000 (UTC) Received: by lists.denx.de (Postfix, from userid 105) id 6476FC21E11; Wed, 6 Sep 2017 15:55:35 +0000 (UTC) Received: from mout.gmx.net (mout.gmx.net [212.227.15.15]) by lists.denx.de (Postfix) with ESMTPS id 1E82CC21DC4 for ; Wed, 6 Sep 2017 15:55:35 +0000 (UTC) Received: from laptop1.fritz.box ([94.197.121.76]) by mail.gmx.com (mrgmx003 [212.227.17.184]) with ESMTPSA (Nemesis) id 0MX1dc-1dvDDa0heO-00W1pf; Wed, 06 Sep 2017 17:55:33 +0200 From: Heinrich Schuchardt To: Tom Rini Date: Wed, 6 Sep 2017 17:55:13 +0200 Message-Id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fSaS0elfL fcewg+6xKErhkD4k6i6YaV1UNhScNTJELE647vBUN6UumWC3BHphhJvo6RDRCT/6VtnTaUuo0 CmUv739mh0hGjmwjvVtiR3HNqeouQ== Cc: Vagrant Cascadian , u-boot@lists.denx.de, Heinrich Schuchardt Subject: [U-Boot] [PATCH 1/1] vsprintf: vsprintf does not have parameter size X-BeenThere: u-boot@lists.denx.de X-Mailman-Version: 2.1.18 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" The inline documentation of vsprintf mentions a parameter size which does not exist in the function declaration. int vsprintf(char *buf, const char *fmt, va_list args); Signed-off-by: Heinrich Schuchardt --- include/vsprintf.h | 4 +--- 1 file changed, 1 insertion(+), 3 deletions(-) diff --git a/include/vsprintf.h b/include/vsprintf.h index e38076d22d..490c96ca6d 100644 --- a/include/vsprintf.h +++ b/include/vsprintf.h @@ -112,12 +112,10 @@ int sprintf(char *buf, const char *fmt, ...) * Format a string and place it in a buffer (va_list version) * * @param buf The buffer to place the result into - * @param size The size of the buffer, including the trailing null space * @param fmt The format string to use * @param args Arguments for the format string * @return the number of characters which have been written into - * the @buf not including the trailing '\0'. If @size is == 0 the function - * returns 0. + * the @buf not including the trailing '\0'. * * If you're not already dealing with a va_list consider using scnprintf(). *