[<prev] [next>] [<thread-prev] [thread-next>] [day] [month] [year] [list]
Message-Id: <20211025135148.53944-4-andriy.shevchenko@linux.intel.com>
Date: Mon, 25 Oct 2021 16:51:47 +0300
From: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
To: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>,
Arnaud Pouliquen <arnaud.pouliquen@...s.st.com>,
linux-kernel@...r.kernel.org
Cc: Greg Kroah-Hartman <gregkh@...uxfoundation.org>,
Jiri Slaby <jirislaby@...nel.org>
Subject: [PATCH v1 4/5] tty: rpmsg: Add pr_fmt() to prefix messages
Make all messages to be prefixed in a unified way.
Add pr_fmt() to achieve this.
Signed-off-by: Andy Shevchenko <andriy.shevchenko@...ux.intel.com>
---
drivers/tty/rpmsg_tty.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/drivers/tty/rpmsg_tty.c b/drivers/tty/rpmsg_tty.c
index d172dd331bc9..4bee6c5bbb53 100644
--- a/drivers/tty/rpmsg_tty.c
+++ b/drivers/tty/rpmsg_tty.c
@@ -10,6 +10,8 @@
* The "rpmsg-tty" service is directly used for data exchange. No flow control is implemented yet.
*/
+#define pr_fmt(fmt) KBUILD_MODNAME ": " fmt
+
#include <linux/module.h>
#include <linux/rpmsg.h>
#include <linux/slab.h>
@@ -235,13 +237,13 @@ static int __init rpmsg_tty_init(void)
ret = tty_register_driver(rpmsg_tty_driver);
if (ret < 0) {
- pr_err("Couldn't install rpmsg tty driver: %d\n", ret);
+ pr_err("Couldn't install driver: %d\n", ret);
goto error_put;
}
ret = register_rpmsg_driver(&rpmsg_tty_rpmsg_drv);
if (ret < 0) {
- pr_err("Couldn't register rpmsg tty driver: %d\n", ret);
+ pr_err("Couldn't register driver: %d\n", ret);
goto error_unregister;
}
--
2.33.0
Powered by blists - more mailing lists