Received: by 2002:a05:7412:e794:b0:fa:551:50a7 with SMTP id o20csp1988376rdd; Thu, 11 Jan 2024 16:12:26 -0800 (PST) X-Google-Smtp-Source: AGHT+IFNP90sJOWG5OOgV5fQ9mA9Jbp0RlM73DGY/2x9VOhbQmTxsS9AkKDFipznzCrlKn5casic X-Received: by 2002:a05:622a:150:b0:429:996b:cc5e with SMTP id v16-20020a05622a015000b00429996bcc5emr695603qtw.116.1705018346327; Thu, 11 Jan 2024 16:12:26 -0800 (PST) ARC-Seal: i=1; a=rsa-sha256; t=1705018346; cv=none; d=google.com; s=arc-20160816; b=hLlWA/+tq/eBHsyiTavYspH158YiQmnJCkyrdfzPYay2w2KQyyvpEJ4s4CyeaOMHNI mMxudL9gqbqxix89z8y4Jg0HD3McDd9rEukeLX9sMkua8i3pnJMEc1hQ8cGZ7MWnQeoo OA2cLR12nL0q5lWyAOqvEEcXVFoa4Ezz2ozRC13VXIS+BuXAphIaH43U8I9lEfaj9lvK FKsHHkZHu24fsI4RtdugGI31lyNGuDAT3wg1Om5BpZs/dLOIMEdm0XSgjUHY5eyJF2q2 8MexVkT/Zp2HnmJ3bnMLXt76cIe3rVdGw9LC5wUuhWB5AJhAJB+Aq/99I70bQ5iWv/h9 5pYg== ARC-Message-Signature: i=1; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:list-unsubscribe :list-subscribe:list-id:precedence:date:message-id:dkim-signature; bh=7RDR8Pr11m33UGsfaCe6Ai28GS+cdafGrto8H86VV/I=; fh=KXblu6p3hHT0qDooVeNjLOcoM3oYqtlTnrnGv62Rq+w=; b=V9/yqtiIvxxmC1wf/WnIgbxC8LW0EQxtn7nOHWQ5CdDbfcnj4o7LbDCd6iL3MDS1SI 4stqUrt8HbM/LCTIczWODZaBDpEB7HZZiHBbn7UAHAHuNWf2SXil42ALiDcq0V1Pb9U3 Eme7VDqagmnb4CRCUf2kp9yZ3QRGBQfsTN1+oipY4SLOh0+/OJfSGlBzTan2X07+IenA vT19isJkvSwWBte0bHzxyFLEt1Z5gPEEvMT7p2YjdF3/2I8Mo6ha1gaEG2pK8mNfzuVu SgfiB6Ma7k+KEZ/9ATW9rgSWDse4gCHj2MRoZp6GZEoT7kk6jXfYBgZGkE/DK4Tqh9GL 9fdg== ARC-Authentication-Results: i=1; mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=PyOD8stm; spf=pass (google.com: domain of linux-kernel+bounces-24172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24172-linux.lists.archive=gmail.com@vger.kernel.org" Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [2604:1380:45d1:ec00::1]) by mx.google.com with ESMTPS id hb9-20020a05622a2b4900b004282be719e5si2008139qtb.803.2024.01.11.16.12.26 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 11 Jan 2024 16:12:26 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-24172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) client-ip=2604:1380:45d1:ec00::1; Authentication-Results: mx.google.com; dkim=pass header.i=@kernel-dk.20230601.gappssmtp.com header.s=20230601 header.b=PyOD8stm; spf=pass (google.com: domain of linux-kernel+bounces-24172-linux.lists.archive=gmail.com@vger.kernel.org designates 2604:1380:45d1:ec00::1 as permitted sender) smtp.mailfrom="linux-kernel+bounces-24172-linux.lists.archive=gmail.com@vger.kernel.org" Received: from smtp.subspace.kernel.org (wormhole.subspace.kernel.org [52.25.139.140]) (using TLSv1.2 with cipher ECDHE-RSA-AES256-GCM-SHA384 (256/256 bits)) (No client certificate requested) by ny.mirrors.kernel.org (Postfix) with ESMTPS id 1B99B1C2362A for ; Fri, 12 Jan 2024 00:12:26 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id 1FEBD7F2; Fri, 12 Jan 2024 00:12:14 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=kernel-dk.20230601.gappssmtp.com header.i=@kernel-dk.20230601.gappssmtp.com header.b="PyOD8stm" Received: from mail-pl1-f182.google.com (mail-pl1-f182.google.com [209.85.214.182]) (using TLSv1.2 with cipher ECDHE-RSA-AES128-GCM-SHA256 (128/128 bits)) (No client certificate requested) by smtp.subspace.kernel.org (Postfix) with ESMTPS id 36FB2A38 for ; Fri, 12 Jan 2024 00:12:10 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; dmarc=none (p=none dis=none) header.from=kernel.dk Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=kernel.dk Received: by mail-pl1-f182.google.com with SMTP id d9443c01a7336-1d48a8ed85bso13974795ad.0 for ; Thu, 11 Jan 2024 16:12:10 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=kernel-dk.20230601.gappssmtp.com; s=20230601; t=1705018330; x=1705623130; darn=vger.kernel.org; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :from:to:cc:subject:date:message-id:reply-to; bh=7RDR8Pr11m33UGsfaCe6Ai28GS+cdafGrto8H86VV/I=; b=PyOD8stmN/7L8sDSpudWErBJP9kf4r96jY3hg3sxtEi6tiVNA1vd6Xn9GjeKuqEAjV L6tMtJg6OKEqY1o+dN4i2/EVjnZwf7abF3J0UZzwsxaRROHUJF+s5ItUreBww5IQurU6 9HnIuGOVGrfHR7EtLgrZ0k/GNjD0TXQGKnAYR/o0zT8RuqeIZ46EZuP5KqSv9+k8cv3y Q2VGqkSJg8K140ux3JfvcQmHDuq1ZlQ0+y6iND382kOCNavIY1blQZbJdvEXlzvYDdzR bDggueqFsgg5PEOz5cCewXFJBXtSyUYtqr/6z9n82ArqNWSSGkUUeXa1U9sKjynvSytm 3OtA== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1705018330; x=1705623130; h=content-transfer-encoding:in-reply-to:from:references:cc:to :content-language:subject:user-agent:mime-version:date:message-id :x-gm-message-state:from:to:cc:subject:date:message-id:reply-to; bh=7RDR8Pr11m33UGsfaCe6Ai28GS+cdafGrto8H86VV/I=; b=k7UT1+hM/JtNmCRTA17B5cEbbOIoMEbO3nuxGZNrWRGF4VHZEdP5L31DgnJNEPJbSH ChfZgPvIxQqqpCGUO8QEiYDgF5Qr3jEn5GGln1LKO1RvHWMdP2c/+xONV6YcPgVbUNy5 CQ8YxJLS36AhCTkM3MnO9tRqsA+QNvDJdAsPxytzjpJfJTFKambwDipk6d8YKBg2ZbVU DZ9YQAbAQSok4H6Cj0Ne6UzW7cKZ3fY+w28hPff2sCKymHNTdDkfgce9NswI1p/yDEyx OXzi7UJiLVO/MtL/TFge3/kbcHYeskJef+KtrC7VYFg2cz9xx92ok5lprCDkEGQ+vvqT km9g== X-Gm-Message-State: AOJu0YzCd4Z2rdWXabmf/Pet2C/mQ5PR4XtYYKVnYTbdcjT1QDbTlvdZ 2vQgXppdAZ3X2n4ozuBlgzW0ppJQQlPP2Q== X-Received: by 2002:a17:902:c194:b0:1d4:be1e:f197 with SMTP id d20-20020a170902c19400b001d4be1ef197mr247423pld.1.1705018330342; Thu, 11 Jan 2024 16:12:10 -0800 (PST) Received: from ?IPV6:2620:10d:c085:21e8::153d? ([2620:10d:c090:400::4:1638]) by smtp.gmail.com with ESMTPSA id kw7-20020a170902f90700b001d4725c10f3sm1424866plb.10.2024.01.11.16.12.08 (version=TLS1_3 cipher=TLS_AES_128_GCM_SHA256 bits=128/128); Thu, 11 Jan 2024 16:12:09 -0800 (PST) Message-ID: <13f86ddb-8d6f-49a5-80c8-72e2546b65f6@kernel.dk> Date: Thu, 11 Jan 2024 17:12:06 -0700 Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 User-Agent: Mozilla Thunderbird Subject: Re: [PATCH] block: print symbolic error name instead of error code Content-Language: en-US To: Christian Heusel , Damien Le Moal Cc: Dave Chinner , Jan Kara , =?UTF-8?Q?Thomas_Wei=C3=9Fschuh?= , Christian Brauner , Min Li , Greg Kroah-Hartman , linux-block@vger.kernel.org, linux-kernel@vger.kernel.org, dan.carpenter@linaro.org, kernel-janitors@vger.kernel.org References: <20240111231521.1596838-1-christian@heusel.eu> From: Jens Axboe In-Reply-To: Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 7bit On 1/11/24 4:56 PM, Christian Heusel wrote: > On 24/01/12 08:37AM, Damien Le Moal wrote: >> On 1/12/24 08:15, Christian Heusel wrote: >>> - printk(KERN_ERR " %s: p%d could not be added: %ld\n", >>> - disk->disk_name, p, -PTR_ERR(part)); >>> + printk(KERN_ERR " %s: p%d could not be added: %pe\n", >>> + disk->disk_name, p, part); >> >> pr_err() ? > > If desired I can send a v2 containing another patch which refactors the > usages of printk into their respective pr_* aliases, but I wanted to > keep this consistent to the usages in rest of the file and do one change > at a time. Yes let's please keep that separate, not a huge fan of conversions of that anyway as it just causes backports or stable kernel issues. -- Jens Axboe