Received: by 10.223.185.116 with SMTP id b49csp2189805wrg; Thu, 15 Feb 2018 07:51:56 -0800 (PST) X-Google-Smtp-Source: AH8x2256AVn+WUUv4xcNc/T4JLoiiAp4FS3JvmZwl30WpeRtJQYf8R8dL9mBgxzNbXkCSNLgFz1L X-Received: by 10.98.194.201 with SMTP id w70mr52582pfk.188.1518709916006; Thu, 15 Feb 2018 07:51:56 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1518709915; cv=none; d=google.com; s=arc-20160816; b=gqHVY+kkyeRSVFBmYjGv2F66jr3Vhkyx2tcki3HNMOE6BRfapUrHZnBGg3C4B6AYj/ 1hpzU6UHxU2hDfVyUCR106CFC3HM9hkUGMyL5dr0Mf4jSRHGNVbge7Ju1WELqU0cG+ox mjt4DtXo0cbtgwxHjoWF3URXvPLuFwECvS5MvZgAvhgVZJjMHF9kCcm+DJOUXHya3/uu wODZP6gPqZuHy6dCfnErHBVzmbfE/Qk3iY1EmOLYxs+lQbSdO2h3U81rZ/UajliBZnWG GDc1GH2i/Ocj/F0FiB5CT3EmsHR1C+4UYR1x5Twk7lwR4dTlc806FmCmt26JIWaouV7h bzHw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:mime-version:user-agent:references :in-reply-to:message-id:date:subject:cc:to:from :arc-authentication-results; bh=WPKBKLJunbz808X0/Z1c2s0dgsO+h0Z1nPbDn8r5EOw=; b=hgeRNNq3TMmTpv+OD3HES0Xyyzm5SG6ShGNmOD2GNCimf8V3HIW1xOZSZopKx0MUVf ltytL98T7FLzp6gdovKnx4kJvgPMEQKBotZ50cdvVYG8Gj8dCCvw/jIEmGt1gVz8ErLa ooCHUz7MjeVpIV6fdzIROrjQfdYN54BwxpMwgWtY0bbd4PA3S+NnS+RULikFRXF8dgGQ rnJBmnMZvHXLNqHvgW+YI+CYO+QFgv7DDcgyWMXpRtq7NuiqQ0+PjrDAqhz9rl9+/2OB V7U0xlTgcxSsZNc/ozghHV9yDWaXiq4thtodIFImENb4Z/tz14kiv32N9y0lA5ZvqV52 5H0g== ARC-Authentication-Results: i=1; mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [209.132.180.67]) by mx.google.com with ESMTP id a190si6599313pgc.708.2018.02.15.07.51.40; Thu, 15 Feb 2018 07:51:55 -0800 (PST) Received-SPF: pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) client-ip=209.132.180.67; Authentication-Results: mx.google.com; spf=pass (google.com: best guess record for domain of linux-kernel-owner@vger.kernel.org designates 209.132.180.67 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1425125AbeBOPt3 (ORCPT + 99 others); Thu, 15 Feb 2018 10:49:29 -0500 Received: from mail.linuxfoundation.org ([140.211.169.12]:36450 "EHLO mail.linuxfoundation.org" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1425044AbeBOPsK (ORCPT ); Thu, 15 Feb 2018 10:48:10 -0500 Received: from localhost (LFbn-1-12258-90.w90-92.abo.wanadoo.fr [90.92.71.90]) by mail.linuxfoundation.org (Postfix) with ESMTPSA id 6FCB8109D; Thu, 15 Feb 2018 15:48:09 +0000 (UTC) From: Greg Kroah-Hartman To: linux-kernel@vger.kernel.org Cc: Greg Kroah-Hartman , stable@vger.kernel.org, Mikulas Patocka , Matt Turner Subject: [PATCH 4.15 172/202] alpha: fix formating of stack content Date: Thu, 15 Feb 2018 16:17:52 +0100 Message-Id: <20180215151721.859672517@linuxfoundation.org> X-Mailer: git-send-email 2.16.1 In-Reply-To: <20180215151712.768794354@linuxfoundation.org> References: <20180215151712.768794354@linuxfoundation.org> User-Agent: quilt/0.65 MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 4.15-stable review patch. If anyone has any objections, please let me know. ------------------ From: Mikulas Patocka commit 4b01abdb32fc36abe877503bfbd33019159fad71 upstream. Since version 4.9, the kernel automatically breaks printk calls into multiple newlines unless pr_cont is used. Fix the alpha stacktrace code, so that it prints stack trace in four columns, as it was initially intended. Signed-off-by: Mikulas Patocka Signed-off-by: Matt Turner Signed-off-by: Greg Kroah-Hartman --- arch/alpha/kernel/traps.c | 13 +++++++++---- 1 file changed, 9 insertions(+), 4 deletions(-) --- a/arch/alpha/kernel/traps.c +++ b/arch/alpha/kernel/traps.c @@ -160,11 +160,16 @@ void show_stack(struct task_struct *task for(i=0; i < kstack_depth_to_print; i++) { if (((long) stack & (THREAD_SIZE-1)) == 0) break; - if (i && ((i % 4) == 0)) - printk("\n "); - printk("%016lx ", *stack++); + if ((i % 4) == 0) { + if (i) + pr_cont("\n"); + printk(" "); + } else { + pr_cont(" "); + } + pr_cont("%016lx", *stack++); } - printk("\n"); + pr_cont("\n"); dik_show_trace(sp); }