Received: by 2002:a05:7412:1e0b:b0:fc:a2b0:25d7 with SMTP id kr11csp681156rdb; Thu, 15 Feb 2024 11:56:35 -0800 (PST) X-Forwarded-Encrypted: i=3; AJvYcCUQOi8PauxjivqaIW9Rt1qaFtDpap4z6EiGz5mK3rHlDekemzhgmmf8LCBZcojVZ8EloQ73jkweV5282rkNYuCpg79IRoBFqmZWlnpPNg== X-Google-Smtp-Source: AGHT+IFX5WBTuQeLALCqcB3gJaQuQFzPvyuTj1r5Jnq45qN/88EtXH0zThTmC4nkSvmjyZZKxnOd X-Received: by 2002:a1f:6244:0:b0:4bd:7da1:a2ea with SMTP id w65-20020a1f6244000000b004bd7da1a2eamr2505443vkb.14.1708026994746; Thu, 15 Feb 2024 11:56:34 -0800 (PST) ARC-Seal: i=2; a=rsa-sha256; t=1708026994; cv=pass; d=google.com; s=arc-20160816; b=Fy8INBO1x1QYlT1MTVK0WDNQi44Ffz/zFuVdgq78/E6iCQkeZqKUP91x6i9W5L6IQM ndaTr6skKyW5XkuOhAEBA3NqKZ9eJzivdvW9MwiTVzCfreuj9ONhTCITuvzz4JgDetfv jU7bw0PO4wxVfSoiafMnR7VQWqeEhVqS+XS+/3VMTZjcwa0MqsRAcIxDa6gIWV6aW8GO pvtzVF1JASgx3kjY//KjXf7opR7sGhuP0GxcDmBkPBUCwI8Vfvq2kMRomTFrENtAPyJX dotF1E2uQSO1EF94zJU2+sUDrqKEo8jg24pL3goqqq9VMGDhf4W9Y0Mbz9VH0hntPr1M JQzQ== ARC-Message-Signature: i=2; a=rsa-sha256; c=relaxed/relaxed; d=google.com; s=arc-20160816; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:list-unsubscribe:list-subscribe :list-id:precedence; bh=OAtPDKmTzGRId64lpa3XjNUc5dMGliVmcVwJI97qP24=; fh=Ne3EhULKcrC7h4Px5xQF7YjvYr5dMvKueqzo++9oiHs=; b=UgiJGkUAkLdr2LQmoiIf4jL5Cq2sgABTnOyae1Cb954VhnPVMsPz39g44ZwlGYk2cs xe0N/zEJRhXfJJf8uwOaxiTe4LIRP3c89s911VusSDJm0TypiRopUCxVfIVf2idfkzVe Y52H5pKHF4gOvb8yLGgQsz78iBt/z6vcL44P0f0Nposbl582RnqYlVc4GYbEbboA587G VjzXR4cMh6eFIvq3S33Jid3FC44K+QKX73KMrbChZgMKQrDYFMYhjiOjlMPIJGcHrxTQ xSpwVdb4HLt/bYvcEJYi7tjsGsawW727sdN0oDUwanN/BiGv/fT7q9K638T15e4ZTp0L VBSA==; dara=google.com ARC-Authentication-Results: i=2; mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-67617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=kernel.org Return-Path: Received: from ny.mirrors.kernel.org (ny.mirrors.kernel.org. [147.75.199.223]) by mx.google.com with ESMTPS id f12-20020a0562141d2c00b0068ee633cdc0si2099112qvd.549.2024.02.15.11.56.34 for (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Thu, 15 Feb 2024 11:56:34 -0800 (PST) Received-SPF: pass (google.com: domain of linux-kernel+bounces-67617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) client-ip=147.75.199.223; Authentication-Results: mx.google.com; arc=pass (i=1 spf=pass spfdomain=gmail.com); spf=pass (google.com: domain of linux-kernel+bounces-67617-linux.lists.archive=gmail.com@vger.kernel.org designates 147.75.199.223 as permitted sender) smtp.mailfrom="linux-kernel+bounces-67617-linux.lists.archive=gmail.com@vger.kernel.org"; dmarc=pass (p=NONE sp=NONE dis=NONE) header.from=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 7ECCB1C21FDD for ; Thu, 15 Feb 2024 19:56:34 +0000 (UTC) Received: from localhost.localdomain (localhost.localdomain [127.0.0.1]) by smtp.subspace.kernel.org (Postfix) with ESMTP id DE1F613AA27; Thu, 15 Feb 2024 19:56:25 +0000 (UTC) Received: from mail-oo1-f52.google.com (mail-oo1-f52.google.com [209.85.161.52]) (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 D48DB13A86E; Thu, 15 Feb 2024 19:56:23 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.161.52 ARC-Seal:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708026985; cv=none; b=mEt+b+6dguVxr5KelFAgRI/rDAt/VhR23qIiP5zoYd5O7FnrKxasSFZQ3mAyi9FgyHoe3eo0vhZQv85jxlEaMrPNcFKPGRMmWM1cnt+/iFZNLX+tZGXiy/6GzSD/5nEhjzRhsNAg+WBhmbVEWSD76ZYmNCD/It1ABbt/yPuhDmU= ARC-Message-Signature:i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1708026985; c=relaxed/simple; bh=j0HU7geUkuuZNbKZgc9Jlq1IrLbRb6xyZxDPoMDSeqs=; h=MIME-Version:References:In-Reply-To:From:Date:Message-ID:Subject: To:Cc:Content-Type; b=k0icaro2GxE/fqrSllZ7AMc/s8p2O2UfQmk8feG6JVfIGoUQ4X2cpi1P95kQIKE3iQ5FrH8wdBTjO0vptEjualWk1xinsupvqd2YAUidFvn9kPQSTGcDT4byntzXGDHlec4v9kobhgg5p0jgLqSH+lqtQxdzMtxJLVBY1t3pt4w= ARC-Authentication-Results:i=1; smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org; spf=pass smtp.mailfrom=gmail.com; arc=none smtp.client-ip=209.85.161.52 Authentication-Results: smtp.subspace.kernel.org; dmarc=fail (p=none dis=none) header.from=kernel.org Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Received: by mail-oo1-f52.google.com with SMTP id 006d021491bc7-5958d3f2d8aso483408eaf.1; Thu, 15 Feb 2024 11:56:23 -0800 (PST) X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1708026983; x=1708631783; h=content-transfer-encoding:cc:to:subject:message-id:date:from :in-reply-to:references:mime-version:x-gm-message-state:from:to:cc :subject:date:message-id:reply-to; bh=OAtPDKmTzGRId64lpa3XjNUc5dMGliVmcVwJI97qP24=; b=ayju33FBMjLGRvyc2YHjEIEI7E06DoLoDb9F/pJp/4+KOOoUs2kfKAqCwDnetbtgYd sssDRX4Yvf0cSWDej37n9xSqlwEfANAyVZ3rAujnLITvm65ZzDznfZYU82agQOvA3wxw BGnQVWwStiuPu6Fw65fjQu4RfbXRIPFwbttTdObRqlqxA4gXKEzxDCtJRCNQzh1tmb0v lhYDmHGn7JkDA/q1N/NQanCt2xHK92bbxlvfvY3UcnTAcwEXugE1/oPnMaJfLom4AKY+ OT/4f1JwkCR+3v8vDY9UTFJCRFehZ0L+8HnSvQHANlFkng8QxcN05lT32d6soI52gzct 0SOg== X-Forwarded-Encrypted: i=1; AJvYcCW3rMKctrR8aWC2I4rvwUTFlZxzvLZw9WFqXQ7oJUu6bmtazVZS1OVR8eSUC/x5L7KKfSXJTzgiQbJZrRNIsxFWsCm3J/XCnLKgbDLNxcYJiflAD4UWio4xP/UQOFHyiwnqNUQWAvtbjDoIb8yAHmjusCU9L8hb3VUam3xpveSZQtGhKKSSLHkmfPMG6S7uAK5y8uOuKAR62wA2qbpF X-Gm-Message-State: AOJu0Yz9xbv0A5+jfa4nkl4O26nAKCJLHyLnPu44CBaceDoFoLP9O7tw 5z7HXDPFD5KIDDuKSumW7rlrFM7AOXNlVSXm17oi8gOp2OVK/RA/u0Dsc3c9Juy6nToXdMYGhRU bGLxkit2eaPok59L5WOd3TA+myOc= X-Received: by 2002:a4a:e749:0:b0:59f:8e0f:8a34 with SMTP id n9-20020a4ae749000000b0059f8e0f8a34mr221591oov.1.1708026982879; Thu, 15 Feb 2024 11:56:22 -0800 (PST) Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 References: <20240213074416.2169929-1-onkarnath.1@samsung.com> In-Reply-To: <20240213074416.2169929-1-onkarnath.1@samsung.com> From: "Rafael J. Wysocki" Date: Thu, 15 Feb 2024 20:56:11 +0100 Message-ID: Subject: Re: [PATCH v3 1/2] ACPI: use %pe for better readability of errors while printing To: Onkarnarth Cc: rafael@kernel.org, lenb@kernel.org, bhelgaas@google.com, viresh.kumar@linaro.org, mingo@redhat.com, peterz@infradead.org, juri.lelli@redhat.com, vincent.guittot@linaro.org, dietmar.eggemann@arm.com, rostedt@goodmis.org, bsegall@google.com, mgorman@suse.de, bristot@redhat.com, vschneid@redhat.com, linux-pm@vger.kernel.org, linux-kernel@vger.kernel.org, linux-acpi@vger.kernel.org, linux-pci@vger.kernel.org, r.thapliyal@samsung.com, maninder1.s@samsung.com, helgaas@kernel.org, Stanislaw Gruszka Content-Type: text/plain; charset="UTF-8" Content-Transfer-Encoding: quoted-printable On Tue, Feb 13, 2024 at 9:20=E2=80=AFAM Onkarnarth wrote: > > From: Onkarnath > > As %pe is already introduced, it's better to use it in place of (%ld) for > printing errors in logs. It would enhance readability of logs. > > Signed-off-by: Maninder Singh What exactly is the role of this S-o-b? Has the person helped you to develop the patch or something else? > Signed-off-by: Onkarnath > Reviewed-by: Stanislaw Gruszka > --- > v1 -> v2: Updated subject line as per file history & corrected spellings > in description. > v2 -> v3: Updated Reviewed-by tag. > > drivers/acpi/acpi_processor.c | 2 +- > drivers/acpi/acpi_watchdog.c | 2 +- > drivers/acpi/pci_slot.c | 2 +- > 3 files changed, 3 insertions(+), 3 deletions(-) > > diff --git a/drivers/acpi/acpi_processor.c b/drivers/acpi/acpi_processor.= c > index 4fe2ef54088c..2ddd36a21850 100644 > --- a/drivers/acpi/acpi_processor.c > +++ b/drivers/acpi/acpi_processor.c > @@ -161,7 +161,7 @@ static void cpufreq_add_device(const char *name) > > pdev =3D platform_device_register_simple(name, PLATFORM_DEVID_NON= E, NULL, 0); > if (IS_ERR(pdev)) > - pr_info("%s device creation failed: %ld\n", name, PTR_ERR= (pdev)); > + pr_info("%s device creation failed: %pe\n", name, pdev); > } > > #ifdef CONFIG_X86 > diff --git a/drivers/acpi/acpi_watchdog.c b/drivers/acpi/acpi_watchdog.c > index 8e9e001da38f..14b24157799c 100644 > --- a/drivers/acpi/acpi_watchdog.c > +++ b/drivers/acpi/acpi_watchdog.c > @@ -179,7 +179,7 @@ void __init acpi_watchdog_init(void) > pdev =3D platform_device_register_simple("wdat_wdt", PLATFORM_DEV= ID_NONE, > resources, nresources); > if (IS_ERR(pdev)) > - pr_err("Device creation failed: %ld\n", PTR_ERR(pdev)); > + pr_err("Device creation failed: %pe\n", pdev); > > kfree(resources); > > diff --git a/drivers/acpi/pci_slot.c b/drivers/acpi/pci_slot.c > index d6cb2c27a23b..741bcc9d6d6a 100644 > --- a/drivers/acpi/pci_slot.c > +++ b/drivers/acpi/pci_slot.c > @@ -111,7 +111,7 @@ register_slot(acpi_handle handle, u32 lvl, void *cont= ext, void **rv) > snprintf(name, sizeof(name), "%llu", sun); > pci_slot =3D pci_create_slot(pci_bus, device, name, NULL); > if (IS_ERR(pci_slot)) { > - pr_err("pci_create_slot returned %ld\n", PTR_ERR(pci_slot= )); > + pr_err("pci_create_slot returned %pe\n", pci_slot); > kfree(slot); > return AE_OK; > } > --