f20720
---
f20720
 libmultipath/print.c |   11 +++++++++++
f20720
 1 file changed, 11 insertions(+)
f20720
f20720
Index: multipath-tools-130222/libmultipath/print.c
f20720
===================================================================
f20720
--- multipath-tools-130222.orig/libmultipath/print.c
f20720
+++ multipath-tools-130222/libmultipath/print.c
f20720
@@ -510,6 +510,16 @@ snprint_tgt_wwnn (char * buff, size_t le
f20720
 }
f20720
 
f20720
 static int
f20720
+snprint_host_adapter (char * buff, size_t len, struct path * pp)
f20720
+{
f20720
+	char adapter[SLOT_NAME_SIZE];
f20720
+
f20720
+	if (sysfs_get_host_adapter_name(pp, adapter))
f20720
+		return snprintf(buff, len, "[undef]");
f20720
+	return snprint_str(buff, len, adapter);
f20720
+}
f20720
+
f20720
+static int
f20720
 snprint_path_checker (char * buff, size_t len, struct path * pp)
f20720
 {
f20720
 	struct checker * c = &pp->checker;
f20720
@@ -557,6 +567,7 @@ struct path_data pd[] = {
f20720
 	{'n', "target WWNN",   0, snprint_tgt_wwnn},
f20720
 	{'R', "host WWPN",     0, snprint_host_wwpn},
f20720
 	{'r', "target WWPN",   0, snprint_tgt_wwpn},
f20720
+	{'a', "host adapter",  0, snprint_host_adapter},
f20720
 	{0, NULL, 0 , NULL}
f20720
 };
f20720