Return-Path: Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S1030370AbdIZIjA (ORCPT ); Tue, 26 Sep 2017 04:39:00 -0400 Received: from mail-db5eur01on0089.outbound.protection.outlook.com ([104.47.2.89]:22016 "EHLO EUR01-DB5-obe.outbound.protection.outlook.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1030356AbdIZIiw (ORCPT ); Tue, 26 Sep 2017 04:38:52 -0400 Date: Tue, 26 Sep 2017 11:38:43 +0300 From: Leon Romanovsky To: Arvind Yadav Cc: 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: <20170926083843.GB6816@mtr-leonro.local> References: <7a5a195cd37db476a2ca007eddc0f28f3ade265b.1506407876.git.arvind.yadav.cs@gmail.com> MIME-Version: 1.0 Content-Type: multipart/signed; micalg=pgp-sha256; protocol="application/pgp-signature"; boundary="61jdw2sOBCFtR2d/" Content-Disposition: inline In-Reply-To: <7a5a195cd37db476a2ca007eddc0f28f3ade265b.1506407876.git.arvind.yadav.cs@gmail.com> User-Agent: Mutt/1.9.0 (2017-09-02) X-Originating-IP: [213.57.247.46] X-ClientProxiedBy: VI1PR0501CA0022.eurprd05.prod.outlook.com (2603:10a6:800:92::32) To VI1PR0501MB1934.eurprd05.prod.outlook.com (2a01:111:e400:7b79::21) X-MS-PublicTrafficType: Email X-MS-Office365-Filtering-Correlation-Id: 8ba81b7f-023a-4a1f-89a6-08d504ba0239 X-MS-Office365-Filtering-HT: Tenant X-Microsoft-Antispam: UriScan:;BCL:0;PCL:0;RULEID:(22001)(2017030254152)(48565401081)(2017052603199)(201703131423075)(201703031133081)(201702281549075);SRVR:VI1PR0501MB1934; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0501MB1934;3:vRKGehMkvp80DBblapMs34WxL9Nf4YjYqhlo6RqKxptZvwBzPoH7r47B0suslNcAtMfOJlLyB873LCVDJ/nFvcIclDPV3qEUr5WrBunx/5CMXgEW8refxPqYW5AE54wHYwpwYDjVPK0AhB8KE9NLdiJmMEM79SGf3Q4A/DCCV5YeO2qpNUkEODdRCJC29K8ZRbqmzl0LqvmLAoH4K7lEP2B+AaPVmwfibKSizoVLe6KT70RdYlWNssF0PCEA/BjH;25:MeXsp5d3eMlQED7pBaTP7zJiBQ7yadhRdehv0y0+a5Ina+27LpCH33wbCbWtUn8oCw1vLWEHDCUWliQYp8Jw1PIjQUK2MsSTraJOB9g9ga5Tgc4NrsV4zHyrZ3sOe2DTUnB6AOs0lHtxdeU/FgOvm3vX7GfQkVdaV8W3RjLMIm+KhA6EtufcXTtcIf5RaKm8KPxYRu4g33EUB1O9Zz6aJdApQybIqabP9yvZafXo53dTeBELgZHP62uDs7DsJD2i98A/e3dGbAAsUVE+cWzoLsnH1MpNw24w1xY+19S3+eFjr+jEaWbXebY2/CsuPsojpKfh3VwTPAGjmpJm+JpIfg==;31:k1pl9dpcYyFMk/2cnhPKM3DqtuOeTBxvCylCvmki124Nmbdv2fzDJLi0qyHeBCvmsOg0mH9TKlbINMyV3a7SviGOk7cFR/Hleoj6d9H474x2ii2pkZ5b653cobTvZBOA3uXOB82VzvtZ6+GMGev1NWo9y8zGEGWksrT0vUMw7SESD8ilfAn5Z5ICKz9KmYDq9DttOEx7Zjo+gTj6MzMJoEZum6XeUAil5vVUQ8dc288= X-MS-TrafficTypeDiagnostic: VI1PR0501MB1934: Authentication-Results: spf=none (sender IP is ) smtp.mailfrom=leonro@mellanox.com; X-Microsoft-Exchange-Diagnostics: 1;VI1PR0501MB1934;20:gVVTUr+bC3bqVLOUSg4hjbxPuixySHUIa/0qmfWEKl90vG1fXqOHqzYWqfuUxFI3K3KtjrMz9eR7P1c55HiTRKWxdcF3YvEqL8Il42xJ6Jn3HII9UCn+d6lyfsfbUp7l7oZyS7AV28EOzTVHId4vO9vFO42rxWbA4V6k/j41iwvL3fG95SnrPfh9AedxYyHMFMo/i9moSXTADFGzZAZ4A8KYO1Z6JnK+wscc2jD3//6VoBVksv7vU0VibEbQiH2WsXqSXdulZTfWEhD/ktjpXva0x7p/4vToT/yZv2stEDANsxM3hgYhr7TjElF6N3Lbph3f6vld//nrIltdkyqb1HvKdl5u5nBiWJW8IcsrlSKJ9xWS1uWhz7nk4vv3hFZlNII4b1b0YGuMYsIr5XS2+7tY97vEFWD33Cum7Zqtn8GaCXVAX/Tjisly64p26kLSPuSDij4srWdD1EUccEx5PGuXT8ALe2Em70KDTHKwIBS641u34fe3Fx0UPvuOHmzb;4:rzSrC3XU/F33RquGB/zF/F5Pc97seFjcDEyjYVBAUhgsIovoXAMowjAZMXhYdxIy8yvYUfnaMREwQwQ1kqGog7tKGATGPZFdnjDDLA6ghxG1Kq9Sv4fFMazECcnmdiF1UvlzcjUf6im9Nl6Tae4G9l3Nob69a5D/+oPfVAEFtDaug0bqu0g2MIJxP+zZCiPB+YsznGBr6cGToMffKxoutKUrXkPsVDNG/QQpjiSItZg2ySRnIVmK6lZB3VodW6v6 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)(10201501046)(100000703101)(100105400095)(93006095)(93001095)(6055026)(6041248)(20161123558100)(20161123562025)(20161123564025)(20161123555025)(201703131423075)(201702281528075)(201703061421075)(201703061406153)(20161123560025)(6072148)(201708071742011)(100000704101)(100105200095)(100000705101)(100105500095);SRVR:VI1PR0501MB1934;BCL:0;PCL:0;RULEID:(100000800101)(100110000095)(100000801101)(100110300095)(100000802101)(100110100095)(100000803101)(100110400095)(100000804101)(100110200095)(100000805101)(100110500095);SRVR:VI1PR0501MB1934; X-Forefront-PRVS: 0442E569BC X-Forefront-Antispam-Report: SFV:NSPM;SFS:(10009020)(6009001)(6069001)(376002)(346002)(39860400002)(199003)(189002)(24454002)(1076002)(6486002)(53936002)(68736007)(33656002)(3846002)(7736002)(25786009)(81156014)(83506001)(4326008)(478600001)(21480400003)(6246003)(8676002)(6666003)(2950100002)(39060400002)(6496005)(9686003)(6916009)(316002)(66066001)(6116002)(229853002)(58126008)(106356001)(189998001)(101416001)(105586002)(84326002)(76506005)(81166006)(97736004)(2906002)(86362001)(16586007)(8936002)(305945005)(54356999)(98436002)(16526017)(5660300001)(50986999)(76176999)(18370500001)(2700100001);DIR:OUT;SFP:1101;SCL:1;SRVR:VI1PR0501MB1934;H:localhost;FPR:;SPF:None;PTR:InfoNoRecords;A:1;MX:1;LANG:en; X-Microsoft-Exchange-Diagnostics: =?us-ascii?Q?1;VI1PR0501MB1934;23:EYuVf9kJSDpVhUh4HgEc9FaaOz25QJObiNB51IE?= =?us-ascii?Q?XWmCiUc765Mk3VdY5Y+D+skVIw0VxtT8GW0emkc7gxSYeh3iOXeyUmoHcFWF?= =?us-ascii?Q?6ARbsAzqykJ6FVVXR2oKPuCLbzcxMPKiUvm49Hcyc5MoSOlz+DT9s/LRbKaL?= =?us-ascii?Q?wdPbrzXe6L+Uh1Hpsw2R5xCtPmC0s9AoAEh/6sj56q6u96cHVHg1cUNi5zPE?= =?us-ascii?Q?QSvTu9rEbdXGL1s0hDJ1EvIA9MpBh9Q9Z2QW7HqhxXYV6+v7z6oZHel536iH?= =?us-ascii?Q?51UNCS9CTNaQiLRSlTUYmawLUSBn1tou3Mx4W0aIXk7NLt7f4KAjdC0E5Yfm?= =?us-ascii?Q?NAX9N4s/CqpTthcFlyc+RgKAcPlmmvt+6QZf31dIaJVIeXTSp8IgNbgvb9bs?= =?us-ascii?Q?5LeIVtLQyBSbIqXUt/jr+l4W2FznRNJPGEcQC4+N9LqG5e4ROWpHW2/sgp7H?= =?us-ascii?Q?r4nnait5cWgJ0w/bKLeAlkb+Ft485F9RZgDYrX1tAVc+WwS4GYWTIUP570Et?= =?us-ascii?Q?RmQ0/w2jpSDYERejhzPEXpjh05pJFxu8vZsuoPVyJJb0QY7lHq+0kLz2EFdw?= =?us-ascii?Q?9A8qWL280bph56hw2F64mrDma8dmlCf63XjB4dGh7fBzsSdJoyzW+QH2AaHl?= =?us-ascii?Q?gz9nOvrqdNMjb8+40hvYBN7jf9sbKXKt/pyT+QctxnZlf1LwqABEQ4f5q+XE?= =?us-ascii?Q?CKF99OD65q+y+HWALTPYc8lkf+O24X0v+kpAzdJbjpXvPEPqQTbr7FSMKBRP?= =?us-ascii?Q?uIt+soZSBR49K+xr+o03WmzYWgh3zI6hTIh5LFW2BCMWliv57K9ukfVeEktD?= =?us-ascii?Q?TqJXHp/+pnrpqt374mHaXGrBICXBWnJJuaQkiJjuknd3IHAv79LY8IdAqD4n?= =?us-ascii?Q?vH99h6sMizp1y/1RSyYT0Qg8aCvWNe+1k4tbyKoN3z3Yv87WeWlcc/Kavu9V?= =?us-ascii?Q?x23Auzb1cye3cfuk58+KYjFQG4ECa4jitO4KcSgnuYO81YW9HiJTQNf7KF//?= =?us-ascii?Q?WO6EaY3+HBMvxgSRYT6cKjFWLIrmJdQQ+jQoYnHbrJSOyhmVICSeisXraun1?= =?us-ascii?Q?BeX446RwE78jXzjTEhyxJqFiZ4qZorlrXrAda6+w4QnHiaktXokdF3o2JbpU?= =?us-ascii?Q?LUuV7NrdY9f2mVqCA1W8Sr4cg7a2NPsCw6BV/+BI9xp5AfTswtllqvRZtA7M?= =?us-ascii?Q?2nozyxPAJ2Gv8p3t4XETV81Ce2CJYz05cs9sHWcoh+F+tq6v+ti7jD5N2B45?= =?us-ascii?Q?wu58MbWXXxk8sPC65mNOF3dO2ydktBYemPRg722AIdKdxMs0tXpXz9zDm6Xb?= =?us-ascii?Q?ajA=3D=3D?= X-Microsoft-Exchange-Diagnostics: 1;VI1PR0501MB1934;6:9lHL6XZca0gAYPM21exFBW2aMmwGkW1OPXFReSfh5bl7h76nxKEJFzkqqtal1HO2BtbvZ3gFUaslGgnb0RmHoiRFs6Z4WN1z5eyk4lDKIt+6FGqHL/X9mBVgRYi89Gi67RcORnMq/GhLz2RF6cCIfROlOBlTCkTcA68xEIAZu7NLaA1m3uyesyU6zPfEFzk3htSXZ5TihBH6apTCho4yhwjdklLBJvx+FbZdSDEOpNT9FH3sgYlDvsOog0/nRH3rj9eXb03uwU6dR8hT20/bZ/tVAW2QhKr+plzQLytK1GAXGfeA6ib8m4vZMmcVoY9PrF/gp7bPgehGTPKVm1ld6g==;5:7J7wvCBE9Iiz7sv+YUeI3NKKFCZwhvy+E4eE/FkokNZjQ7sjWmQH25Kh9QV7ce0yvKjXcR/ya0DRUewxO4R2KvLIpI5nvjvD0CABgc3DLDHMxmtSG1d/GXD0Od5udRT8UGwnRtcJvyjSiz3wwsxcRw==;24:zSVAxS7cjMgWMmuTI1f3ITTfLs+WHb48x7tDEwAxV+F4T1Y6xZSdJ+lWKdrJy3Xwmp0g3CWJ2qNk+78Br3+Owj3XulA+T1dS82RDSQaCfCs=;7:QSZS4ZTu3EYkeJdA/B1L2gWuhYqGIQ9NWCVBSXd29BipD9K0QPUQGYA6Gkf2Zm1aNzpMVLgsyIcXzuW2vjs3izMCXJqRXP4WjMyA+Yq9BdNxi6ZRIeOVuU9Ghdm9mHfGYPx7nqcIVl5XttkKAcUHzrxagxOPNB1dOyUWmOaLjkEIunaa1/eYVQRfQ6v/XKYgWcnzB3RuRDjbw7qVZmzIMgN93HHSfPlDGEg0Tcd+DBY= SpamDiagnosticOutput: 1:99 SpamDiagnosticMetadata: NSPM X-OriginatorOrg: Mellanox.com X-MS-Exchange-CrossTenant-OriginalArrivalTime: 26 Sep 2017 08:38:48.8202 (UTC) X-MS-Exchange-CrossTenant-FromEntityHeader: Hosted X-MS-Exchange-CrossTenant-Id: a652971c-7d2e-4d9b-a6a4-d149256f461b X-MS-Exchange-Transport-CrossTenantHeadersStamped: VI1PR0501MB1934 Sender: linux-kernel-owner@vger.kernel.org List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Content-Length: 2474 Lines: 65 --61jdw2sOBCFtR2d/ Content-Type: text/plain; charset=us-ascii Content-Disposition: inline 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. > > Signed-off-by: Arvind Yadav > --- > drivers/infiniband/hw/mlx5/mr.c | 4 ++-- > 1 file changed, 2 insertions(+), 2 deletions(-) Did you see it is happening? It is not needed after 4bcc595ccd80 ("printk: reinstate KERN_CONT for printing continuation lines") Thanks. > > diff --git a/drivers/infiniband/hw/mlx5/mr.c b/drivers/infiniband/hw/mlx5/mr.c > index 0e2789d..92d643a 100644 > --- a/drivers/infiniband/hw/mlx5/mr.c > +++ b/drivers/infiniband/hw/mlx5/mr.c > @@ -1229,13 +1229,13 @@ struct ib_mr *mlx5_ib_reg_user_mr(struct ib_pd *pd, u64 start, u64 length, > mr = alloc_mr_from_cache(pd, umem, virt_addr, length, ncont, > page_shift, order, access_flags); > if (PTR_ERR(mr) == -EAGAIN) { > - mlx5_ib_dbg(dev, "cache empty for order %d", order); > + mlx5_ib_dbg(dev, "cache empty for order %d\n", order); > mr = NULL; > } > } else if (!MLX5_CAP_GEN(dev->mdev, umr_extended_translation_offset)) { > if (access_flags & IB_ACCESS_ON_DEMAND) { > err = -EINVAL; > - pr_err("Got MR registration for ODP MR > 512MB, not supported for Connect-IB"); > + pr_err("Got MR registration for ODP MR > 512MB, not supported for Connect-IB\n"); > goto error; > } > use_umr = false; > -- > 1.9.1 > --61jdw2sOBCFtR2d/ Content-Type: application/pgp-signature; name="signature.asc" -----BEGIN PGP SIGNATURE----- iQIzBAEBCAAdFiEEkhr/r4Op1/04yqaB5GN7iDZyWKcFAlnKEhIACgkQ5GN7iDZy WKfN9w//Z2I3YrmqWGw/HrmiaEWZ2xRY4SSLf1LpX6IJlFNd/1+10LDmZwnTKxnU Su4h9ssmiO4RZ7g9Y1IxQrcOzAbj7xXGJgDI7qaS9otYsJCIZXB1lggUVIYf1uAe NBp2x8kX8T+/fN0VjZsPBA4vbWwSspkOdwkNCsni05fYZgLILKbW7SvzATX3IjEN XcZYatDEMGMSDgdZYuzHOqky7gE92oS3x6WiFvL1gyKqq8JkuFYc66s+LGkU5JNe KdRsL6k3V8gC3xKtffOx0RbGK2WGHVYBt7o/SEcTwayp0IN4Psult1P8cxNZyUdV n29JmDBYANn1ENo1Gjrfr3jVw4AqLW/Bdu+1XketgJVVU8HZj5MEzTrRhEvOBRSD H8c6jztOkdJYwBwK3hag+vG5/VViD9NQ0O3kX1UQKnsuziCCJLlyXBbOc4r1m79v xSeDu9ER6+c7pyJOq5RsG1lZAvkrx9pPX4/A9VWr8cffhhigq1u8Vv+86OEIoNsl nLTk0n9k5UlW4sPdYW5ZsClMWDORAxpLYaCCPfdKuPeg7iHiUbW6oPEH8n+WHp6V yb7mOwsbklZjpGA8MpNjHTqObLDdgjbmfGSY9ye2t1GovtU0CY8xk2EEWv0mqb0b BNMEICN9y+a72FkBkPkwr+f22Wx1mQdt1nvuP4nYwHtWa6GmmBY= =9aF0 -----END PGP SIGNATURE----- --61jdw2sOBCFtR2d/--