diff options
author | Aleksander Morgado <aleksander@aleksander.es> | 2018-09-12 15:45:49 +0200 |
---|---|---|
committer | Sascha Hauer <s.hauer@pengutronix.de> | 2018-09-17 09:50:41 +0200 |
commit | e42a40dcae5fbb62ae92443a27a1ad62a5493f24 (patch) | |
tree | f037f19d7adbd4a6596081e987892f87ca280f07 /common/ratp/reset.c | |
parent | 51c2a0a8d4513b8ea3b852dfc7915098265f370e (diff) | |
download | barebox-e42a40dcae5fbb62ae92443a27a1ad62a5493f24.tar.gz barebox-e42a40dcae5fbb62ae92443a27a1ad62a5493f24.tar.xz |
ratp: use pr_ macros to print messages
Following suggestions in other patch reviews, the RAPT commands are
updated to use pr_err() instead of plain printf() to report errors
to the user.
Signed-off-by: Aleksander Morgado <aleksander@aleksander.es>
Signed-off-by: Sascha Hauer <s.hauer@pengutronix.de>
Diffstat (limited to 'common/ratp/reset.c')
-rw-r--r-- | common/ratp/reset.c | 6 |
1 files changed, 4 insertions, 2 deletions
diff --git a/common/ratp/reset.c b/common/ratp/reset.c index 60b6ff536a..5439f344fc 100644 --- a/common/ratp/reset.c +++ b/common/ratp/reset.c @@ -17,6 +17,8 @@ * */ +#define pr_fmt(fmt) "barebox-ratp: reset: " fmt + #include <common.h> #include <command.h> #include <ratp_bb.h> @@ -35,11 +37,11 @@ static int ratp_cmd_reset(const struct ratp_bb *req, int req_len, struct ratp_bb_reset *reset_req = (struct ratp_bb_reset *)req; if (req_len < sizeof (*reset_req)) { - printf ("ratp reset ignored: size mismatch (%d < %zu)\n", req_len, sizeof (*reset_req)); + pr_err("ignored: size mismatch (%d < %zu)\n", req_len, sizeof (*reset_req)); return 2; } - debug("running reset %s\n", reset_req->force ? "(forced)" : ""); + pr_debug("running %s\n", reset_req->force ? "(forced)" : ""); if (!reset_req->force) shutdown_barebox(); |