diff mbox

[17/57] libmultipath: additional logging messages when formatting callout

Message ID 1461755458-29225-18-git-send-email-hare@suse.de (mailing list archive)
State Not Applicable, archived
Headers show

Commit Message

Hannes Reinecke April 27, 2016, 11:10 a.m. UTC
Signed-off-by: Hannes Reinecke <hare@suse.com>
---
 libmultipath/callout.c | 6 ++++--
 1 file changed, 4 insertions(+), 2 deletions(-)
diff mbox

Patch

diff --git a/libmultipath/callout.c b/libmultipath/callout.c
index 4cbbd06..d671b0c 100644
--- a/libmultipath/callout.c
+++ b/libmultipath/callout.c
@@ -201,8 +201,10 @@  apply_format (char * string, char * cmd, struct path * pp)
 	}
 	pos++;
 
-	if (!*pos)
+	if (!*pos) {
+		condlog(3, "formatted callout = %s", dst);
 		return 0;
+	}
 
 	len = strlen(pos) + 1;
 	myfree -= len;
@@ -211,6 +213,6 @@  apply_format (char * string, char * cmd, struct path * pp)
 		return 1;
 
 	snprintf(p, len, "%s", pos);
-	condlog(3, "reformated callout = %s", dst);
+	condlog(3, "reformatted callout = %s", dst);
 	return 0;
 }