Skip to contentSkip to conversation

libmultipath: fix unit to seconds in log message for checker timeout

PATCH In review Martin Wilck 2 participants 2 messages Jun 27, 2017 – Aug 3, 2017 Device mapper

lore
Share & tools
lore
#0 lore raw

PATCH 1/1 libmultipath: fix unit to seconds in log message for checker timeout

checker_timeout is in seconds, not milliseconds, since 905281da "Specify checker_timeout in seconds". Fix the log messages.

---
 libmultipath/propsel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
libmultipath/propsel.c +2 -2
index 27f39517..4ac7edcd 100644
@@ -333,11 +333,11 @@ out:
 				pp->dev, c->timeout);
 	}
 	else if (sysfs_get_timeout(pp, &c->timeout) > 0)
-		condlog(3, "%s: checker timeout = %u ms (setting: kernel sysfs)",
+		condlog(3, "%s: checker timeout = %u s (setting: kernel sysfs)",
 				pp->dev, c->timeout);
 	else {
 		c->timeout = DEF_TIMEOUT;
-		condlog(3, "%s: checker timeout = %u ms (setting: multipath internal)",
+		condlog(3, "%s: checker timeout = %u s (setting: multipath internal)",
 				pp->dev, c->timeout);
 	}
 	return 0;
Signature · 1 line
2.13.1
#1 lore raw

Merged,
Thanks.

Quoted 34 lines · Martin Wilck

checker_timeout is in seconds, not milliseconds, since 905281da "Specify checker_timeout in seconds". Fix the log messages.

---
 libmultipath/propsel.c | 4 ++--
 1 file changed, 2 insertions(+), 2 deletions(-)
libmultipath/propsel.c +2 -2
index 27f39517..4ac7edcd 100644
@@ -333,11 +333,11 @@ out:
                                pp->dev, c->timeout);
        }
        else if (sysfs_get_timeout(pp, &c->timeout) > 0)
-               condlog(3, "%s: checker timeout = %u ms (setting: kernel
 sysfs)",
+               condlog(3, "%s: checker timeout = %u s (setting: kernel
 sysfs)",
                                pp->dev, c->timeout);
        else {
                c->timeout = DEF_TIMEOUT;
-               condlog(3, "%s: checker timeout = %u ms (setting:
 multipath internal)",
+               condlog(3, "%s: checker timeout = %u s (setting: multipath

internal)",

                                pp->dev, c->timeout);
        }
        return 0;

--
2.13.1