Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S968503AbdIZPuT (ORCPT ); Tue, 26 Sep 2017 11:50:19 -0400 Received: from mail-he1eur01on0081.outbound.protection.outlook.com ([104.47.0.81]:15761 "EHLO EUR01-HE1-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S937368AbdIZPuQ (ORCPT ); Tue, 26 Sep 2017 11:50:16 -0400 Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonro@mellanox.com; Date: Tue, 26 Sep 2017 18:50:06 +0300 From: Leon Romanovsky To: Joe Perches Cc: Arvind Yadav , matanb@mellanox.com, dledford@redhat.com, sean.hefty@intel.com, hal.rosenstock@gmail.com, linux-rdma@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] IB/mlx5:: pr_err() and mlx5_ib_dbg() strings should end with newlines Message-ID: <20170926155006.GD6816@mtr-leonro.local> References: <7a5a195cd37db476a2ca007eddc0f28f3ade265b.1506407876.git.arvind.yadav.cs@gmail.com> <20170926083843.GB6816@mtr-leonro.local> <1506438337.29089.8.camel@perches.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="RYJh/3oyKhIjGcML" Content-Disposition: inline In-Reply-To: <1506438337.29089.8.camel@perches.com> User-Agent: Mutt/1.9.0 (2017-09-02) X-Originating-IP: [213.57.247.46] X-ClientProxiedBy: VI1PR08CA0123.eurprd08.prod.outlook.com (2603:10a6:800:d4::25) To DB5PR0501MB1926.eurprd05.prod.outlook.com (2a01:111:e400:c584::19) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: ab152ffe-eb33-4ab3-5928-08d504f64520 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:DB5PR0501MB1926; X-Microsoft-Exchange-Diagnostics: 1;DB5PR0501MB1926;3:8hXxfqSjGegr/IxE8grWMXOPiy34mJ/3OhefBjxTwDX79slx/1gCS4K+xL6nM4IB+qNGkM9QV3DWvD0FN2YOtWNVruGpeBuUN6Z3NWabHjB5qkwavpRZIzHiMqxnDn261P3YQBUCJx3WGuZk+WRSFSI9naGnjJ68uot7iNdVm3w8SvCoG8WmsBxp4ozU1t1no9m8V/4y2WbcM3sg3qmxu+mDmuOS2sxVNfaulg7kk7n191nPP8VC4eBRYStTziCB;25:RF8Yuxie+0uOlWoOb2zCFlI0GTJmJimV+o3ePfDLrD1jiBAut+4gF+ICHYslgWdTn6ugIiqXT3lp34O4is+UDgDQomhsPrEc5aQHh2p08N3JmjyqYI4X5YH9pLWM/R9taxi3r11wA7JqVUztIG1wLSYetXJvu3QPIQIjLn8Mx7uLigKifApbSoyjmXxUqKANtdCZ7EEVvaNSaWGs4upQfkWm6YlTs+kqRsexCXzdTekSi8XSPY7yLHOc9A7Y3q185yrzQx7PCX5LrZYTtQVylg8gNnl5YNXb3JmGbtXX5q6Td4uYoN4s5QIi673BPKu6KfJ1oa4nPcU060v+Km59jA==;31:5GnDP8WPsUaSfxFLdK4F3Fvv5JupaGEpsrglL1rfA/KvGMzEMrRqXKrnZK7LZfW9Ov1dnb4sPHXz+R+7i0lOfPlh07FV9rW2zWf74OJlV7x/Wx6XlNBALjPqVtLapelTqVPSc6qvGqqrLFcGGUxd6YBC9yYGhXsSQmJLxOMeUXRooLYPfbZj3TAPyhTWY+ZiKj+akTuSSfO19VD/5HoLlZEX7lbKtxVE9v+IMVbwRt0= X-MS-TrafficTypeDiagnostic: DB5PR0501MB1926: X-Microsoft-Exchange-Diagnostics: 1;DB5PR0501MB1926;20:H0XR6pK9P4NTEiqcsQqxq/0XdrkgJNSzYW4g29KKrPrxAGzCG6T/ctm/1nXMVyk1hRzh6RMgIspC4O0l59Txb5slKC3MGikCr5peDfSioIlvfyhVx1EfAfouKrBIPZm0kCPhbpIl+scNqcguYCYRt+0en9wnfnusfLC3L+I35pLJH4JNhCLp/98OzerBLMIMFUuw6VRrNgthnCZ8vI5/YBYET0SLFXuhVb/wFZW8njRSPhMTGSPXHNE4jTm7a0oyjae3jaZiKrE/Aklgy6HVLPe2SogFW782UfhlWLtqMPCUtd3hJKHEdvILoLaIuAu8yzUEahtbKN1hmJROVGeVzN00aia9xRMBSOeVx5Ku4KpoxH5XJcwGTqCUHiTvu5pjKpdQHRCy1yF5H9TocuFQd1+XV9Weqb1l1GFUL7YmCcTElTO+qvEjCNGDQ1x3sdlEiDIsh+As4bC7KYm9e0zhYnBW0NZoc3NI98J0bpd3hn3ItXm846G/74yhY5shH4Mz;4:rAAKgEiBgUOmq3nx6SJFlN8NYR4JYzUowBY+OItq6xEY6zcPi38I9bq2jugVpfn8B2NZ8TUtRA1yUPruSackKX04abDj+OLOX6ZHjJCFUm5NWpK1EMOBocJf0eDFoLyw95+tIwH53PiP0W++oZPgdaHpIh/bvbuN7ZqbyNoWVvNhlFxsB+2R5d7N1ojoYBlS6TK6Bb6kQeIH2aUSjmihST1LzrI/Ud3L+uTn+mm4wOC30elBfrx19i+b7QQg6lIs X-Exchange-Antispam-Report-Test: UriScan:; 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)(3002001)(100000703101)(100105400095)(10201501046)(93006095)(93001095)(6055026)(6041248)(20161123560025)(20161123558100)(20161123555025)(20161123562025)(20161123564025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:DB5PR0501MB1926;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:DB5PR0501MB1926; X-Forefront-PRVS: 0442E569BC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6069001)(6009001)(346002)(376002)(39860400002)(189002)(24454002)(377424004)(199003)(8676002)(3846002)(2906002)(478600001)(86362001)(16586007)(97736004)(7736002)(58126008)(84326002)(105586002)(9686003)(2950100002)(81166006)(8936002)(6496005)(1076002)(81156014)(6666003)(6916009)(53936002)(6246003)(33656002)(6116002)(68736007)(4326008)(76506005)(39060400002)(6486002)(316002)(21480400003)(189998001)(25786009)(305945005)(106356001)(66066001)(76176999)(101416001)(16526017)(98436002)(229853002)(54356999)(50986999)(5660300001)(83506001)(18370500001)(2700100001);DIR:OUT;SFP:1101;SCL:1;SRVR:DB5PR0501MB1926;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;MX:1;A:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;DB5PR0501MB1926;23:cijSNnRMTeAeFHdv3LzEuujt/scce05QjDUywU+?= =?us-ascii?Q?kKKC5QKZwCb3/M61PJk4+EgxM0GRt0u1DW2qxZfiXjPGfiWfp5vqjh4qxjE4?= =?us-ascii?Q?UsvdG+sRSSYZVJcjzbz1AkSCJw6bYVHTO2K/PreJdCjGNYdJyIly4Zckn8sr?= =?us-ascii?Q?9STAZuHRbuuYQKIwgK+lf7Uv9w0jGiacHRnfWA5X8UNFQBfjLDBBgrvRSoji?= =?us-ascii?Q?+jRr27Jh4hhttAHQcAECGBbaLPxlgnbykccN6NWJw89QhlPwEiEnjxz8qiLB?= =?us-ascii?Q?pC2OuklbzhcvY/0VvHcz8RX4t7zIesToNxmxfLACpIi0wj8XLC6rGwqkf2ft?= =?us-ascii?Q?pjmEidgFnHcWRoGwew0cX/Ba//W3nCQ5gw4InxNI2zCua9brh+ogJ48Oam1o?= =?us-ascii?Q?xjjDloixkIiAtHr+s9BVkQoxOjX/QS0XRyiaif0Yzx0P1ZmSDT24K7YgF3QL?= =?us-ascii?Q?tETeTMbbOLXyyphbKjIkq9DCkIooJyAiBaqWKqJ6Uyg+i226cST0x5SBaZH+?= =?us-ascii?Q?8Sfs5CtOMu/8FI7iiDkF6F1CB/WXtD2u+ygjGc9tlV2+vJO5RhuiVQ4wIYDZ?= =?us-ascii?Q?BQxcRy3cROZBSHDp8rkBu8HHQ1K1suKsIouf93iKybA52wKtrY7UijOzvUeX?= =?us-ascii?Q?dNRhwrPtqGbKsYqPWYq3pZtkJ+8P7q4A3ExVXbe0FkPBdPcDpPF/1AYvUVlL?= =?us-ascii?Q?tpoiP+OKkCJFt5+95WjZ5AAqI85Tz3bSz/nqmwHxkZt7TO8iJS/M3h186etP?= =?us-ascii?Q?FWF1YueztOj/dN3vGBK7i65gN0MBcBJxpuTEbzoaa3VnUZLWyCz+Luh/say9?= =?us-ascii?Q?GHiH7YdOQHD/u0ymvLn83CkknlzK+L9PnCytqwnv3EoN6nLDgwbqpL3QudF/?= =?us-ascii?Q?O3vzTKok7ciuq7ShFE6hY+0MVyieZy1JBh+esf7Zysk+tjpCZTapJ7miySJH?= =?us-ascii?Q?ZZWIsnQo/+QCjWBxqhwQHaseggdGmeDhJJGY08N71Bxax0OzUorqGFeIOrhY?= =?us-ascii?Q?/lovrRsyAKE07dTUTmv4G59at3Q0n81GHRMnGLvE3h8dC4Tp2wvnRUWAEI4w?= =?us-ascii?Q?u9uMP7vocynTbJtPQ98dyhIFiAlBzdP3o0pO0L2JkTIc8D3hyRMOvkrzvrfi?= =?us-ascii?Q?6BsxqbeeKzyQzltmizSs0u4uT11forgbf1gVF4w8ktVhYiKKamitKq+/G/zm?= =?us-ascii?Q?xhSs5EuDOaVjbAdZWeA7cDPmEU4QJV3E0shCVhK3/e+tHbmbm0Z8dUVxNT1T?= =?us-ascii?Q?JZV+xu/fQWSlmaIsoyvuaZXViSGSTdhJhOIhjG9keCJc8cd5ZQamk21evm9x?= =?us-ascii?Q?88ENvNbcQr0xyUzVKYVstejk=3D?= X-Microsoft-Exchange-Diagnostics: 1;DB5PR0501MB1926;6:+1USBd1nFtA3J1D15XVcrI+HQz9GqT3+WLJ6tMrniBhwunM97FKsKCFLAKbhPO4aWYYwRYEseMXNZqzp2h4KldgdF63bSEhayt3bqEVWu58hGrsN8rNqbI6a1g+MlmQcb/3bUQfppJ8VK9OSZ7xVRMoBsq2PBcYoa0cHNeO2QA0j+9N8UNawJnsoza/DDbceAQHIdJg0FHtzPRW0ryJ6QX6STsqPNcRY7/4G8mA+2tmiuKoVqHZ90d9TQDFFMRQCH1pv0aJoJLbs3amVS9phl8t3QEpKEihJ/vv7CmkSLzMfJz1TQYXzEqWWdknA5nTy1WmfRPdc+eDf29GgXd12Nw==;5:4teRb83xAXtzrJMZyU8A4SFITIOXJTATLlwydDrQMI/wSp87F7rT8RfV+JrDOcht7TC3ytuGKuD40mHLJFfJFbRiGmiaul535f4iHddeCgwtMbfKKVlynbLKzdMqkgjKXf1ERsYifQmP920IWkx8PA==;24:iHZ+zvhb1zADhZf2LYjIbJpJq9OU3hpJa+nx8qY/cBitP1GZaTlv3qbPsJXcWbQ3hpXaizHhIqrFRfUg8X1K9ZwZIGyqARfTqBWVt/GXOso=;7:+e1zqVwe0xuLjP9R4pCfwfkYGIQbILwopeVzYI5jBQNre4XtyM6qOd6DA/Rsw+tY20ZYxVzjP8hAsuHAbL1uW4CEW4YPORFG5LMYyCofcWQVyfWW+bf7oREKwOv59fG+aK1+pznMYMib5BEST9VKEwYBsLAxmLXS82N2Pwg1YUjE7k/1hHL9ZQWZmRsXncka5Sal7L1XZsYakcVYIKq1sa/JfFNMLMC2aK8HYZ3kghY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2017 15:50:10.8038 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: DB5PR0501MB1926 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2323 Lines: 62 --RYJh/3oyKhIjGcML Content-Type: text/plain; charset=us-ascii Content-Disposition: inline On Tue, Sep 26, 2017 at 08:05:37AM -0700, Joe Perches wrote: > On Tue, 2017-09-26 at 11:38 +0300, Leon Romanovsky wrote: > > On Tue, Sep 26, 2017 at 12:20:01PM +0530, Arvind Yadav wrote: > > > pr_err() and mlx5_ib_dbg( messages should terminated with a new-line to > > > avoid other messages being concatenated. > [] > > Did you see it is happening? > > It is not needed after 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") > > Not completely true, and that commit message > itself is incorrect about how KERN_CONT was > ever required or not required. > > After that commit, the dmesg output will > eventually be corrected with an appended newline > for sine line format strings without them, but > the printk subsystem has to wait for another > printk to occur before inserting that newline. > > The commit message bit that says: > > Things get much hairier when you have > multiple threads going on and user level > reading and writing logs too > > is correct. That's the actual reason that > the proposed newline additions are reasonable. > I asked that question after I tried locally various different options with/without newline and didn't see any difference. So how can I reproduce the different output before and after this change? Thanks --RYJh/3oyKhIjGcML Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkhr/r4Op1/04yqaB5GN7iDZyWKcFAlnKdy0ACgkQ5GN7iDZy WKcDmRAAm7bmVxPsacyC7gDFhSVdb/M+Hg/OZFzY0MdTDpRmIeEuHhLvmKCyOHlO vEZpLgzDJ+ZG83Njgyk+QkZUNQwu4g3dn0FaRmtZ2UjVI3A7OGyZx8dGGXIFXzjv F/s63X2Nq3aX8HmQ7JHNGo4pVfVH0OhZ51uMOBXaF4CuJzHEZhWVmPpOvDD1ZGj4 4xzmwCjQxqWSB7sFOebbQtrUCAYcRVs4MkN1XArffr2XysITMnmTDyQxOZ2/hnS4 rFHLaV0ZzmP4T43icEnwmPQwfUMpVIddQDOw7KUHAXP1IVi0b1ry/ODCt0bCRxJV NJnIxiAWyIOhZJivZ7pjB/SlphMR+S6lzrqFJRkMis81DpOiLdJNJ2sWMcG1DTQM dasgNxnyAVKUIlpDlYPs8yEf2+Lahfo/henguqUgNkqISOjtaw9VyLpseRd1jhT4 1eWBd6ayHeIuos1NRu9svXZJ+nHWAzVcSUpThHXaW7UoOOBJTpv2hH4FDGMXig5I 6l8svIqKdICr1dzQrBViVb8tCGQT8ziyIhnOyA2I5uDk7og7B0aMTLFZeRcRjjCr qhuRU7dsZfThCdSXZol8oX4PTNE9dqT2cIdZtZI7UKjtKMOU9O7Ibpwkm56NdnYs lKVJftKMwbunJrr/xNmo1z3v+qQFO4Y2hXJ1A+ZJ8pc4x3gX48U= =xoqW -----END PGP SIGNATURE----- --RYJh/3oyKhIjGcML--