Received: by 2002:a05:6a10:22f:0:0:0:0 with SMTP id 15csp436138pxk; Thu, 24 Sep 2020 09:07:23 -0700 (PDT) X-Google-Smtp-Source: ABdhPJy0JBAvAAiMD5znRpmebq1MvSNjhTafnq+A1q/q1olwZd5HH6s1RAMFKN93KdogUWgXIF1P X-Received: by 2002:aa7:d5d2:: with SMTP id d18mr612562eds.115.1600963643300; Thu, 24 Sep 2020 09:07:23 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1600963643; cv=none; d=google.com; s=arc-20160816; b=KIg3ZxD8skwxTwAhrWERCGzfgL8h2jojew3ux3vVTm3Nek2Uhs6mc9ASywqtr1VDfq QpNlN+UyBIAiOscrL1f5D2ngIHEt0zgQqK4bwLwx5izs/x2XdtWM1OG86DTO/svuIEn7 9iL/d3BMpEPF2CS1DLT6Zf9WnEYG70dQDyon5nfcnDn+4/Ym/Ha1FefpoLpkXmVAom5h XoQeYeNsvkrUMTPs5dkcHiCpqZyhtj5ouo1P3qd/aZaKj4NLNci1+8BJsPr3ld7A2hRj mN89qfNMRPCnGzZCxdeD+eAOaJeWTFILcqTPUgf0WE41gZeDhBOU1jpUOoSc4cD1jSy+ adQw== 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=Yik2PQAeObQjMgJYCL0EAebq/jYgB014Zu4pZ6WiLRU=; b=cj4B2k99kgr03lkfeEOyKtKGQxvRV8MVPQJmNXYS8pvKBlahnmIPAmgRhnvls5axlB ok60Ahaced31MCIHE8m6JnEgKPsDaW7i5XDs43z8VMjdYYabnSNFU1zwtd697OwOi9m2 rS0apAcu6mbn6qaBVCuMBz+pRjeWZsb9HfByBaucslHj578iXd7PtGhD2N2+ab+FB5BN zl7N7JvEuwMDgYFNGxMN3JXy+ig2y5YgON9MOfiPMI9VpvAITHTwsrE9v6sTftaFpVRA YyYUZbOcodsiyMOv3iJ+m4XYKrXvkLgXT3gX8Azd9tXNuqzQ6HgClEcbs2nLJiy8LO0R yBqQ== 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 d17si2699844edp.500.2020.09.24.09.06.55; Thu, 24 Sep 2020 09:07:23 -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; 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 S1728661AbgIXQFD (ORCPT + 99 others); Thu, 24 Sep 2020 12:05:03 -0400 Received: from smtprelay0247.hostedemail.com ([216.40.44.247]:37758 "EHLO smtprelay.hostedemail.com" rhost-flags-OK-OK-OK-FAIL) by vger.kernel.org with ESMTP id S1728641AbgIXQFD (ORCPT ); Thu, 24 Sep 2020 12:05:03 -0400 Received: from filter.hostedemail.com (clb03-v110.bra.tucows.net [216.40.38.60]) by smtprelay07.hostedemail.com (Postfix) with ESMTP id 6A350181D337B; Thu, 24 Sep 2020 16:05:01 +0000 (UTC) X-Session-Marker: 6A6F6540706572636865732E636F6D X-Spam-Summary: 2,0,0,,d41d8cd98f00b204,joe@perches.com,,RULES_HIT:41:355:379:599:973:988:989:1260:1277:1311:1313:1314:1345:1359:1437:1515:1516:1518:1534:1538:1568:1593:1594:1711:1714:1730:1747:1777:1792:2393:2559:2562:2828:3138:3139:3140:3141:3142:3622:3865:3867:3873:4321:5007:10004:10400:10848:11026:11232:11658:11914:12043:12048:12297:12438:12740:12760:12895:13069:13311:13357:13439:13972:14659:14721:21080:21627:30054: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:3,LUA_SUMMARY:none X-HE-Tag: face47_290156b27160 X-Filterd-Recvd-Size: 1629 Received: from XPS-9350.home (unknown [47.151.133.149]) (Authenticated sender: joe@perches.com) by omf04.hostedemail.com (Postfix) with ESMTPA; Thu, 24 Sep 2020 16:04:59 +0000 (UTC) Message-ID: <21cc553cc3a07e0952eb52a50149c323daff6041.camel@perches.com> Subject: Re: [PATCH 5/9] gpio: mockup: use pr_fmt() From: Joe Perches To: Bartosz Golaszewski , Linus Walleij , Jonathan Corbet , Andy Shevchenko , Kent Gibson Cc: linux-gpio@vger.kernel.org, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org, Bartosz Golaszewski Date: Thu, 24 Sep 2020 09:04:58 -0700 In-Reply-To: <20200924113842.11670-6-brgl@bgdev.pl> References: <20200924113842.11670-1-brgl@bgdev.pl> <20200924113842.11670-6-brgl@bgdev.pl> Content-Type: text/plain; charset="ISO-8859-1" User-Agent: Evolution 3.36.4-0ubuntu1 MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On Thu, 2020-09-24 at 13:38 +0200, Bartosz Golaszewski wrote: > We don't need a custom logging helper. Let's use the standard pr_fmt() > macro which allows us to use all pr_*() routines with custom format. [] > diff --git a/drivers/gpio/gpio-mockup.c b/drivers/gpio/gpio-mockup.c [] > @@ -577,7 +577,7 @@ static int __init gpio_mockup_init(void) > > pdev = platform_device_register_full(&pdevinfo); > if (IS_ERR(pdev)) { > - gpio_mockup_err("error registering device"); > + pr_err("error registering device"); You could add the missing newline at the same time.