[dm-devel] [PATCH 17/57] libmultipath: additional logging messages when formatting callout
Hannes Reinecke
hare at suse.de
Wed Apr 27 11:10:18 UTC 2016
Signed-off-by: Hannes Reinecke <hare at suse.com>
---
libmultipath/callout.c | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
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;
}
--
2.6.6
More information about the dm-devel
mailing list