Received: by 2002:a25:4158:0:0:0:0:0 with SMTP id o85csp1506103yba; Thu, 4 Apr 2019 12:10:00 -0700 (PDT) X-Google-Smtp-Source: APXvYqw1Y2bdi7zKE3RwCiHZ7hmm3bMoKQZkQfnnit2lTPCrwgFQJ63RcowijwPDINYU84my60g6 X-Received: by 2002:a65:5941:: with SMTP id g1mr7725613pgu.51.1554405000216; Thu, 04 Apr 2019 12:10:00 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1554405000; cv=none; d=google.com; s=arc-20160816; b=vQRMNgs3T/isYwXwCol3SG/Hc1J8A8jfG8g4xUto/jsPNB/ULppT0rjFDlCZJsIZ0x 6FVUAgBMFbGKRAAaws8bXYeNqFGR3kgOQwXFGF4ftvvwA1O5RYRcHAy6p+MmT0DUmLBE U1UNwHje/+dX7etJetncjCoJcMlOmlJGNqahp+QIBtD0EgMqr/hkhBkCX5c+dcU0tOVp W8DBn/nqm9nIYbx1p0Hw22u+2o2gcL1Tpj6x5IoZ59LOCiXALhJzYYlDx8CSDcNEFCLY srpAgDz2gKCtqpQ5DXnv5sILOWxSeHDev1wK1r2F4qOVBhMuCXoOvLrDkfUiIK8eYKo/ SX0Q== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:sender:user-agent:in-reply-to :content-disposition:mime-version:references:message-id:subject:cc :to:from:date; bh=XNGkZPfWpFbF+0GqRjiBEd9RRaZa1ESc/f/pB71L82c=; b=jtdbiExCR5pkOv1Dgil3gTB3xMsnRPZh4UUVdCbW2iurs/+bZyW4Bt96cGYlSSem4Z C65dZv0PfKox2H6uAFu4Mvetxto87DPlD+1gsg1SnmhnbdsizxyJtW7dywvTCEJNI+hX 7KS37oVi0NFcmcB5OAAH9FkzaMRJzQ6WFuDFb46I7ICNMNY+w7+TfVwS/QAgwag9cTjP CAw1AS+FvpaEgOxp/bDZtmaWNOvdY58nvEAC8PV+oBFwCH/mCxS9PRA/1e2yq6wzXhP9 TsVCSrU/aMBPOKL9LWvjByJjrtH+z2M1rxMrMCsWB+r9+JWrCLPU88goy/JcZSkrwdXI gFbw== 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 e36si16730390pgm.89.2019.04.04.12.09.45; Thu, 04 Apr 2019 12:10:00 -0700 (PDT) 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 S1730078AbfDDTJH (ORCPT + 99 others); Thu, 4 Apr 2019 15:09:07 -0400 Received: from asavdk3.altibox.net ([109.247.116.14]:37960 "EHLO asavdk3.altibox.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1729848AbfDDTJG (ORCPT ); Thu, 4 Apr 2019 15:09:06 -0400 Received: from ravnborg.org (unknown [158.248.194.18]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by asavdk3.altibox.net (Postfix) with ESMTPS id 5BB1D20025; Thu, 4 Apr 2019 21:09:00 +0200 (CEST) Date: Thu, 4 Apr 2019 21:08:58 +0200 From: Sam Ravnborg To: Joe Perches Cc: Guido =?iso-8859-1?Q?G=FCnther?= , Thierry Reding , David Airlie , Daniel Vetter , Rob Herring , Mark Rutland , Kevin Hilman , Manivannan Sadhasivam , Shawn Guo , Jagan Teki , Martin Blumenstingl , Johan Hovold , "David S. Miller" , Mauro Carvalho Chehab , Greg Kroah-Hartman , Nicolas Ferre , dri-devel@lists.freedesktop.org, devicetree@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH] drm/panel: Rocktech jh057n00900: Add terminating newlines to logging Message-ID: <20190404190858.GA8008@ravnborg.org> References: <20190403161735.GN5238@ulmo> <1ed5eb3af4df6b2dd1544c7b696e034ed5c94f06.camel@perches.com> <20190404105359.GA8255@bogon.m.sigxcpu.org> <20190404170040.GA23897@ravnborg.org> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: User-Agent: Mutt/1.5.21 (2010-09-15) X-CMAE-Score: 0 X-CMAE-Analysis: v=2.3 cv=dqr19Wo4 c=1 sm=1 tr=0 a=UWs3HLbX/2nnQ3s7vZ42gw==:117 a=UWs3HLbX/2nnQ3s7vZ42gw==:17 a=jpOVt7BSZ2e4Z31A5e1TngXxSK0=:19 a=kj9zAlcOel0A:10 a=Wvc7zV2IR4HhXB_Na8QA:9 a=CjuIK1q_8ugA:10 Sender: linux-kernel-owner@vger.kernel.org Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org Hi Joe. > > > > > > ret = mipi_dsi_dcs_exit_sleep_mode(dsi); > > > if (ret < 0) { > > > - DRM_DEV_ERROR(dev, "Failed to exit sleep mode"); > > > + DRM_DEV_ERROR(dev, "Failed to exit sleep mode\n"); > > > > I was under the impression that newlines was optional these days. > > Should we always use them with logging? > > Yes. > > The general problem is KERN_CONT/pr_cont uses where interleaving > is still possible from multiple threads. > > > I did not find any obvious clues in linux/printk.h > > I'll see about adding something one day to the Documentation. > Likely in coding-style.rst. Thanks for the clarification. A seperate doc on logging would be awesome. Sam