Received: by 2002:a05:6a10:f3d0:0:0:0:0 with SMTP id a16csp3714728pxv; Tue, 13 Jul 2021 01:54:48 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyjxFVLPoijHbB+kTf97dcKweGisVHzl5JNOSVT2m5MYG0BgEGd80GyCNz4mQssEK9oXM0A X-Received: by 2002:a02:a595:: with SMTP id b21mr3032547jam.122.1626166488219; Tue, 13 Jul 2021 01:54:48 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1626166488; cv=none; d=google.com; s=arc-20160816; b=ny8qo9WFuZmPP8Pw0idZIinbiW9TxOHvK3SCdZ/x3cujP54Ghv1Wm0BI7lydX0lVPU xYyISVDcaI821Y6TevaNPo2XcaVJD83kvNwuxWUNRw5gawEjzt1yeJ5FOa+yZsVs8xVJ zrGEmlu3UXie5fM6p2nQBfSFpTQ5Jd+wiahdPx5R/3Fag5A1tSClh1hgBWy9UjXQbvQO oVOT2N+pbu49uNpnWP+v88b3gcHKPeU30l61IKcV67aL3sIcJaVIHOuoU4cnkRCUAMWv l75FOUGLBa3S5uk4HrwIz+asPP0YNklPcbqNQ63S3wZW2H3jFggA5UCC9pKiOWg6TJG2 zJzg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:user-agent:in-reply-to:content-disposition :mime-version:references:message-id:subject:cc:to:from:date :dkim-signature; bh=F/kIDyDxCDAZ65dik0ZxleOTeKPdrYNMTX24lbgutx8=; b=mMI07NDVnuESpyWgk52ub7UjLPHxmE66TDRj9eZrZjeHsuiS2PqE3M0J1JX/Mfs1Fp up0gfX4/GBW3lN0QdUJTiSSqAbzyJA6wz1NUXs9d+moWzwEIbWx931Nns7Ga8r4ZX0t9 74a0BjzQkGZCGWBfZa35LE575jOUbV06O+Po1litCidcRQgsVGKYl5KwwA95vC87rWQW gQ13Dt1/1KijBPYlheWrNqJGPRJ7zGOD6eIbzwaOwI+nSgQnH0rGb7w08PrqkEtLd8PL 59P67afcczkKeCZZKpMQ6/TnJ9LKomwovGZiWHSsRQyWkWEPcxHHBnSYdVbTTlkQwTbE OhiQ== ARC-Authentication-Results: i=1; mx.google.com; dkim=fail header.i=@mess.org header.s=2020 header.b=Lrgc7lYL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id y18si9153257iow.54.2021.07.13.01.54.34; Tue, 13 Jul 2021 01:54:48 -0700 (PDT) Received-SPF: pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) client-ip=23.128.96.18; Authentication-Results: mx.google.com; dkim=fail header.i=@mess.org header.s=2020 header.b=Lrgc7lYL; spf=pass (google.com: domain of linux-kernel-owner@vger.kernel.org designates 23.128.96.18 as permitted sender) smtp.mailfrom=linux-kernel-owner@vger.kernel.org Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S234745AbhGMIzw (ORCPT + 99 others); Tue, 13 Jul 2021 04:55:52 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:51490 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S234599AbhGMIzv (ORCPT ); Tue, 13 Jul 2021 04:55:51 -0400 Received: from gofer.mess.org (gofer.mess.org [IPv6:2a02:8011:d000:212::1]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 31249C0613DD; Tue, 13 Jul 2021 01:53:02 -0700 (PDT) Received: by gofer.mess.org (Postfix, from userid 1000) id E2EC7C64D7; Tue, 13 Jul 2021 09:52:59 +0100 (BST) DKIM-Signature: v=1; a=rsa-sha256; c=simple/simple; d=mess.org; s=2020; t=1626166379; bh=G/2d8fKlYxrIrlXIyG7DS5u7VSl3e6PA0spKSFRiuCc=; h=Date:From:To:Cc:Subject:References:In-Reply-To:From; b=Lrgc7lYLc4gcn41dqJI+og4bYsq+wTJ6k2As1pzNKfvFlPi6zw+ZFw48JX18+FsEl 9hrUU6t0A8+Ym80jV1+ZAKdSvDOgLcE03tuSrXst1eqOd8jn/m0yxCqwVn4kHH/YW+ gdpX296eA6h0vP6O0DQnWBMZt2J7o61d+MjnfXHuxcGwEUNFDtzOp3NH8HDVV4zPsQ imZJAg8qdz0GT8atWov7KV3fwpG5eAcBwFvTn/2fBIOYC1uBFoK+vunqDQP2owGmIl x/Jra06jmSh8Kf+JvZnI0pMDLNMelo1TWfNZ43DioxhdMMyOWte8P0wFTUBSIamA5K OUVRJ8Uj0Oyhg== Date: Tue, 13 Jul 2021 09:52:59 +0100 From: Sean Young To: Dongliang Mu Cc: Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Subject: Re: [PATCH 1/3 v2] media: dvb-usb: break long strings in dvb_usb_device_init Message-ID: <20210713085259.GB6572@gofer.mess.org> References: <20210621113959.53320-1-mudongliangabcd@gmail.com> MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: <20210621113959.53320-1-mudongliangabcd@gmail.com> User-Agent: Mutt/1.10.1 (2018-07-13) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Mon, Jun 21, 2021 at 07:39:59PM +0800, Dongliang Mu wrote: > Break long strings into multiple lines. > > Signed-off-by: Dongliang Mu > --- > drivers/media/usb/dvb-usb/dvb-usb-init.c | 8 +++++--- > 1 file changed, 5 insertions(+), 3 deletions(-) > > diff --git a/drivers/media/usb/dvb-usb/dvb-usb-init.c b/drivers/media/usb/dvb-usb/dvb-usb-init.c > index 28e1fd64dd3c..edc477cedaa9 100644 > --- a/drivers/media/usb/dvb-usb/dvb-usb-init.c > +++ b/drivers/media/usb/dvb-usb/dvb-usb-init.c > @@ -286,13 +286,15 @@ int dvb_usb_device_init(struct usb_interface *intf, > > desc = dvb_usb_find_device(udev, &d->props, &cold); > if (!desc) { > - deb_err("something went very wrong, device was not found in current device list - let's see what comes next.\n"); > + deb_err("something went very wrong, " > + "device was not found in current device list.\n"); Long lines are acceptable unto 100 columns or more if they are string constants. Breaking them up does not increase readability. > ret = -ENODEV; > goto error; > } > > if (cold) { > - info("found a '%s' in cold state, will try to load a firmware", desc->name); > + info("found a %s in cold state, will try to load a firmware", > + desc->name); No reason for removing the quotes, I think. > ret = dvb_usb_download_firmware(udev, props); > if (!props->no_reconnect || ret != 0) > goto error; > @@ -314,7 +316,7 @@ int dvb_usb_device_init(struct usb_interface *intf, > if (du) > *du = d; > > - info("%s successfully initialized and connected.", desc->name); > + info("%s is successfully initialized and connected.", desc->name); "is" doesn't really add anything here, and the message is fine without it. > return 0; > > error: > -- > 2.25.1