Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp478893pxb; Fri, 29 Oct 2021 13:37:50 -0700 (PDT) X-Google-Smtp-Source: ABdhPJyD0bh2XpOLE4o7zyMIJWe/F3fVNPxALjHo0xEGB1v/M+QGbOdCdoJf+sfjwi0xZCzHl74w X-Received: by 2002:a17:907:3e0a:: with SMTP id hp10mr17093562ejc.156.1635539870628; Fri, 29 Oct 2021 13:37:50 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635539870; cv=none; d=google.com; s=arc-20160816; b=K2Rp9YxgtqF/kco0k0+8dGjRB0oheNrwwXE224kfRB4O74tewFZy0T8PqL203giwJx QtJDLnJcVbsnB8OR7B4L1izMUkY4sGINjMV0NyYZD8IylIdDLpteG83B1vr4tiCwHFlr sDAkip/7rP94PZB3/nOO1fLTF8xb5nxXRUQkiS4J3gCFLCi/mGjjituCDs9LfH3TAdXQ w5ypNrkdxOUzAAOr+TW1AuV8PxOUNmnKelKmU1WZSH1nInCOGrDgCaGyt3l3ujx8M2jk CAZVVK145CcxCA6N6XeSaVzRVjwT/F5tM2cUVQvPofbDMcS5wj5kOvlKbRa+RjI5TJf5 Uffg== 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:organization :from:references:cc:to:subject:dkim-filter; bh=2db6kCnK96FujHC4SKNnj5M4Z+hQer33Si+UWOMIqcY=; b=e9v34kxb91dLGJemlh0OU+8CLPNBXrWx0kvyMKOPUkRI20l0MM6xOHai0Sy2w1SL6P nEBfoGSCuEf4vNz2CZJ0tzVREC6ELYOanL7TS8XA2RdbVGLf0z5t94yo9DsTyvbqPjn4 id2p3hVA3LIeZN0IM5t+O4dvlmuYQa71qzm/oyVz7fz+X5rz/dQKrJYRwWWF9Fvd/gMP 3MfEpCGhGWas1cEz1HO9RESaRgk6HH358yTnicENODuM/ZslFEwAfc8mAf/UOFB+GsL4 OKUTfp2VOfkW4z7o5rS4/SuY1z837n8fX3ACd0dAyHub+Sl+5qfBFnDGRE3y7evRONiT 7X+g== 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 js8si12776377ejc.754.2021.10.29.13.37.27; Fri, 29 Oct 2021 13:37:50 -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 S231527AbhJ2Ufv (ORCPT + 99 others); Fri, 29 Oct 2021 16:35:51 -0400 Received: from mxout03.lancloud.ru ([45.84.86.113]:55882 "EHLO mxout03.lancloud.ru" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S231463AbhJ2Ufu (ORCPT ); Fri, 29 Oct 2021 16:35:50 -0400 Received: from LanCloud DKIM-Filter: OpenDKIM Filter v2.11.0 mxout03.lancloud.ru E52BF208D528 Received: from LanCloud Received: from LanCloud Received: from LanCloud Subject: Re: [PATCH 1/3] Docs: usb: update err() to pr_err() and replace __FILE__ To: Philipp Hortmann , , , CC: References: From: Sergey Shtylyov Organization: Open Mobile Platform Message-ID: <49a766ec-014e-3667-828c-a4fd19c7c9e3@omp.ru> Date: Fri, 29 Oct 2021 23:33:17 +0300 User-Agent: Mozilla/5.0 (X11; Linux x86_64; rv:78.0) Gecko/20100101 Thunderbird/78.10.1 MIME-Version: 1.0 In-Reply-To: Content-Type: text/plain; charset="utf-8" Content-Language: en-US Content-Transfer-Encoding: 7bit X-Originating-IP: [192.168.11.198] X-ClientProxiedBy: LFEXT01.lancloud.ru (fd00:f066::141) To LFEX1907.lancloud.ru (fd00:f066::207) Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org On 10/29/21 10:39 PM, Philipp Hortmann 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); > return -1; > } > MBR, Sergey