From patchwork Fri May 10 02:17:50 2013 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Julien Grall X-Patchwork-Id: 16816 Return-Path: X-Original-To: linaro@patches.linaro.org Delivered-To: linaro@patches.linaro.org Received: from mail-vc0-f200.google.com (mail-vc0-f200.google.com [209.85.220.200]) by ip-10-151-82-157.ec2.internal (Postfix) with ESMTPS id 542BA238F7 for ; Fri, 10 May 2013 02:19:24 +0000 (UTC) Received: by mail-vc0-f200.google.com with SMTP id m16sf4430606vca.7 for ; Thu, 09 May 2013 19:18:59 -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=VtPQ74rOC1+L7fmMODOa5ZraWT3yHS8Wn6PIirZ9Nh0=; b=Im3oFLLCF81KhfqLf5d6N5qwMZefM+3O/50WuApdlVmFo5sfM963nO5HOou2TT/thK qtsjFs/VIvkdhRIEg+FVCrnRR/Sj5nQp0GRAVDuV0pe+C9aoLS6kk1gShuJEr78t6V1S W9fgYzzVtgHsM95GAkpEOM0et/TUKu0Z+RIb9I7D7eBb0iYM1uC6O4+5GhkoiR8iJlYa zl+JeBE2DMxEo+/WajlSIJUka19P1bBO4TqMf8IpRHpmOA+zCWnYqVTk6VemC23k3s3L I1qJ6n/81mWEAKnH/KBGGthugTB9CoxHJeOMDydVJmF3QOTQABYSPpkwBfV3MNPmvNoT eSMA== X-Received: by 10.236.14.233 with SMTP id d69mr7174469yhd.51.1368152339597; Thu, 09 May 2013 19:18:59 -0700 (PDT) MIME-Version: 1.0 X-BeenThere: patchwork-forward@linaro.org Received: by 10.49.116.227 with SMTP id jz3ls1878891qeb.43.gmail; Thu, 09 May 2013 19:18:59 -0700 (PDT) X-Received: by 10.52.94.131 with SMTP id dc3mr5065530vdb.102.1368152339427; Thu, 09 May 2013 19:18:59 -0700 (PDT) Received: from mail-vb0-x22a.google.com (mail-vb0-x22a.google.com [2607:f8b0:400c:c02::22a]) by mx.google.com with ESMTPS id og3si337831vcb.52.2013.05.09.19.18.59 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:18:59 -0700 (PDT) Received-SPF: neutral (google.com: 2607:f8b0:400c:c02::22a 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::22a; Received: by mail-vb0-f42.google.com with SMTP id w16so3167724vbf.29 for ; Thu, 09 May 2013 19:18:59 -0700 (PDT) X-Received: by 10.58.173.36 with SMTP id bh4mr9887785vec.9.1368152339308; Thu, 09 May 2013 19:18:59 -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.220.217.15 with SMTP id hk15csp36197vcb; Thu, 9 May 2013 19:18:58 -0700 (PDT) X-Received: by 10.195.13.47 with SMTP id ev15mr21430070wjd.18.1368152338622; Thu, 09 May 2013 19:18:58 -0700 (PDT) Received: from mail-we0-x22d.google.com (mail-we0-x22d.google.com [2a00:1450:400c:c03::22d]) by mx.google.com with ESMTPS id nj19si169313wic.109.2013.05.09.19.18.58 for (version=TLSv1 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:18:58 -0700 (PDT) Received-SPF: neutral (google.com: 2a00:1450:400c:c03::22d is neither permitted nor denied by best guess record for domain of julien.grall@linaro.org) client-ip=2a00:1450:400c:c03::22d; Received: by mail-we0-f173.google.com with SMTP id q54so3479948wes.32 for ; Thu, 09 May 2013 19:18:58 -0700 (PDT) X-Received: by 10.194.79.135 with SMTP id j7mr1128437wjx.48.1368152338150; Thu, 09 May 2013 19:18:58 -0700 (PDT) Received: from belegaer.uk.xensource.com. (firewall.ctxuk.citrix.com. [46.33.159.2]) by mx.google.com with ESMTPSA id dj7sm597075wib.6.2013.05.09.19.18.56 for (version=TLSv1.2 cipher=ECDHE-RSA-RC4-SHA bits=128/128); Thu, 09 May 2013 19:18:57 -0700 (PDT) From: Julien Grall To: xen-devel@lists.xen.org Cc: Stefano.Stabellini@eu.citrix.com, ian.campbell@citrix.com, patches@linaro.org, Julien Grall Subject: [PATCH V3 04/41] xen/arm: Bump early printk internal buffer to 512 Date: Fri, 10 May 2013 03:17:50 +0100 Message-Id: <1368152307-598-5-git-send-email-julien.grall@linaro.org> X-Mailer: git-send-email 1.7.10.4 In-Reply-To: <1368152307-598-1-git-send-email-julien.grall@linaro.org> References: <1368152307-598-1-git-send-email-julien.grall@linaro.org> X-Gm-Message-State: ALoCoQmReGHSn5mI4NXw06Tg37gcMfG4IVUp5FsEBS7WGaa5TG/goX7xDn4bTHBmdQyq+POS1j8H X-Original-Sender: julien.grall@linaro.org X-Original-Authentication-Results: mx.google.com; spf=neutral (google.com: 2607:f8b0:400c:c02::22a 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 Acked-by: Ian Campbell Changes in v2: - Move buffer to a static variable --- 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); }