Received: by 2002:a05:6a10:5bc5:0:0:0:0 with SMTP id os5csp434117pxb; Fri, 29 Oct 2021 12:41:05 -0700 (PDT) X-Google-Smtp-Source: ABdhPJznbOHBcrLOWrE+grLp9LLwUCn4m0XDFC6CI5+bLItwOSLwGxKQbB51pe8iF7FSgh5LYA/R X-Received: by 2002:a05:6638:1505:: with SMTP id b5mr9831370jat.99.1635536465082; Fri, 29 Oct 2021 12:41:05 -0700 (PDT) ARC-Seal: i=1; a=rsa-sha256; t=1635536465; cv=none; d=google.com; s=arc-20160816; b=w0T4G2H8yYrW8MXx9L+zZ6Q6OHeSWXyYgBujWaWyuySRo3x77IEr7NxMqFB6F4vk2l eg2ppZfS2TuQPfR5FEIZCWuXqt1kw5xYKlIyWd7DKxTdQW4WfykEsMfyvennNRD+AEyC jJZZeZv0kW7RcmU5BW3sfClObIWa82XiUtZhuS6Ri0YFoayC19RNQuWFKwkqqIZf9F74 wHS4AVckG7mQtSwvQyUs8Um6Y326lbl5qRgJ2Ytp8s8kZZBJ2xZs+IrIhr97p19kK7S/ hLuP51TuWPQwxJA9btgYSTOZToZCS6Zh+RRFUvayP6iCcT7/V1jYt41GPJcjlPGceh4W z9tw== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=list-id:precedence:in-reply-to:content-disposition:mime-version :references:message-id:subject:cc:to:from:date:dkim-signature; bh=JDiYoNK763JyIWioyKZZjE3flIapLP3PUXlqfcL7yP4=; b=rnySPCjx/s3cRQAjY1wB/nt8HPGNFUdq1YbpXW44Ej8Va5tQURH9VfuzOjhr+VPDsx mv8x4tlz/PqhbQKTtow0+sfzqtUwPVb25r8vO/S9m3h61Q7y2zw8o/d7Wj9QCPsmnf21 eP8KCppNJx9acJvD+OEAPmGl1NYQpC96cJef+kp3LXHh9uPHYsOwD6J7FBOkKZdqw07N jCABBfO55XCsag2bVnbJpnW4SpqVBFjW6Pnl9Q/7XHvKl+nRKmJ1hY5PQU9qfDpiEjWN vhziEdCUF+Xf45Q0DAe2cubAELUxaV7mJHe/m7oVus5ofIQmGMjHGo8njghlxrSlokG7 R8cw== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CULEJxsy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Return-Path: Received: from vger.kernel.org (vger.kernel.org. [23.128.96.18]) by mx.google.com with ESMTP id f15si10378526jav.112.2021.10.29.12.40.54; Fri, 29 Oct 2021 12:41:05 -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; dkim=pass header.i=@gmail.com header.s=20210112 header.b=CULEJxsy; 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; dmarc=pass (p=NONE sp=QUARANTINE dis=NONE) header.from=gmail.com Received: (majordomo@vger.kernel.org) by vger.kernel.org via listexpand id S230390AbhJ2TmZ (ORCPT + 99 others); Fri, 29 Oct 2021 15:42:25 -0400 Received: from lindbergh.monkeyblade.net ([23.128.96.19]:59986 "EHLO lindbergh.monkeyblade.net" rhost-flags-OK-OK-OK-OK) by vger.kernel.org with ESMTP id S230340AbhJ2TmY (ORCPT ); Fri, 29 Oct 2021 15:42:24 -0400 Received: from mail-wr1-x42b.google.com (mail-wr1-x42b.google.com [IPv6:2a00:1450:4864:20::42b]) by lindbergh.monkeyblade.net (Postfix) with ESMTPS id 9D59CC061714; Fri, 29 Oct 2021 12:39:55 -0700 (PDT) Received: by mail-wr1-x42b.google.com with SMTP id v17so18081065wrv.9; Fri, 29 Oct 2021 12:39:55 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20210112; h=date:from:to:cc:subject:message-id:references:mime-version :content-disposition:in-reply-to; bh=JDiYoNK763JyIWioyKZZjE3flIapLP3PUXlqfcL7yP4=; b=CULEJxsyaBq/m2gvs544NSjW1C+y0HJOtAaogTWvThZGfp7xQlkCfuiQJDCPQMHcnD VmwyaCFSnsPZVCjeH/hgfxNTbH6zqL1/DT4IiqEzQuAnl/Kqto6RzqEJNFXX9iWNfsjd Or912bm9LT0rlieHC41UPMz2S3Og5ML6ionayYHbjKMvzrEaxqXUUBoeyfYdvGN5EWym mfp/VRWtKD57EliPBHMlyNsuugSci0cU505WAqcSr/cqiocOGFZlIHCjWxh8vHxfeFN0 v7M05JDL1W22T2hsWQNx/ULhLcqAFDMRyESh0vUoEfndFlg9wobCRwx9Vb5c9bGFUUVs Gd0A== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20210112; h=x-gm-message-state:date:from:to:cc:subject:message-id:references :mime-version:content-disposition:in-reply-to; bh=JDiYoNK763JyIWioyKZZjE3flIapLP3PUXlqfcL7yP4=; b=Z1/5AP0pBYqR/B1B1SInmFQZoNJMlX/Ab9+jntEh34BJFa8eyXWz1I2ccrMX2l1lIF UszS3Q9eAsZoOjD+3LyWuA8JyQI1Qq6F6WFMY9BhHoTpu+v3wT0cVgyI1Tn5t0lW4pIx uVY8gvWJOCfRVUTgBjULSgWEOE69mm/gJAinPkW35K0sTxrhSlpby989/677/yOtN8EX QJCv64wuAk3p31SIMVxwnjJR/mHunDkmuc/gKeETrdQNBZSesKVEfwL518Gd9LOnQxoW TSjaFT53WSBhZIFYohdhYAyQbQ50osW3lBCQ7LIBZKlI8jdekWJvRsA30sHmMjGvATgt du/A== X-Gm-Message-State: AOAM530tAZYRwpnKuMK8a8DX/gg+IT92VV9TBbLG+zjj6HVUMtOmX8nU HJ/tsKiniKpHzwcl0FJH1Bt870AKAck= X-Received: by 2002:a7b:c7c6:: with SMTP id z6mr14643887wmk.125.1635536394213; Fri, 29 Oct 2021 12:39:54 -0700 (PDT) Received: from matrix-ESPRIMO-P710 (p200300c78f4e06341d0f9ebdf4bbe019.dip0.t-ipconnect.de. [2003:c7:8f4e:634:1d0f:9ebd:f4bb:e019]) by smtp.gmail.com with ESMTPSA id o17sm10022254wmq.11.2021.10.29.12.39.53 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Fri, 29 Oct 2021 12:39:53 -0700 (PDT) Date: Fri, 29 Oct 2021 21:39:52 +0200 From: Philipp Hortmann To: corbet@lwn.net, linux-doc@vger.kernel.org, linux-kernel@vger.kernel.org Cc: linux-usb@vger.kernel.org Subject: [PATCH 1/3] Docs: usb: update err() to pr_err() and replace __FILE__ Message-ID: References: MIME-Version: 1.0 Content-Type: text/plain; charset=us-ascii Content-Disposition: inline In-Reply-To: Precedence: bulk List-ID: X-Mailing-List: linux-kernel@vger.kernel.org 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. " + "Error number %d", skel_driver.name, result); return -1; } -- 2.25.1