staging: greybus: replace PTR_ERR() with %pe in error messages

Use %pe to print error pointers directly and display their
error names.

Keep the other PTR_ERR() call because its return value is
needed for ret.

Signed-off-by: Yalagada Pavan Kumar <pavankumaryalagada@gmail.com>
Link: https://patch.msgid.link/20261013022402.6322-1-pavankumaryalagada@gmail.com
Signed-off-by: Greg Kroah-Hartman <gregkh@linuxfoundation.org>
This commit is contained in:
Yalagada Pavan Kumar 2026-10-13 07:54:02 +05:30 committed by Greg Kroah-Hartman
parent d32a1e175c
commit ec1ecf4f23

View File

@ -93,8 +93,8 @@ static int gb_fw_core_probe(struct gb_bundle *bundle,
if (IS_ERR(connection)) {
ret = PTR_ERR(connection);
dev_err(&bundle->dev,
"failed to create management connection (%d)\n",
ret);
"failed to create management connection (%pe)\n",
connection);
goto err_destroy_connections;
}
@ -112,8 +112,8 @@ static int gb_fw_core_probe(struct gb_bundle *bundle,
connection = 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 = connection;
}
@ -131,8 +131,8 @@ static int gb_fw_core_probe(struct gb_bundle *bundle,
connection = 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 = connection;
}
@ -149,8 +149,8 @@ static int gb_fw_core_probe(struct gb_bundle *bundle,
connection = 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 = connection;
}