From nobody Sat Feb 7 05:01:31 2026 Received: from mail-pg1-f177.google.com (mail-pg1-f177.google.com [209.85.215.177]) (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 BAE3821420B for ; Sun, 18 Jan 2026 06:06:03 +0000 (UTC) Authentication-Results: smtp.subspace.kernel.org; arc=none smtp.client-ip=209.85.215.177 ARC-Seal: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768716366; cv=none; b=Ic+UuJh2+r69QW8Y3VZkxT80s5Yjquz/XZns1ok4ThgX9ZMZUiJX6M1pR04Ip8rRrFcGpUAdz/MaM2pH8NCeFcXTxAfOOSfi/lxcMKytHOeLT8b+noNB+BsCMVilMSOdmmgaW3ZhCsmDidFojhA48bJb7WaE3gpJWKiyBRIL5x4= ARC-Message-Signature: i=1; a=rsa-sha256; d=subspace.kernel.org; s=arc-20240116; t=1768716366; c=relaxed/simple; bh=0VJ3HWpJOKze4wOboFzoB58uIQtJpgEbIDTAy17hPOY=; h=From:To:Cc:Subject:Date:Message-Id:In-Reply-To:References: MIME-Version; b=DIlvlvmnYQDCmEuhI+hlx12OwNJFbd/P+HX1wO/iti8qWl6uJwKwcm0cdHSeszDCod1RAFvDRIUCU3UId3LMAlCG2qeV4ruak5uQu/tb/lryx2uRgguWzKtAVsdFfYwExmCPJWnHg8vyttN2gzg6Kp2MXPjktUIQJplCDFpJoCw= ARC-Authentication-Results: i=1; smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com; spf=pass smtp.mailfrom=gmail.com; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b=cQyHIMAl; arc=none smtp.client-ip=209.85.215.177 Authentication-Results: smtp.subspace.kernel.org; dmarc=pass (p=none dis=none) header.from=gmail.com Authentication-Results: smtp.subspace.kernel.org; spf=pass smtp.mailfrom=gmail.com Authentication-Results: smtp.subspace.kernel.org; dkim=pass (2048-bit key) header.d=gmail.com header.i=@gmail.com header.b="cQyHIMAl" Received: by mail-pg1-f177.google.com with SMTP id 41be03b00d2f7-c2dc870e194so1369255a12.2 for ; Sat, 17 Jan 2026 22:06:03 -0800 (PST) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20230601; t=1768716363; x=1769321163; darn=vger.kernel.org; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:from:to:cc:subject:date :message-id:reply-to; bh=5L/u55ojOMWDoZfJfBy/ViDPd1rJfbOcCEU36M5eKa8=; b=cQyHIMAl9td3TMUko0OyCKDBXA43U6WnSO4JPkdHYbG+dmFCIWt4QXGQnWndaeqcAr QHn+Ktn7IGPwY+UtJEtOB0HS6UdX0fhMEVD7jaHKBB7VERyDylSi4Vq1cR9zSyH9tCLJ JpsfHOGQ8hgK+1WPlasxUckW2Ldtu7bn1Cs5Lm2StNQx5qWlRPHCEzZEGeMJclHTLENg 5ACnEekHLBl+vrK+fX/SAgX4WMiGyWu4j7VL73sZrLf1i1P7YSf7ZazhPp98ipl+ptMK AT6JFtHUhYPBpiP+YU3wCA0R1qtlLLo2TNBNmBQfDkzUkotbHr8Yw29hqCPWOKZvj0cS Iu2g== X-Google-DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=1e100.net; s=20230601; t=1768716363; x=1769321163; h=content-transfer-encoding:mime-version:references:in-reply-to :message-id:date:subject:cc:to:from:x-gm-gg:x-gm-message-state:from :to:cc:subject:date:message-id:reply-to; bh=5L/u55ojOMWDoZfJfBy/ViDPd1rJfbOcCEU36M5eKa8=; b=cD1+wKQ7grSoFYsN3RxzEX31HB2fF4lZBO5XjtKJ9M1ugHqaRK8VXMPLYenQcX7X5I Ee2XTj0sARmOBfDUKEKjnJEErpXpxKXgjualGgBjNjl+v9l79C0wkrHxh5u05ELQ6ACP oa85NlskbcqCVemWwVlTFjUnIoEfbMxAfh8G+10xSSJW26jgxier34++6/GoHvkZR33n 4/+fdszoWUILZeDGDjzUm5U0FGI19im0rDVHvbBablKdPwfxdacWrSVbtdkyOrCSjk8J SUSe7R/yJAELrajoSn4Y+ACysGb/8teuVOlnku4k5mPaPXJmS5nJEwvrvyJe2sPu/djo 0faA== X-Forwarded-Encrypted: i=1; AJvYcCXJodHT/3CtZiqbExxPn6/cy0xd13diKM3PAq/VOHmZHXfKUpU3NNUVa0t6VSWASFMELpiOErUhcDwd/xw=@vger.kernel.org X-Gm-Message-State: AOJu0YwgXHW5eVVBmV1N6rm2P5yKn4BxuSVcxqPscsPdsBsbXvOojPzR 81+64ELqe1zs3rwqxd4JxfdjMLBS9ghvDMLN9sfZ9tdzoThuIKoSA1jY X-Gm-Gg: AY/fxX7E5Gg16GdeNJFadqh6LbBJnoTZiFjsmLadWoyWXRv8OJyLJTCBox929GIBYhp ue59vZH1NlWdBkqrtyW3n2gGt296UQzVoXhyWTeEBKh/gwLhOXJbuytzLF+fTOZZAmgXn+cF0jf xRCIQZEece4gsGtLrn03zGxkSHHi3ZAItOaNJ4BZa/lcVY/zc5ikh7rGM9l6njPL4PAfVAZDLcX z0E21SWkHc3jBq53alcP1/MyLWw29dLAfZejJJtyss/QGSC1sE2Er26tHzhLrC//kCZdZJzRJOS 68pooEmgAIOc5fDYwhRFOfPRALbeNnBipcpHbEy3iqHdpWu6VOI8TX0mvl+MpfUAsOBmwAGX7z2 JK2NEDcx+1PYOI6+7OKlswQQMMdBw/lF/Sv49vQG9ugomKLaQK8NsNsN+9/EC0Xo/Z2zp4+YEWT H+C9hRRlmkT8uJK4D2h2hVXy0/ODsdoQ== X-Received: by 2002:a17:90b:350e:b0:33e:30e8:81cb with SMTP id 98e67ed59e1d1-35272edb3b6mr6658940a91.13.1768716362963; Sat, 17 Jan 2026 22:06:02 -0800 (PST) Received: from debian.ari ([152.56.157.226]) by smtp.gmail.com with ESMTPSA id 98e67ed59e1d1-3527305490fsm5730026a91.1.2026.01.17.22.05.59 (version=TLS1_3 cipher=TLS_AES_256_GCM_SHA384 bits=256/256); Sat, 17 Jan 2026 22:06:02 -0800 (PST) From: Archit Anant To: vireshk@kernel.org, johan@kernel.org, elder@kernel.org Cc: gregkh@linuxfoundation.org, greybus-dev@lists.linaro.org, linux-staging@lists.linux.dev, linux-kernel@vger.kernel.org, Archit Anant Subject: [PATCH 1/1] staging: greybus: fw-core: use %pe for error printing Date: Sun, 18 Jan 2026 11:35:48 +0530 Message-Id: <20260118060548.24548-2-architanant5@gmail.com> X-Mailer: git-send-email 2.39.5 In-Reply-To: <20260118060548.24548-1-architanant5@gmail.com> References: <20260118060548.24548-1-architanant5@gmail.com> Precedence: bulk X-Mailing-List: linux-kernel@vger.kernel.org List-Id: List-Subscribe: List-Unsubscribe: MIME-Version: 1.0 Content-Transfer-Encoding: quoted-printable Content-Type: text/plain; charset="utf-8" Use the %pe printk format specifier to print error codes as symbolic names (e.g., -ENOMEM) instead of numeric values. This improves readability of error logs. Issue identified by coccicheck using the ptr_err_to_pe.cocci script. Signed-off-by: Archit Anant --- drivers/staging/greybus/fw-core.c | 12 ++++++------ 1 file changed, 6 insertions(+), 6 deletions(-) diff --git a/drivers/staging/greybus/fw-core.c b/drivers/staging/greybus/fw= -core.c index 0fb15a60412f..1ad404d69b87 100644 --- a/drivers/staging/greybus/fw-core.c +++ b/drivers/staging/greybus/fw-core.c @@ -112,8 +112,8 @@ static int gb_fw_core_probe(struct gb_bundle *bundle, connection =3D gb_connection_create(bundle, cport_id, gb_fw_download_request_handler); if (IS_ERR(connection)) { - dev_err(&bundle->dev, "failed to create download connection (%ld)\n", - PTR_ERR(connection)); + dev_err(&bundle->dev, "failed to create download connection (%pe)\n", + connection); } else { fw_core->download_connection =3D connection; } @@ -131,8 +131,8 @@ static int gb_fw_core_probe(struct gb_bundle *bundle, connection =3D gb_connection_create(bundle, cport_id, NULL); if (IS_ERR(connection)) { - dev_err(&bundle->dev, "failed to create SPI connection (%ld)\n", - PTR_ERR(connection)); + dev_err(&bundle->dev, "failed to create SPI connection (%pe)\n", + connection); } else { fw_core->spi_connection =3D connection; } @@ -149,8 +149,8 @@ static int gb_fw_core_probe(struct gb_bundle *bundle, connection =3D gb_connection_create(bundle, cport_id, NULL); if (IS_ERR(connection)) { - dev_err(&bundle->dev, "failed to create Authentication connection (%ld= )\n", - PTR_ERR(connection)); + dev_err(&bundle->dev, "failed to create Authentication connection (%pe= )\n", + connection); } else { fw_core->cap_connection =3D connection; } --=20 2.39.5