[CRIU] [PATCH] can_dump_inet_sk(): fix error message

Kir Kolyshkin kir at openvz.org
Wed Oct 28 18:09:22 PDT 2015


In other similar cases we print option as it appears on the command
line, i.e. --option, but not here. Fix it to make it more clear.

Was:
	Error (sk-inet.c:141): Connected TCP socket, consider using tcp-established option.

Now:
	Error (sk-inet.c:141): Connected TCP socket, consider using --tcp-established option.

Signed-off-by: Kir Kolyshkin <kir at openvz.org>
---
 sk-inet.c | 2 +-
 1 file changed, 1 insertion(+), 1 deletion(-)

diff --git a/sk-inet.c b/sk-inet.c
index fa41769..c06a0b2 100644
--- a/sk-inet.c
+++ b/sk-inet.c
@@ -154,7 +154,7 @@ static int can_dump_inet_sk(const struct inet_sk_desc *sk)
 		break;
 	case TCP_ESTABLISHED:
 		if (!opts.tcp_established_ok) {
-			pr_err("Connected TCP socket, consider using %s option.\n",
+			pr_err("Connected TCP socket, consider using --%s option.\n",
 					SK_EST_PARAM);
 			return 0;
 		}
-- 
2.4.3



More information about the CRIU mailing list