Received: by 2002:a05:6a10:f347:0:0:0:0 with SMTP id d7csp4654856pxu; Thu, 10 Dec 2020 02:01:58 -0800 (PST) X-Google-Smtp-Source: ABdhPJyKEb6snJe6jWyexNaIHvaKi6p8x56cnSkf7V1koKLIHCLkKnrqaVP4LS+ztB8Msz9pUnE8 X-Received: by 2002:a05:6402:149a:: with SMTP id e26mr5690673edv.150.1607594518744; Thu, 10 Dec 2020 02:01:58 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1607594518; cv=none; d=google.com; s=arc-20160816; b=ITfDQLB4A+k5MyXvvwPBjL65Ke3O8Qa0eUdM29UhSbES/p8R/pT5C9acPpnu0DmeF+ dtEVLHKiIpdSPvpL7Ci2XFfoCvGG+r6Ar4Pwokj3Bxd71eDVs4PmuipuNLsJRtwWD91Y HQuqXa5vV7bI6DpEjRGBnl9/J0AcAtsKZRhp8l798S2Ma/sSSqmzvpuYS2DMmQj6+k8T 1t12tgyKIOJ8KtE1u4xolgvHOA21K1sHIn1eKmUXXeD1C/+vqKzQCQ1InpfVF8ApIWdW rloUQ03k3ECK4zhkmvbdeMgY1GnZLThr5Gsw7dPd0lmvyxbmZzc/IoYh7v84Ov1dqa8B FUig== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:content-language :in-reply-to:mime-version:user-agent:date:message-id:from:references :cc:to:subject; bh=Vl9mW8m8vFplw+CyswACJbdwQo3aPwOF45+/U/d81/k=; b=lo6yan9qKiDRwFpLqYi6/HdHEr24sqeAqbF3+fmV2Dq3u4f1mKDKUt/UfaPNPU7l1c tOKcYwiXTr7fJAa96zZiQNoNs4Zg43zZ1pF1bEAfpYs6x5f2fxgDk76QERTXBOhnBFDt P5oqEVbFfMuJ+r5B7wqY3NgI/ZB/CHJQCJUtG80F9zlg48aoqKhiaBT389i0zDdiPfqJ HgbWt2/AoQBopFTpzDy92v/YZyDzBU0YB6MZuZOMjii1Ye8rh+GRuORirwbgO/Yg1A6l 4/v756MDBeKlU5PdBzt/jj9PQdum8A+/qUgBKWkWPsC6/kw3uszKtB6rRmbK+GlmYUD7 LfGQ== 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 k25si2567789ejk.415.2020.12.10.02.01.36; Thu, 10 Dec 2020 02:01:58 -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 S1728013AbgLJJ7i (ORCPT + 99 others); Thu, 10 Dec 2020 04:59:38 -0500 Received: from mout.kundenserver.de ([217.72.192.75]:59853 "EHLO mout.kundenserver.de" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S1725789AbgLJJ7i (ORCPT ); Thu, 10 Dec 2020 04:59:38 -0500 Received: from [192.168.1.155] ([95.117.52.229]) by mrelayeu.kundenserver.de (mreue109 [212.227.15.183]) with ESMTPSA (Nemesis) id 1MWiYo-1kcBmu2YCO-00X5bV; Thu, 10 Dec 2020 10:57:00 +0100 Subject: Re: [PATCH] drivers: usb: gadget: prefer pr_*() functions over raw printk() To: Laurent Pinchart , "Enrico Weigelt, metux IT consult" Cc: linux-kernel@vger.kernel.org, balbi@kernel.org, leoyang.li@nxp.com, linux-usb@vger.kernel.org, linuxppc-dev@lists.ozlabs.org References: <20201208144403.22097-1-info@metux.net> <9aaa06ad-0bd8-486d-b16b-66927d57cf96@metux.net> From: "Enrico Weigelt, metux IT consult" Message-ID: Date: Thu, 10 Dec 2020 10:56:57 +0100 User-Agent: Mozilla/5.0 (X11; Linux i686 on x86_64; rv:68.0) Gecko/20100101 Thunderbird/68.12.0 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset=utf-8 Content-Language: tl Content-Transfer-Encoding: 8bit X-Provags-ID: V03:K1:1tUVJHur9zX95g721i8+x6mG6wmouby4GJKEfF1tz4XFWPNrZ/7 F/0YH1fgIF4zjb7qtk769Vi6cM6ZT1UpgNGxpgfJFc3Y8jNwzPj2TmcoXUq0af5R6PG7Cze 3ww1YZu6Pn1HrVV0QNEF+0u5U+s59/S9tsVcs7TOCV4xAotexcMORVBjoQdls4A6O5RRf72 sHzHjeee9qCCdyHhmKrzA== X-Spam-Flag: NO X-UI-Out-Filterresults: notjunk:1;V03:K0:Kb6OzIMvFl4=:rt/1WtbPXoLMRyWeiCU41R oPxy4MeGjWDuZZWU/5ZXBZTY6ShAijSpX2bD/Ce5B/T1hHtxc5aGtKWV5BIthsI2EFxkgcd5A D9XBLw1y/YfamZbgE2G3uVLSzOkBVQYKxK29Rogz/po6s3PeJCTL0smxPn/9PoMlpMD/teemQ i+arF87oYz+cjnLAyi9phGgZruYZpZd7MsAZVpvdzFd9OeP3SDNndUkOMTzuzssORdVJqEKS6 sJ41mQMbo5p7cw0wFgRsMM/D5KlO3ogbvGQbVppmSB8AoZy+T/Nh+d+f92iFKm4EQTDm4snQm 3YMzq0lWvy7YY1EZ371l455OoaBjObKUujxiYhNgkbm6e8ebxda9LYL2raObopumPmXYsx4GS jgwHEYPqEYjP8AeC1qxy9jnJxmayr4HHzCuxfduDaJ1MfB5efUX9CCuh+uRJH Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 09.12.20 12:27, Laurent Pinchart wrote: Hi, >>> I wonder if this shouldn't be dropped instead, commented-out code isn't >>> very useful. >> >> Indeed. Shall I send a separate patch for that ? > > Yes, that would make sense. Okay, I'm currently doing a more in-depth rework. I'll send another patch queue later. Since I don't own the corresponding devices, I can't do much testing (just build tests and careful review), so I need some help w/ that. > As most of the files touched by this patch are device drivers, dev_*() > functions should be used instead of pr_*() where possible. I'd recommend > a first patch that converts to dev_*(), and then a second patch that > converts the remaining printk()s, if any, to pr_*() in the contexts > where no struct device is available or can easily be made available. I'm now splitting it into per-driver patches. They're getting a bit bigger, since I'm also replacing some debug macros, etc. In some cases I'm introducing new helpers for not having to write long expressions to get the actual dev ptr, adding some prefixes (eg. per usb endpoint logging, ...). --mtx -- --- Hinweis: unverschlüsselte E-Mails können leicht abgehört und manipuliert werden ! Für eine vertrauliche Kommunikation senden Sie bitte ihren GPG/PGP-Schlüssel zu. --- Enrico Weigelt, metux IT consult Free software and Linux embedded engineering info@metux.net -- +49-151-27565287