Skip to contentSkip to conversation

multipath-tools: alua: add prefix with device name for asymmetric access state and reported target port group messages

PATCH New Xose Vazquez Perez 1 participant 1 message Oct 27, 2016 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 multipath-tools: alua: add prefix with device name for asymmetric access state and reported target port group messages

Before:

Oct 27 15:11:21 | reported target port group is 2
Oct 27 15:11:21 | aas = 01 [active/non-optimized]

After:

Oct 27 15:11:47 | sda: reported target port group is 2
Oct 27 15:11:47 | sda: aas = 01 [active/non-optimized]
Cc Benjamin Marzinski <[email protected]>
Cc Hannes Reinecke <[email protected]>
Cc Christophe Varoqui <[email protected]>
Cc device-mapper development <[email protected]>
---
 libmultipath/prioritizers/alua.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
libmultipath/prioritizers/alua.c +2 -2
index f5456ee..03d0a0e 100644
@@ -65,12 +65,12 @@ get_alua_info(struct path * pp, unsigned int timeout)
 			return -ALUA_PRIO_NOT_SUPPORTED;
 		return -ALUA_PRIO_RTPG_FAILED;
 	}
-	condlog(3, "reported target port group is %i", tpg);
+	condlog(3, "%s: reported target port group is %i", pp->dev, tpg);
 	rc = get_asymmetric_access_state(pp->fd, tpg, timeout);
 	if (rc < 0)
 		return -ALUA_PRIO_GETAAS_FAILED;
 
-	condlog(3, "aas = %02x [%s]%s", rc, aas_print_string(rc),
+	condlog(3, "%s: aas = %02x [%s]%s", pp->dev, rc, aas_print_string(rc),
 		(rc & 0x80) ? " [preferred]" : "");
 	return rc;
 }
Signature · 1 line
2.10.1