If it can't connect monitor, now the error message is just Error waiting for xxx to be clean. Add detail error message in connect_monitor. Suggested-by: Oleg Samarin <osamarin68@xxxxxxxxx> Signed-off-by: Xiao Ni <xni@xxxxxxxxxx> --- msg.c | 2 ++ 1 file changed, 2 insertions(+) diff --git a/msg.c b/msg.c index 45cd450..c66b0a1 100644 --- a/msg.c +++ b/msg.c @@ -171,6 +171,8 @@ int connect_monitor(char *devname) addr.sun_family = PF_LOCAL; strcpy(addr.sun_path, path); if (connect(sfd, (struct sockaddr*)&addr, sizeof(addr)) < 0) { + pr_err("Error connecting monitor with %s: %s\n", + addr.sun_path, strerror(errno)); close(sfd); return -1; } -- 2.7.4 -- To unsubscribe from this list: send the line "unsubscribe linux-raid" in the body of a message to majordomo@xxxxxxxxxxxxxxx More majordomo info at http://vger.kernel.org/majordomo-info.html