Received: by 2002:a05:6a10:16a7:0:0:0:0 with SMTP id gp39csp40277pxb; Wed, 4 Nov 2020 13:53:38 -0800 (PST) X-Google-Smtp-Source: ABdhPJyv1QSj1r3K3RoGem1CsF6Cr9cXkuLIDefaXv1WJ1F25ThxnBHGvaePfyw5kDboYSVRCZjN X-Received: by 2002:aa7:cb0f:: with SMTP id s15mr25368226edt.338.1604526817933; Wed, 04 Nov 2020 13:53:37 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1604526817; cv=none; d=google.com; s=arc-20160816; b=HS0uHfgCVhy+PfwcTLUIxf210g6x3V7OpWtk/2ALZI3KegVwLXrPb9/oUPQg1So/Si rYvtJeoy3twePxhgGeZU6aP0FP8uJINBRD5MUDZCKn9z4MGdISoT53kJvbDq9kxkgS4M L/wDBFmUr5/Z1JPeIv76+FCufce4z1ey+c5GrcSpdTJryuyhPh2bLYhieSOSwtOMVjjd VM6ZPwm6PlxU6Nvzvt/vRFqzUQYplOJOwDFRArRDF0XSq0R4eu5sEKCHUgJaR9RLULXe oRYKO6B2ADSgcHrGzOMqBj082u+SE+/msvfGQmPGdeltpOBE0S18klpQMhegryBl0Q4M g2Iw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:mime-version :user-agent:references:in-reply-to:date:cc:to:from:subject :message-id; bh=sF0Ct99PT0PE2AYKxbnkVdexMsalsPzZC4my/yK0P40=; b=UmSRD0HGMZhbFnGFblRYrEP2Ukw2GC9ndBNS6bacJ7HL+AAxeydYtQo/u15YwsJJ3v 2aqcXp+zAU9gcsCLO3ljPLqiF5JqdXwGbm6RdwXTLCklcSFyl+fFuzL2WJLZL0zfowTA i/FlCKZ7Wyqpimui7k/z+HuuIyXKXv1/Mmq1tjSBvqCil4U8BRNzJtbWtegNwqWRt9ID sK48HtmqL9CagRIdq8idI/J9Bpnn6ZdbRhffNsoQen5XcaP31uvzivWrpTKpdK1mOMSb 1GB7GD/r/OZ19crLeopBgWpVhBlY8/6Ns5frU/Ks9CTmOrpju00JVkMIuHwzQE5VZqRa MgWw== ARC-Authentication-Results: i=1; mx.google.com; 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 20si2237183ejw.320.2020.11.04.13.53.15; Wed, 04 Nov 2020 13:53:37 -0800 (PST) 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; 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 S1729913AbgKDVvd (ORCPT + 99 others); Wed, 4 Nov 2020 16:51:33 -0500 Received: from smtprelay0188.hostedemail.com ([216.40.44.188]:55118 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1726777AbgKDVvc (ORCPT ); Wed, 4 Nov 2020 16:51:32 -0500 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay06.hostedemail.com (Postfix) with ESMTP id 9427C18224D7B; Wed, 4 Nov 2020 21:51:31 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:960:968:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1541:1593:1594:1711:1730:1747:1777:1792:2110:2393:2553:2559:2562:2828:2895:3138:3139:3140:3141:3142:3353:3622:3865:3866:3867:3868:3870:3872:3874:4250:4321:4384:5007:6119:7903:8660:10004:10400:10848:11232:11658:11914:12296:12297:12740:12760:12895:13069:13071:13148:13230:13311:13357:13439:14096:14097:14180:14659:14721:14819:21060:21080:21324:21433:21627:21740:21939:30029:30054:30070:30090:30091,0,RBL:none,CacheIP:none,Bayesian:0.5,0.5,0.5,Netcheck:none,DomainCache:0,MSF:not bulk,SPF:,MSBL:0,DNSBL:none,Custom_rules:0:0:0,LFtime:2,LUA_SUMMARY:none X-HE-Tag: quilt95_2215801272c4 X-Filterd-Recvd-Size: 2373 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf10.hostedemail.com (Postfix) with ESMTPA; Wed, 4 Nov 2020 21:51:30 +0000 (UTC) Message-ID: <9d439214e8c83ebf7b93dccca2f848fbaf75b9d4.camel@perches.com> Subject: Re: [PATCH v2 1/7] media: uvcvideo: Use pr_cont() macro From: Joe Perches To: Laurent Pinchart Cc: Ricardo Ribalda , Mauro Carvalho Chehab , linux-media@vger.kernel.org, linux-kernel@vger.kernel.org Date: Wed, 04 Nov 2020 13:51:29 -0800 In-Reply-To: <20201104214201.GH29958@pendragon.ideasonboard.com> References: <20201104180734.286789-1-ribalda@chromium.org> <20201104180734.286789-2-ribalda@chromium.org> <87769d554b4575bf9371380b013e66d70f1b21c4.camel@perches.com> <20201104214201.GH29958@pendragon.ideasonboard.com> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.38.1-1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Wed, 2020-11-04 at 23:42 +0200, Laurent Pinchart wrote: > Hi Joe, Hi Laurent. > On Wed, Nov 04, 2020 at 11:29:30AM -0800, Joe Perches wrote: > > On Wed, 2020-11-04 at 19:07 +0100, Ricardo Ribalda wrote: > > > Replace all the uses of printk(KERN_CONT ... with pr_cont(). > > > > Perhaps remove the uvc_printk macro and uses and use the more > > common pr_fmt and pr_ mechanisms. > > I'd actually go for dev_* instead, to give some context. It's fairly > common to have multiple UVC devices connected to a system, so printing > the device name would be useful. It can still be wrapped with > uvc_printk() if we want to wrap the cast from uvc_device to a struct > device (we should actually try to get the device corresponding to the > USB interface where available, so we should use uvc_streaming->intf->dev > where possible, and fallback to uvc_device->udev->dev otherwise), or > drop the wrapper completely. Of course yes. I was not going to look around and update the existing call sites to find whatever controlling uvc_device * or other struct * to a real device that exists though. It's not even clear from the changes that an appropriate pointer to some struct exists in all the functions. That's work for someone that knows the actual subsystem and I do not. cheers, Joe