Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp957780pxb; Sat, 30 Oct 2021 02:35:49 -0700 (PDT) X-Google-Smtp-Source: ABdhPJzHtEXXyRRNqSBZTDVJnK3918Jr7zRDkw4LTu0v65cQWcAomW9ce2YQc66LyKlTEJ+B1Sir X-Received: by 2002:a92:c244:: with SMTP id k4mr9098410ilo.293.1635586549238; Sat, 30 Oct 2021 02:35:49 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635586549; cv=none; d=google.com; s=arc-20160816; b=jkKam6yVWST4D0t2u9/FTvPh3rWumRrqgTMisu92MG5XRNkYxB6Eb/+dp+0VmIA9mY iUf6noinKEF3To0XZQcNEBiUtb5wYAYfSdeQUOipJ9IPynfaqGqO352HJkGLg1TIn9bD NTGmGRkGz1jMgKM7l7vapzy4rNG+LnzPRsxd/buwJhPWHKU+tXGvHfxOwyfH7jx4R2TC rwy7nT9YK9Dvrdvb6uNbVmBw4YOVEGc2OxpOGoOYPq+inAqIQXWaSELvPcYdcMMfSiTk 1gIDMYy6WCy+ZvRq9x35/ZMJbMsMLewzE6f5ie5G8wmn5W3HSazwbCQ2CJmZg4IBusog lJKA== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:content-transfer-encoding:in-reply-to :organization:references:cc:to:from:content-language:subject :user-agent:mime-version:date:message-id:dkim-filter; bh=4bC385mAvae0/b7cxIYnCYb6+gBpbSzLlZW5jxUxVyw=; b=Z6j2kiLYTIiOI5hCwoi2YbkZlqNHswdmQ31Y4sxdz1ebkhDU2keYNx3Lcg6hOefc2R mETA4vKqZiOhiJpLOLKVt4TJEvRg9bqs41wP2xyv0KwgslC9fmjaWwrXJRuqWBLXoxEm mSXx8MyB9WAukYBa9VvuBc0qzucaGEhbGLSBUvLQgDPgvjxl8dUDfHoIDdzwa3bsB1kD ZAgOC2WfbnPENsqGfHfIhlI+FXudvGFEl8jyREElI8n1d882JyO810bKpANI6BS6B01I ZEQ+XhBlFjQlsMg95sCJ8AyXI/bmO20c202JkTcJ9yspLkuybOUkBAMrgPrmcJKdMw2W MOTQ== 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 n3si9404138jat.113.2021.10.30.02.35.36; Sat, 30 Oct 2021 02:35:49 -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 S230427AbhJ3Jfc (ORCPT + 99 others); Sat, 30 Oct 2021 05:35:32 -0400 Received: from mxout03.lancloud.ru ([45.84.86.113]:44048 "EHLO mxout03.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230394AbhJ3Jfb (ORCPT ); Sat, 30 Oct 2021 05:35:31 -0400 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout03.lancloud.ru 85CAD20EBD51 Received: from LanCloud Received: from LanCloud Received: from LanCloud Message-ID: Date: Sat, 30 Oct 2021 12:32:42 +0300 MIME-Version: 1.0 User-Agent: Mozilla/5.0 (Windows NT 6.3; Win64; x64; rv:91.0) Gecko/20100101 Thunderbird/91.2.1 Subject: Re: [PATCH 1/3] Docs: usb: update err() to pr_err() and replace __FILE__ Content-Language: en-US From: Sergey Shtylyov To: Philipp Hortmann , , , CC: References: <49a766ec-014e-3667-828c-a4fd19c7c9e3@omp.ru> Organization: Open Mobile Platform In-Reply-To: <49a766ec-014e-3667-828c-a4fd19c7c9e3@omp.ru> Content-Type: text/plain; charset="UTF-8"; format=flowed Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT02.lancloud.ru (fd00:f066::142) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 29.10.2021 23:33, Sergey Shtylyov wrote: [...] >> update err() to pr_err() and replace __FILE__ >> >> Signed-off-by: Philipp Hortmann >> --- >> Documentation/driver-api/usb/writing_usb_driver.rst | 4 ++-- >> 1 file changed, 2 insertions(+), 2 deletions(-) >> >> diff --git a/Documentation/driver-api/usb/writing_usb_driver.rst b/Documentation/driver-api/usb/writing_usb_driver.rst >> index 2176297e5765..5c29e5bdbe88 100644 >> --- a/Documentation/driver-api/usb/writing_usb_driver.rst >> +++ b/Documentation/driver-api/usb/writing_usb_driver.rst >> @@ -91,8 +91,8 @@ usually in the driver's init function, as shown here:: >> /* register this driver with the USB subsystem */ >> result = usb_register(&skel_driver); >> if (result < 0) { >> - err("usb_register failed for the "__FILE__ "driver." >> - "Error number %d", result); >> + pr_err("usb_register failed for the %s driver. " > > Don't break up the kernel message like this. The current code is a bad example -- > high time to fix it. :-) > >> + "Error number %d", skel_driver.name, result); Oh, and add `\n' at the end of message. [...] MBR, Sergey