diff mbox series

[1/2] multipathd: fix irritating "minor number mismatch" message

Message ID 20181113213052.2009-2-mwilck@suse.com (mailing list archive)
State Not Applicable, archived
Delegated to: christophe varoqui
Headers show
Series two multipathd fixes | expand

Commit Message

Martin Wilck Nov. 13, 2018, 9:30 p.m. UTC
This is really an alias mismatch, not a minor number mismatch.

Signed-off-by: Martin Wilck <mwilck@suse.com>
---
 multipathd/main.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
diff mbox series

Patch

diff --git a/multipathd/main.c b/multipathd/main.c
index 6289718d..0dddddb3 100644
--- a/multipathd/main.c
+++ b/multipathd/main.c
@@ -778,8 +778,8 @@  uev_remove_map (struct uevent * uev, struct vectors * vecs)
 		goto out;
 	}
 	if (strcmp(mpp->alias, alias)) {
-		condlog(2, "%s: minor number mismatch (map %d, event %d)",
-			mpp->alias, mpp->dmi->minor, minor);
+		condlog(2, "%s: map alias mismatch: have \"%s\", got \"%s\")",
+			uev->kernel, mpp->alias, alias);
 		goto out;
 	}