kernel-janitors.vger.kernel.org archive mirror
 help / color / mirror / Atom feed
* [RFC 1/2] rtc: max77686: use symbolic error messages
@ 2021-05-09  0:41 Edmundo Carmona Antoranz
  2021-05-09  0:41 ` [RFC 2/2] staging: fbtft: " Edmundo Carmona Antoranz
                   ` (3 more replies)
  0 siblings, 4 replies; 11+ messages in thread
From: Edmundo Carmona Antoranz @ 2021-05-09  0:41 UTC (permalink / raw)
  To: christophe.jaillet, dan.carpenter
  Cc: kernel-janitors, Edmundo Carmona Antoranz

Modify some error messages so that the symbolic error value be
printed instead of a numeric value.
---
 drivers/rtc/rtc-max77686.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)

diff --git a/drivers/rtc/rtc-max77686.c b/drivers/rtc/rtc-max77686.c
index ce089ed934ad..470260478752 100644
--- a/drivers/rtc/rtc-max77686.c
+++ b/drivers/rtc/rtc-max77686.c
@@ -711,7 +711,8 @@ static int max77686_init_rtc_regmap(struct max77686_rtc_info *info)
 						info->drv_data->regmap_config);
 	if (IS_ERR(info->rtc_regmap)) {
 		ret = PTR_ERR(info->rtc_regmap);
-		dev_err(info->dev, "Failed to allocate RTC regmap: %d\n", ret);
+		dev_err(info->dev, "Failed to allocate RTC regmap: %pe\n",
+			info->rtc_regmap);
 		return ret;
 	}
 
@@ -763,7 +764,8 @@ static int max77686_rtc_probe(struct platform_device *pdev)
 
 	if (IS_ERR(info->rtc_dev)) {
 		ret = PTR_ERR(info->rtc_dev);
-		dev_err(&pdev->dev, "Failed to register RTC device: %d\n", ret);
+		dev_err(&pdev->dev, "Failed to register RTC device: %pe\n",
+			info->rtc_dev);
 		goto err_rtc;
 	}
 
-- 
2.30.2


^ permalink raw reply related	[flat|nested] 11+ messages in thread

end of thread, other threads:[~2021-05-10  6:04 UTC | newest]

Thread overview: 11+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2021-05-09  0:41 [RFC 1/2] rtc: max77686: use symbolic error messages Edmundo Carmona Antoranz
2021-05-09  0:41 ` [RFC 2/2] staging: fbtft: " Edmundo Carmona Antoranz
2021-05-09  0:44   ` Edmundo Carmona Antoranz
2021-05-09  7:39 ` [RFC 1/2] rtc: max77686: " Christophe JAILLET
2021-05-10  4:30 ` Dan Carpenter
2021-05-10  5:06   ` Julia Lawall
2021-05-10  5:45     ` Marion & Christophe JAILLET
     [not found] ` <alpine.DEB.2.22.394.2105092315330.24280@hadrien>
2021-05-10  4:35   ` Dan Carpenter
2021-05-10  5:03     ` Julia Lawall
2021-05-10  6:03       ` Dan Carpenter
2021-05-10  6:04         ` Julia Lawall

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).