From patchwork Wed Sep 27 11:49:29 2017 Content-Type: text/plain; charset="utf-8" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit X-Patchwork-Submitter: Alexander Sverdlin X-Patchwork-Id: 9973851 Return-Path: Received: from mail.wl.linuxfoundation.org (pdx-wl-mail.web.codeaurora.org [172.30.200.125]) by pdx-korg-patchwork.web.codeaurora.org (Postfix) with ESMTP id C60F2602D6 for ; Wed, 27 Sep 2017 11:51:31 +0000 (UTC) Received: from mail.wl.linuxfoundation.org (localhost [127.0.0.1]) by mail.wl.linuxfoundation.org (Postfix) with ESMTP id B69B328CDB for ; Wed, 27 Sep 2017 11:51:31 +0000 (UTC) Received: by mail.wl.linuxfoundation.org (Postfix, from userid 486) id AB5A628CE2; Wed, 27 Sep 2017 11:51:31 +0000 (UTC) X-Spam-Checker-Version: SpamAssassin 3.3.1 (2010-03-16) on pdx-wl-mail.web.codeaurora.org X-Spam-Level: X-Spam-Status: No, score=-4.2 required=2.0 tests=BAD_ENC_HEADER,BAYES_00, DKIM_SIGNED, DKIM_VALID, RCVD_IN_DNSWL_MED autolearn=ham version=3.3.1 Received: from bombadil.infradead.org (bombadil.infradead.org [65.50.211.133]) (using TLSv1.2 with cipher AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by mail.wl.linuxfoundation.org (Postfix) with ESMTPS id 3F20828CDB for ; Wed, 27 Sep 2017 11:51:31 +0000 (UTC) DKIM-Signature: v=1; a=rsa-sha256; q=dns/txt; c=relaxed/relaxed; d=lists.infradead.org; s=bombadil.20170209; h=Sender: Content-Transfer-Encoding:Content-Type:Cc:List-Subscribe:List-Help:List-Post: List-Archive:List-Unsubscribe:List-Id:MIME-Version:References:In-Reply-To: Message-Id:Date:Subject:To:From:Reply-To:Content-ID:Content-Description: Resent-Date:Resent-From:Resent-Sender:Resent-To:Resent-Cc:Resent-Message-ID: List-Owner; bh=zFE4r6zxxsgnN6HfQCybOZ61wBcp+y09TwHZj7Nwn0s=; b=eIdQGqodG/Zx12 qM0+GXbRKwMkJpSRLzs74FP8p+Ri2VBeAhrd17uXreMS9WJiocCkdpbehMKXJc4UP//fHtE+Lz3y6 IY8l56GEHB0mv6XVWgvWImCdtTNk1o8o9Wgm5TNlgfVqyxzWZ/UlSeU986x6eDc1ab0NbOneUKbIz yZtr2UurGEoDFyrWVG+jbOalPJTuZqOYeZx74Qh9qXNo1PBsXGHYzDN+WhTAQ8H4emDEW9ICR+Ga0 Z3lN2T1ML9Qtan0neJo+quf+NLG+fsahY5VGS1GGNHEncU2rSn2zV87GIDrjNrAyNVLiRLdDTvsJX 10h/lb3nGZeu1h4eMVOg==; Received: from localhost ([127.0.0.1] helo=bombadil.infradead.org) by bombadil.infradead.org with esmtp (Exim 4.87 #1 (Red Hat Linux)) id 1dxAs8-0005ud-1B; Wed, 27 Sep 2017 11:51:24 +0000 Received: from mail-am5eur03on072e.outbound.protection.outlook.com ([2a01:111:f400:fe08::72e] helo=EUR03-AM5-obe.outbound.protection.outlook.com) by bombadil.infradead.org with esmtps (Exim 4.87 #1 (Red Hat Linux)) id 1dxArv-0005Qr-B6 for linux-arm-kernel@lists.infradead.org; Wed, 27 Sep 2017 11:51:16 +0000 DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=nokia.onmicrosoft.com; s=selector1-nokia-com; h=From:Date:Subject:Message-ID:Content-Type:MIME-Version; bh=g/Mz66OX7Lf8164xoytOFP2n1kSNavRVLeZl6KvH/gU=; b=r0UfCFEZ7XAt6uZpi5KP3glJOe4/FI9zey/L2GACNTnYNRbudBqWQfKmAM9nXqo5CH6UtU5MmTeZm53KcsJwdcr25ZfBBE94HtIa6D04s5+XFaUAJIZRDqwcyONKhF9ufJuj598TdktYQWZcF4Idv/L6n/434EbfEZInqVc4iS4= Received: from ulegcpsvdell.emea.nsn-net.net (131.228.2.20) by HE1PR07MB1321.eurprd07.prod.outlook.com (2a01:111:e400:59b0::11) with Microsoft SMTP Server (version=TLS1_2, cipher=TLS_ECDHE_RSA_WITH_AES_256_CBC_SHA384_P256) id 15.20.77.5; Wed, 27 Sep 2017 11:50:19 +0000 From: Alexander Sverdlin To: linux-arm-kernel@lists.infradead.org Subject: [PATCH 2/2] ARM: early_printk: Stop emitting double CR on the console Date: Wed, 27 Sep 2017 13:49:29 +0200 Message-Id: <20170927114929.9259-3-alexander.sverdlin@nokia.com> X-Mailer: git-send-email 2.13.2 In-Reply-To: <20170927114929.9259-1-alexander.sverdlin@nokia.com> References: <20170927114929.9259-1-alexander.sverdlin@nokia.com> MIME-Version: 1.0 X-Originating-IP: [131.228.2.20] X-ClientProxiedBy: DB6PR02CA0018.eurprd02.prod.outlook.com (2603:10a6:6:15::31) To HE1PR07MB1321.eurprd07.prod.outlook.com (2a01:111:e400:59b0::11) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 6082eea4-cb24-417e-0391-08d5059ded9f X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:; BCL:0; PCL:0; RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075); SRVR:HE1PR07MB1321; X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1321; 3:I/wDt8tSffM43Iieg8Yk6hYTwefZrS7NXvp0VlZW9+YNQOPA9Or/O11k3oFuJRSq+4pnU3ri5LE8ZZ3/6rw3vwGRHlzPpvvP5nQl5Gfr6H2BpGRmBxN8Hd9IwPSkRQq5sZJ8J9LHo4EPUO4mVwa3yVnjbHVKXJUNSEEIqiXIvXMT7REw4nRVJu+qLkvrY4JlICyuFjPPfnN76EnLuu0M7iXv77LJLThZoG9o/6+sN3fbjonmwINV3ata8ohgz2QE; 25:FB3ikDTsNyN9jslLGK8sXL2RB9Izl/xw2yFObZ2KkNwAa6+oW0BQ7/4mTjLx4XjzlOaFYwwcV2GsaLzW2K0B+Mw4CNz7+JRhbyD5FxvbLCRaxARtI7ku429+vr8yXG+hgVSLhDxXw7PYtjxNjo9YQ5srTnJ3TCs+VD5zuT4Xe9m9Q6Qk6d3MvNxffhgf9istFb9MxRV0XjuUTUoSTrTk/fIofIHuGrLpCluT86jHAv21YHhziDpVAy93gtK9SNXAS+iHq+W/O8+7M03Y09bwtP38DeEFjGkSTBgMK8o6qCN2W7HXAZUhbGp0Zm8TZl9ZXjZlfvpcUlwZ6c1NJXovLQ==; 31:R6wk8QK8deqd9Cru1spPm6S98GT9cVdmqXMpieb3/kGCNt725m+0mvlOxPKwgUTfKXvKyGT14oDinyrr25/NaqcSFfZjoWlLLnNJ1mILK3PCHmLEmzloB2Z5doiBaR1oYQQv9IHIr7gKSI1ADqZoSZqtKK6P/uO/Ljpr6WAm0wfCxkRCDQh4Y0nGzUD1wFs5Lw931Ex+DxdEkBf8qn037k1YLzwiQL76T9AFfUuGxac= X-MS-TrafficTypeDiagnostic: HE1PR07MB1321: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=alexander.sverdlin@nokia.com; X-Microsoft-Exchange-Diagnostics: 1; HE1PR07MB1321; 20:AeQTF/cXIMZOE0sUn7lDiyfV7f48KcBaETKwDiMs3ncYAiGm13QssveGWqB3PySh2+oi3yd88ISWQpNLcIeYtROHA7wpQioc5Xgv3uCZMXOK77s3uIvCln4HfORGloLYGBlN2xClCKdd9EiCWjUknL3jcGN1jLyoCvyWHdVNa6OmrcDSkxzqWOAgtvbGNy3Lzo4xifHIYYn7ZaKa5RMqJ8Hxa7I63KQEKMqfjDp9tm+beghPCTD+4CtjFQzHGRy8O5l90lKGUwkShF/ZirKvY7tESUSjnECbpR/rYt/6taeYa6aswgLX0AIPXutz5h0X0ZBhJBk9KeCi09lFyspxMNA2I816DPJNZdzDd092XpZYTKsMDeOxnz6fiHx5hk9SQvbaN4FBjBMN3mxUYsou9xjkA5TUeEZI94+qst+JWu28sf5jTTTa1yjFCF0u/ecRTQudiOEXlrZfMgqs2jTXZXEcUvGVK9Lk15j3aqUyusn9rQctrov0j+3Jf7aYResF2+GgSkbkhdyEZAiiGMBJ7dIHfltdQDmUEkgCZB7kMq/lZ1ZWivOhoVky3nw/gEX0RIe4DoBt0qqI1I4nSukaxByKfX/Oe3nlZ5U+vTE7FK0=; 4:WHdWMIKZcRKIDLmDbOfvDRPRUAbzIOxx35zJnI34YngC84Cq62bLnUwo+e/CAhAc8dPnKT3uNx70/4X/T/ecQX0UY0e2H1/JDBrOhYiKlBOO22si8PsHhT7nG9JK+Ju2jX+P2mpxFIXI3H/67lAYvbqTPTUGtJDWoS8rtJk0jgZyGKrUGxeqMuiE46hrDR4AzyXp7Ji8BYV9OdA0wuqwhNg5c08F7IuOLGU1Fq1+C8Flf+KsvzVPLJWey2EBTvHVLt8n0OkceYyYGEMqmBqcXF8tFJKK5jVhGPOS9t+80lc= X-Exchange-Antispam-Report-Test: UriScan:(82608151540597); X-Microsoft-Antispam-PRVS: X-Exchange-Antispam-Report-CFA-Test: BCL:0; PCL:0; RULEID:(100000700101)(100105000095)(100000701101)(100105300095)(100000702101)(100105100095)(6040450)(2401047)(5005006)(8121501046)(12181511122)(10201501046)(100000703101)(100105400095)(3002001)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123558100)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123562025)(20161123555025)(20161123564025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095); SRVR:HE1PR07MB1321; BCL:0; PCL:0; RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095); SRVR:HE1PR07MB1321; X-Forefront-PRVS: 04433051BF X-Forefront-Antispam-Report: SFV:NSPM; SFS:(10019020)(6009001)(346002)(376002)(39860400002)(199003)(189002)(189998001)(54906003)(6486002)(6506006)(305945005)(4326008)(2351001)(7736002)(53936002)(5660300001)(25786009)(2906002)(316002)(86362001)(478600001)(33646002)(16526017)(16586007)(50226002)(1076002)(68736007)(3846002)(8936002)(48376002)(50466002)(81156014)(81166006)(8676002)(36756003)(76176999)(6116002)(50986999)(101416001)(106356001)(66066001)(97736004)(105586002)(2361001)(6916009)(6512007)(5003940100001)(6666003)(2950100002)(47776003); DIR:OUT; SFP:1102; SCL:1; SRVR:HE1PR07MB1321; H:ulegcpsvdell.emea.nsn-net.net; FPR:; SPF:None; PTR:InfoNoRecords; A:1; MX:1; LANG:en; Received-SPF: None (protection.outlook.com: nokia.com does not designate permitted sender hosts) X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1; HE1PR07MB1321; 23:B4DZ+yZ8wx+3+QCADEJt1bUjpLOrkJVVwnWR7LIpd?= =?us-ascii?Q?NJ3fQwM31dpLcXGOwnrU8BmInEhJ6rBYkZ3q6wzK2uvglnjBmmevMxyEi1TC?= =?us-ascii?Q?5Q1X0DFr5c9mNsY/Cd8Jq3nvtpkfYJkoYIPx1xos71KRzLyr+jrw2Ma+MF1o?= =?us-ascii?Q?cCvUGfFNwYhBVewh7tF0bMYTDSmYCQR0ZkXE7RhvIjlJt+fftw+uy/5oeHwW?= =?us-ascii?Q?ZopMtiOl1VSdL561kfT/MsAbxYblIOgqWShMUN4Yweh+wtEmlGyQmlwV0hsg?= =?us-ascii?Q?H15R7y/tNCp5MGxOivGvFSBFx+OMukRS9dwBXyLv9fpgB3jini1Jw4TWJIFT?= =?us-ascii?Q?oLkBWFHBN43vnJ6QAGg4MAl/AQ4QzZgSe4hBrptFFnDK9a6XbSH7aa6JZN2Z?= =?us-ascii?Q?xg2WPzgfe+0fAdyzYFRF7BK4H6ihzxT54O0qtf6/eRNEYF22DxZtgoqPNITO?= =?us-ascii?Q?GrVMW4Vm1dGZlu/PVT1/P6L5FZUZXATfbydEx+GTwXhiNW7Gjspgqru1Ardr?= =?us-ascii?Q?3t8cZrjLWqiUSGEZ8b9GjUVJPPtdbw0ULLOAOguo7U3OCYYphuS03/h2Y+p9?= =?us-ascii?Q?bhVXuFnb9uxWoVavE0GrmJ31K0eRQlYm98kDRCOGt4TIBE/g0rIxCyh9GpuG?= =?us-ascii?Q?2ktKah+5U4SchQUaq0l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56rGVIqLFzM0MTOqcbJeR7qb8GFBRpx9t2K3D6ifawyM6TTx/hsriAIRsN/rFPOW7txrAPIWTPVegAoQ6eTFOOzmGpQ==; 24:PIKHUoWiHS9oVrJJSELRx5H68Sd1pV7vU6QBR6F/ueFgQ40VMr3eocb1MHybwRcYb/Jvo7Qa2moAPnP0r+DOa9uBObrHXtyl/xb2UpC5f+s=; 7:tgEWYsxiGQg5KZ4CtLH/Tr9nEk5nMkADOU8TwIcWTGjMkARNWslmK+8ff1UtnmVbr0iU8BwQpruCijyDJcvkc9uHdaX4eb8FX58Sd7VXktWcIL2rxnNH2X1Yz9np6SfVCCP6B4VkgVnlnKOcjDzmQXXPCm5CKuDU56WhgLIK2x8wXASHoCJUTe6ZUbntWjRvtM6LnGxbqBOjblJ7zM87EHBHMkuRldSO4JedeHJtOA4= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: nokia.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 27 Sep 2017 11:50:19.1012 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: 5d471751-9675-428d-917b-70f44f9630b0 X-MS-Exchange-Transport-CrossTenantHeadersStamped: HE1PR07MB1321 X-CRM114-Version: 20100106-BlameMichelson ( TRE 0.8.0 (BSD) ) MR-646709E3 X-CRM114-CacheID: sfid-20170927_045111_557126_98BCE8DA X-CRM114-Status: UNSURE ( 8.28 ) X-CRM114-Notice: Please train this message. X-BeenThere: linux-arm-kernel@lists.infradead.org X-Mailman-Version: 2.1.21 Precedence: list List-Id: List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Cc: Alexander Sverdlin , Russell King Sender: "linux-arm-kernel" Errors-To: linux-arm-kernel-bounces+patchwork-linux-arm=patchwork.kernel.org@lists.infradead.org X-Virus-Scanned: ClamAV using ClamSMTP printch already takes care about LF->CRLF translation, so early_write() just produced extra CR. Signed-off-by: Alexander Sverdlin --- arch/arm/kernel/early_printk.c | 2 -- 1 file changed, 2 deletions(-) diff --git a/arch/arm/kernel/early_printk.c b/arch/arm/kernel/early_printk.c index 4307653..8300d5b 100644 --- a/arch/arm/kernel/early_printk.c +++ b/arch/arm/kernel/early_printk.c @@ -17,8 +17,6 @@ extern void printch(int); static void early_write(const char *s, unsigned n) { while (n-- > 0) { - if (*s == '\n') - printch('\r'); printch(*s); s++; }