From patchwork Wed May 8 02:33:24 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16739 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-qa0-f72.google.com (mail-qa0-f72.google.com [209.85.216.72]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 6D0FF238FD for ; Wed, 8 May 2013 02:34:59 +0000 (UTC) Received: by mail-qa0-f72.google.com with SMTP id i13sf1899477qae.11 for ; Tue, 07 May 2013 19:34:39 -0700 (PDT) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=20120113; h=x-received:mime-version:x-beenthere:x-received:received-spf :x-received:x-forwarded-to:x-forwarded-for:delivered-to:x-received :received-spf:x-received:from:to:cc:subject:date:message-id:x-mailer :in-reply-to:references:x-gm-message-state:x-original-sender :x-original-authentication-results:precedence:mailing-list:list-id :x-google-group-id:list-post:list-help:list-archive:list-unsubscribe; bh=Lg30YTjedZWU2XznPKTcBNTZoUGTccUJZNHnduQC4PI=; b=mGge8iNiQthZkMaSds6p5XoHviMKTGAJCPDCz33bsKbn1bmIp2xPr9ND6HLcOlg+01 tNZ1GLj1Nq3KZzbOPNcXTdJ+yzyte3kklqsRI8joShgN71FNfHeSx4PY1QuXKpqwpJ9b PITx6+tpklKVOgYhz7AfDGvklGLZ1RtFcMVZKL2wZuTJnuR1oinvymOI0cMQN8lhGavU OdQoSutXs0PxRzsQwu6hqaJ1/7VAEZaZLUKIbMPnLfRQ6rEfGhSrj2hdbiUAc7KWqa4/ CpTRxYd3U0BDkXvyMJlV9nMHuGOwbqvEY5zL1ksEU7EtlAGlZRmRWyIEeSXaJCTu7p79 xHcg== X-Received: by 10.224.165.130 with SMTP id i2mr6519459qay.2.1367980479307; Tue, 07 May 2013 19:34:39 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.94.44 with SMTP id cz12ls726781qeb.67.gmail; Tue, 07 May 2013 19:34:39 -0700 (PDT) X-Received: by 10.52.69.109 with SMTP id d13mr2689357vdu.75.1367980479063; Tue, 07 May 2013 19:34:39 -0700 (PDT) Received: from mail-vb0-x229.google.com (mail-vb0-x229.google.com [2607:f8b0:400c:c02::229]) by mx.google.com with ESMTPS id ir6si14132385vdb.117.2013.05.07.19.34.39 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:39 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) client-ip=2607:f8b0:400c:c02::229; Received: by mail-vb0-f41.google.com with SMTP id w8so1152237vbf.14 for ; Tue, 07 May 2013 19:34:38 -0700 (PDT) X-Received: by 10.52.69.109 with SMTP id d13mr2689352vdu.75.1367980478937; Tue, 07 May 2013 19:34:38 -0700 (PDT) X-Forwarded-To: patchwork-forward@linaro.org X-Forwarded-For: patch@linaro.org patchwork-forward@linaro.org Delivered-To: patches@linaro.org Received: by 10.58.127.98 with SMTP id nf2csp130994veb; Tue, 7 May 2013 19:34:38 -0700 (PDT) X-Received: by 10.180.37.133 with SMTP id y5mr6363595wij.20.1367980476328; Tue, 07 May 2013 19:34:36 -0700 (PDT) Received: from mail-wg0-x22e.google.com (mail-wg0-x22e.google.com [2a00:1450:400c:c00::22e]) by mx.google.com with ESMTPS id cz4si8109791wjb.188.2013.05.07.19.34.35 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:36 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c00::22e is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c00::22e; Received: by mail-wg0-f46.google.com with SMTP id n12so1312283wgh.1 for ; Tue, 07 May 2013 19:34:35 -0700 (PDT) X-Received: by 10.180.86.38 with SMTP id m6mr18421219wiz.25.1367980475882; Tue, 07 May 2013 19:34:35 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id v6sm6823630wiy.11.2013.05.07.19.34.34 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Tue, 07 May 2013 19:34:35 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, patches@linaro.org, ian.campbell@citrix.com, Julien Grall Subject: [PATCH V2 04/33] xen/arm: Bump early printk internal buffer to 512 Date: Wed, 8 May 2013 03:33:24 +0100 Message-Id: <4158432939256f1d15c78372cf8a53cc7ddfddcd.1367979526.git.julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: References: X-Gm-Message-State: ALoCoQk5zF8NhJLX0uoU6gEZb8mu9PSvrxffPJHLfxCytgciAZeGO5wWAe8spM0cO39S9Kify5bD X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::229 is neither permitted nor denied by best guess record for domain of patch+caf_=patchwork-forward=linaro.org@linaro.org) smtp.mail=patch+caf_=patchwork-forward=linaro.org@linaro.org Precedence: list Mailing-list: list patchwork-forward@linaro.org; contact patchwork-forward+owners@linaro.org List-ID: X-Google-Group-Id: 836684582541 List-Post: , List-Help: , List-Archive: List-Unsubscribe: , When debug is enabled in device tree code, some lines are bigger than 80 characters. Signed-off-by: Julien Grall Changes in v2: - Move buffer to a static variable Acked-by: Ian Campbell --- xen/arch/arm/early_printk.c | 5 +++-- 1 file changed, 3 insertions(+), 2 deletions(-) diff --git a/xen/arch/arm/early_printk.c b/xen/arch/arm/early_printk.c index bdf4c0e..0f99a43 100644 --- a/xen/arch/arm/early_printk.c +++ b/xen/arch/arm/early_printk.c @@ -29,6 +29,9 @@ void __init early_putch(char c) *r = c; } +/* Early printk buffer */ +static char __initdata buf[512]; + static void __init early_puts(const char *s) { while (*s != '\0') { @@ -41,8 +44,6 @@ static void __init early_puts(const char *s) static void __init early_vprintk(const char *fmt, va_list args) { - char buf[80]; - vsnprintf(buf, sizeof(buf), fmt, args); early_puts(buf); }