[Devel] [PATCH v2 5/7] spfs: improve prints in spfs_set_mode() and spfs_release_replace()

Stanislav Kinsburskiy skinsbursky at virtuozzo.com
Thu Dec 21 14:07:19 MSK 2017


To make them more grepable.

Signed-off-by: Stanislav Kinsburskiy <skinsbursky at virtuozzo.com>
---
 criu/spfs.c |    8 ++++----
 1 file changed, 4 insertions(+), 4 deletions(-)

diff --git a/criu/spfs.c b/criu/spfs.c
index 89fb9f9..7ce30e7 100644
--- a/criu/spfs.c
+++ b/criu/spfs.c
@@ -379,9 +379,9 @@ int spfs_set_mode(int sock, const char *mode)
 
 	ret = spfs_send_request(sock, req, strlen(req) + 1);
 	if (ret)
-		pr_err("set mode to %s request failed: %d\n", mode, ret);
+		pr_err("set SPFS mode to %s request failed: %d\n", mode, ret);
 	else
-		pr_debug("Set mode to %s request succeeded\n", mode);
+		pr_debug("Set SPFS mode to %s request succeeded\n", mode);
 
 	free(req);
 	return 0;
@@ -394,9 +394,9 @@ int spfs_release_replace(int sock)
 
 	ret = spfs_send_request(sock, req, strlen(req) + 1);
 	if (ret)
-		pr_err("release replace request failed: %d\n", ret);
+		pr_err("SPFS release replace request failed: %d\n", ret);
 	else
-		pr_debug("Release replace request succeeded\n");
+		pr_debug("SPFS \"release replace\" request succeeded\n");
 
 	return 0;
 }



More information about the Devel mailing list